NFSv4: Validate the stateid before applying it to state recovery
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 11 Jul 2019 23:02:18 +0000 (19:02 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 15 Jul 2019 14:11:20 +0000 (10:11 -0400)
commit50c8000744463aa8534de0d739b50ed4f06f8275
tree89f5d13630aa386fa91dc06b32bf2bfd66b19581
parent5b596830d9710e3554354f717dc56f8640841c82
NFSv4: Validate the stateid before applying it to state recovery

If the stateid is the zero or invalid stateid, then it is pointless
to attempt to use it for recovery. In that case, try to fall back
to using the open state stateid, or just doing a general recovery
of all state on a given inode.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c