pNFS: Clear NFS_LAYOUT_RETURN_REQUESTED when invalidating the layout stateid
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 14 Nov 2016 19:34:18 +0000 (14:34 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jan 2017 07:22:01 +0000 (08:22 +0100)
commitabb2903f1ac21ba17698728d17c442deb3266ab8
treee5ac94dd7bb0413651f633558340192e22d87130
parentf061c76c1d56fd8783bfd1393f2987f346280e9a
pNFS: Clear NFS_LAYOUT_RETURN_REQUESTED when invalidating the layout stateid

commit ae5a459d5f65c3e83f3e14068dde5fb9c9d81807 upstream.

We must ensure that we don't schedule a layoutreturn if the layout stateid
has been marked as invalid.

Fixes: 2a59a0411671e ("pNFS: Fix pnfs_set_layout_stateid() to clear...")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/pnfs.c