]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2019 07:12:58 +0000 (09:12 +0200)
commit95934ea7b4afe59501f6b7243e133ecf2d806f43
tree1243cdc4658c407a8789936d57635ce0d89fb0b4
parent119c5aa1a3b5ce535880a9cb6ee96f957da0d431
pnfs: Fix a problem where we gratuitously start doing I/O through the MDS

commit 58bbeab425c6c5e318f5b6ae31d351331ddfb34b upstream.

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+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/pnfs.c