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)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 5 Aug 2019 02:35:40 +0000 (22:35 -0400)
commite3c8dc761ead061da2220ee8f8132f729ac3ddfe
treed54d830c19ce0710909e808e0ffa9498f9cf5bb2
parentad11408970df79d5f481aa9964e91f183133424c
NFSv4: Check the return value of update_open_stateid()

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+
fs/nfs/nfs4proc.c