]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2019 06:30:13 +0000 (08:30 +0200)
commit00cfd19b4aab5fcb4be629e43224501d9ef7465c
tree1af610b7e14737cdc88e1aac9665ef6e9201ac49
parent5ebc4cb0531545d87d3163377549bcef86f552d0
NFSv4.1: Fix open stateid recovery

[ Upstream commit 27a30cf64a5cbe2105e4ff9613246b32d584766a ]

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: 8a64c4ef106d1 ("NFSv4.1: Even if the stateid is OK,...")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/nfs4proc.c