Skip to content
Snippets Groups Projects
Commit 0b86d037 authored by Frans Kaashoek's avatar Frans Kaashoek
Browse files

Because sleeplocks replaced B_BUSY the holding test can

be more specific (thanks Mark Morrissey)
parent 0b6f4c08
Branches
Tags
No related merge requests found
......@@ -47,7 +47,7 @@ holdingsleep(struct sleeplock *lk)
int r;
acquire(&lk->lk);
r = lk->locked;
r = lk->locked && (lk->pid == myproc()->pid);
release(&lk->lk);
return r;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment