Home Home > GIT Browse > vanilla
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2015-03-26 09:02:50 +1100
committerJiri Kosina <jkosina@suse.cz>2015-03-26 11:55:49 +0100
commit390e1dd0c61187176bcb779bcc2b34cfdb547bf7 (patch)
tree7d78ff24c0fd0d38e451e9f19d4cf240a1e0860c
parente604d186b08dccefe2430bde76821d010506351e (diff)
patches.fixes/0001-NFSv4-Do-not-accept-delegated-opens-when-a-delegatio.patch (bnc#864409, bnc#924282). suse-commit: 0e3c7c88dc6a4543bcddfbfe1d814bc6713e5832
-rw-r--r--fs/nfs/nfs4proc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 4817905e3719..65fed12ab671 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -1470,7 +1470,6 @@ static void nfs4_open_prepare(struct rpc_task *task, void *calldata)
rcu_read_lock();
delegation = rcu_dereference(NFS_I(data->state->inode)->delegation);
if (data->o_arg.claim != NFS4_OPEN_CLAIM_DELEGATE_CUR &&
- test_bit(NFS_DELEGATION_RETURNING, &delegation->flags) == 0 &&
can_open_delegated(delegation, data->o_arg.fmode))
goto unlock_no_action;
rcu_read_unlock();