On Wed, 13 Aug 2008 12:50:57 -0700 (PDT)
Linus Torvalds <torvalds@linux-foundation.org> wrote:
It is.
Used a bitop to preserve the runtime checking in there. spin_unlock()
doesn't return the previous lockedness.
Presumably lockdep will whine about spun_unlock(unlocked_lock) though.
Yes, it does sleepy things inside the lock.
A bitop seems a better fit to me. We never spin on that lock (it
always uses test_and_set), so why use a "spin"lock?
--