]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.1: Fix open stateid recovery
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 22 Jul 2019 17:32:59 +0000 (18:32 +0100)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 5 Aug 2019 02:35:40 +0000 (22:35 -0400)
commit74f67942e138fb9b60bad4f410e2aae4a03eecfe
tree8c0848c76646122d4b3eec45653a6c3f47c319df
parent2202146fd963138009d5f4a800b9571a63204d57
NFSv4.1: Fix open stateid recovery

The logic for checking in nfs41_check_open_stateid() whether the state
is supported by a delegation is inverted. In addition, it makes more
sense to perform that check before we check for expired locks.

Fixes: 7374629649e1d ("NFSv4.1: Even if the stateid is OK,...")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c