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

Allow holding to be called with interrupts enabled (for Mark Morrissey).

parent 2c73068e
No related merge requests found
......@@ -89,7 +89,11 @@ getcallerpcs(void *v, uint pcs[])
int
holding(struct spinlock *lock)
{
return lock->locked && lock->cpu == mycpu();
int r;
pushcli();
r = lock->locked && lock->cpu == mycpu();
popcli();
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