padlock - Rework locking
authorAlex Hornung <ahornung@gmail.com>
Sat, 21 Aug 2010 12:25:03 +0000 (13:25 +0100)
committerAlex Hornung <ahornung@gmail.com>
Sat, 21 Aug 2010 13:14:10 +0000 (14:14 +0100)
commit69ae06e7e56e484ac3b75d1de9a71c0ec4228429
tree88479f8f361e11fb4e8c43b553f88eafa8095dbc
parent43225f8233784ed99b602a1bd431cc08252aede1
padlock - Rework locking

* Change lockmgr to spinlock (FreeBSD used to use rwlocks for this),
  since there's no blocking in the locked sections.

* Fix several bugs where previously a shared lock was held although an
  exclusive lock was required.

* Add a missing unlock in padlock_detach.
sys/crypto/via/padlock.c