]> git.baikalelectronics.ru Git - kernel.git/commit
pNFS: Remove unwanted optimisation of layoutget
authorTrond Myklebust <trondmy@gmail.com>
Tue, 21 Aug 2018 14:25:34 +0000 (10:25 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 21 Aug 2018 17:39:08 +0000 (13:39 -0400)
commite8481ca4c68a96bfcb6db8ec0e354c045ee685c4
tree0a4917fa2cd8ea7b3ddfac84f0cc8730af19a757
parentf3a5c86db75bdea98818ce584766505b974c1a47
pNFS: Remove unwanted optimisation of layoutget

If we knew that the file was empty, we wouldn't be asking for a layout.
Any optimisation here is already done before calling pnfs_update_layout().
As it stands, we sometimes end up doing an unnecessary inband read to
the MDS even when holding a layout.

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