Free lock before returning from process_worklist_item.

Obtained from:	Constantine Sapuntzakis <csapuntz@stanford.edu>
This commit is contained in:
mckusick 2001-03-01 21:43:46 +00:00
parent 8650fa6cdb
commit 1e6e2e153e

View File

@ -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);