pnfs: Fix a problem where we gratuitously start doing I/O through the MDS
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 18 Jul 2019 19:33:42 +0000 (15:33 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 18 Jul 2019 19:33:42 +0000 (15:33 -0400)
commit58bbeab425c6c5e318f5b6ae31d351331ddfb34b
tree2f59406cf2d41b31d5b3c7e761b9d14185ab3b79
parentf554af280a80a49412acdd26a6371963f4741e70
pnfs: Fix a problem where we gratuitously start doing I/O through the MDS

If the client has to stop in pnfs_update_layout() to wait for another
layoutget to complete, it currently exits and defaults to I/O through
the MDS if the layoutget was successful.

Fixes: d03360aaf5cc ("pNFS: Ensure we return the error if someone kills...")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: stable@vger.kernel.org # v4.20+
fs/nfs/pnfs.c