Skip to content

Commit 0bee6ec

Browse files
committed
Merge tag 'nfsd-4.4-1' of git://linux-nfs.org/~bfields/linux
Pull nfsd fix from Bruce Fields: "Just one fix for a NFSv4 callback bug introduced in 4.4" * tag 'nfsd-4.4-1' of git://linux-nfs.org/~bfields/linux: nfsd: don't hold ls_mutex across a layout recall
2 parents e73a317 + be20aa0 commit 0bee6ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfsd/nfs4layouts.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ nfsd4_cb_layout_prepare(struct nfsd4_callback *cb)
616616

617617
mutex_lock(&ls->ls_mutex);
618618
nfs4_inc_and_copy_stateid(&ls->ls_recall_sid, &ls->ls_stid);
619+
mutex_unlock(&ls->ls_mutex);
619620
}
620621

621622
static int
@@ -659,7 +660,6 @@ nfsd4_cb_layout_release(struct nfsd4_callback *cb)
659660

660661
trace_layout_recall_release(&ls->ls_stid.sc_stateid);
661662

662-
mutex_unlock(&ls->ls_mutex);
663663
nfsd4_return_all_layouts(ls, &reaplist);
664664
nfsd4_free_layouts(&reaplist);
665665
nfs4_put_stid(&ls->ls_stid);

0 commit comments

Comments
 (0)