Skip to content
Commit dea7bbb6 authored by Anthony Liguori's avatar Anthony Liguori Committed by Eric Van Hensbergen
Browse files

9p: Convert semaphore to spinlock for p9_idpool



When booting from v9fs, down_interruptible in p9_idpool_get() triggered a BUG
as it was being called with IRQs disabled.  A spinlock seems like the right
thing to be using since the idr functions go out of their way not to sleep.

This patch eliminates the BUG by converting the semaphore to a spinlock.

Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
Acked-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
parent 14b8869f
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