diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-04-23 14:46:25 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-04-23 14:46:25 -0400 |
commit | cd4c9be2c61d4d974d348743fddb8183b8185abc (patch) | |
tree | a6fac87c4b03bcce822eb615c425380dc994005e /fs/nfs | |
parent | 8188df1733d6722336e287cc859b2567ad70576a (diff) |
NFSv4.1: Don't do a delegated open for NFS4_OPEN_CLAIM_DELEG_CUR_FH modes
If we're in a delegation recall situation, we can't do a delegated open.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/nfs4proc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index a411a53d8f4a..ea50807b65d9 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -1543,6 +1543,7 @@ static void nfs4_open_prepare(struct rpc_task *task, void *calldata) | |||
1543 | rcu_read_lock(); | 1543 | rcu_read_lock(); |
1544 | delegation = rcu_dereference(NFS_I(data->state->inode)->delegation); | 1544 | delegation = rcu_dereference(NFS_I(data->state->inode)->delegation); |
1545 | if (data->o_arg.claim != NFS4_OPEN_CLAIM_DELEGATE_CUR && | 1545 | if (data->o_arg.claim != NFS4_OPEN_CLAIM_DELEGATE_CUR && |
1546 | data->o_arg.claim != NFS4_OPEN_CLAIM_DELEG_CUR_FH && | ||
1546 | can_open_delegated(delegation, data->o_arg.fmode)) | 1547 | can_open_delegated(delegation, data->o_arg.fmode)) |
1547 | goto unlock_no_action; | 1548 | goto unlock_no_action; |
1548 | rcu_read_unlock(); | 1549 | rcu_read_unlock(); |