Free lock before returning from process_worklist_item.
Obtained from: Constantine Sapuntzakis <csapuntz@stanford.edu>
This commit is contained in:
parent
8650fa6cdb
commit
1e6e2e153e
@ -656,8 +656,10 @@ process_worklist_item(matchmnt, flags)
|
||||
if (vp == NULL || !VOP_ISLOCKED(vp, CURPROC))
|
||||
break;
|
||||
}
|
||||
if (wk == 0)
|
||||
if (wk == 0) {
|
||||
FREE_LOCK(&lk);
|
||||
return (0);
|
||||
}
|
||||
WORKLIST_REMOVE(wk);
|
||||
num_on_worklist -= 1;
|
||||
FREE_LOCK(&lk);
|
||||
|
Loading…
Reference in New Issue
Block a user