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:32:24 +0000 (08:32 +0100)
commite523ce8c99f9bbd530fda7d46c35409fee88a50f
treef9fbaa211921aa7dc7f911baedb7c63f89ca772a
parentf32659df6e154b40391afe7a5db3f0879ad6e70a
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