pNFS: Mark layout for return if return-on-close was not sent
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 4 Jan 2021 18:35:46 +0000 (13:35 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Jan 2021 17:27:30 +0000 (18:27 +0100)
commitecaaad18013317f8f5bbfd20a6bb77fb8e3c9380
treed2fdb2a9212aa9e827e80ca6fd1b2224befd1470
parentf128de17c8d46a0dba5db32206d198551b111e17
pNFS: Mark layout for return if return-on-close was not sent

commit 67bbceedc9bb8ad48993a8bd6486054756d711f4 upstream.

If the layout return-on-close failed because the layoutreturn was never
sent, then we should mark the layout for return again.

Fixes: 9c47b18cf722 ("pNFS: Ensure we do clear the return-on-close layout stateid on fatal errors")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/pnfs.c