[pnfs] NFS4.1 and "so_confirmed" checks

Allu, Yamini Yamini.Allu at netapp.com
Thu Jul 24 20:08:39 EDT 2008


In the function "nfs4_open_delegation" the check in the case of
NFS4_OPEN_CLAIM_NULL
always succeeds for NFS4.1 since sop->so_confirmed is not set.
Hence, a delegation is never handed out for a client that opens a file
for the first time.
..
 
if (!atomic_read(&cb->cb_set) || !sop->so_confirmed) 
        goto out;
..

sop->so_confirmed is being set in "nfsd4_process_open2" for the 4.1 case
after "nfs4_open_delegation" is called. 
Since NFS4.1 doesn't require confirmation is there a reason why
so_confirmed is not ALWAYS set?
 
Thanks,
Yamini


More information about the pNFS mailing list