]> www.infradead.org Git - users/dwmw2/linux.git/commit
NFSv4: Check the return value of update_open_stateid()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 29 Jul 2019 17:25:00 +0000 (18:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Aug 2019 08:11:10 +0000 (10:11 +0200)
commit983674ab26f90b03e3ca839d26b4c8e01427f043
treeb9d1179d985204bbf6cb18af9bab104af0d38255
parentc98c9d695b7ff6ded7b07d67ae1efc4be0fa4aef
NFSv4: Check the return value of update_open_stateid()

commit e3c8dc761ead061da2220ee8f8132f729ac3ddfe upstream.

Ensure that we always check the return value of update_open_stateid()
so that we can retry if the update of local state failed. This fixes
infinite looping on state recovery.

Fixes: e23008ec81ef3 ("NFSv4 reduce attribute requests for open reclaim")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: stable@vger.kernel.org # v3.7+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4proc.c