]> git.baikalelectronics.ru Git - kernel.git/commit
pnfs: pnfs_find_lseg() should not check NFS_LSEG_LAYOUTRETURN
authorTrond Myklebust <trondmy@gmail.com>
Wed, 1 Aug 2018 18:28:57 +0000 (14:28 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 8 Aug 2018 20:50:03 +0000 (16:50 -0400)
commitb610fd737a330bd403316669111a754462e36988
tree99fd7b4aeb3a2c3f2bec4ac65226c544039396b5
parentc15837468608c0b557dd913d49f204417fb1cd55
pnfs: pnfs_find_lseg() should not check NFS_LSEG_LAYOUTRETURN

Layout segment validity is determined only by the NFS_LSEG_VALID flag. If
it is set, the layout segment is finable. As it is, when the flexfiles
driver sets NFS_LSEG_LAYOUTRETURN to indicate that we cannot discard
the layout segment, but that it must be returned, then this can result
in an unnecessary layoutget storm.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/pnfs.c