nfs/flexfiles: Helper function to detect FF_FLAGS_NO_READ_IO
The mds can inform the client not to use the IOMODE_RW layout segment for doing READs. I.e., it is basically a IOMODE_WRITE layout segment. It would do this to not interfere with the WRITEs. Signed-off-by: Tom Haynes <loghyr@primarydata.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:

committed by
Anna Schumaker

parent
ade8febde0
commit
fb1084e332
@@ -557,6 +557,12 @@ bool ff_layout_avoid_mds_available_ds(struct pnfs_layout_segment *lseg)
|
||||
ff_layout_has_available_ds(lseg);
|
||||
}
|
||||
|
||||
bool ff_layout_avoid_read_on_rw(struct pnfs_layout_segment *lseg)
|
||||
{
|
||||
return lseg->pls_range.iomode == IOMODE_RW &&
|
||||
ff_layout_no_read_on_rw(lseg);
|
||||
}
|
||||
|
||||
module_param(dataserver_retrans, uint, 0644);
|
||||
MODULE_PARM_DESC(dataserver_retrans, "The number of times the NFSv4.1 client "
|
||||
"retries a request before it attempts further "
|
||||
|
Reference in New Issue
Block a user