]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1b48a4c30bcea0a7510d8663f7f7b326585d3a60
tree89f5d13630aa386fa91dc06b32bf2bfd66b19581
parentfe5964a2bf7ae30530a0ce55eeaee52abe7dadcc
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