]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
NFSv4.1: Use CLAIM_DELEG_CUR_FH opens when available
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 18 Mar 2013 16:50:59 +0000 (12:50 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 25 Mar 2013 16:04:11 +0000 (12:04 -0400)
Now that we do CLAIM_FH opens, we may run into situations where we
get a delegation but don't have perfect knowledge of the file path.
When returning the delegation, we might therefore not be able to
us CLAIM_DELEGATE_CUR opens to convert the delegation into OPEN
stateids and locks.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c

index 732b76f703d6e233a4a0e2e8cec019449228ba16..06e5a72b5fa233dd6acbf614de8d5d721d2c427c 100644 (file)
@@ -1383,7 +1383,7 @@ static int _nfs4_open_delegation_recall(struct nfs_open_context *ctx, struct nfs
        int ret;
 
        opendata = nfs4_open_recoverdata_alloc(ctx, state,
-                       NFS4_OPEN_CLAIM_DELEGATE_CUR);
+                       NFS4_OPEN_CLAIM_DELEG_CUR_FH);
        if (IS_ERR(opendata))
                return PTR_ERR(opendata);
        nfs4_stateid_copy(&opendata->o_arg.u.delegation, stateid);