Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
dprintk("nfsd4_release_lockowner clientid: (%08x/%08x):\n",
clid->cl_boot, clid->cl_id);
- nfs4_lock_state();
-
status = lookup_clientid(clid, cstate, nn);
if (status)
- goto out;
+ return status;
clp = cstate->clp;
/* Find the matching lock stateowner */
if (check_for_locks(stp->st_stid.sc_file, lo)) {
status = nfserr_locks_held;
spin_unlock(&clp->cl_lock);
- goto out;
+ return status;
}
}
spin_unlock(&clp->cl_lock);
if (lo)
release_lockowner(lo);
-out:
- nfs4_unlock_state();
return status;
}