git: padlock - Rework locking
Alex Hornung
alexh at crater.dragonflybsd.org
Sat Aug 21 06:29:30 PDT 2010
commit 69ae06e7e56e484ac3b75d1de9a71c0ec4228429
Author: Alex Hornung <ahornung at gmail.com>
Date: Sat Aug 21 13:25:03 2010 +0100
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.
Summary of changes:
sys/crypto/via/padlock.c | 33 ++++++++++++++++++---------------
1 files changed, 18 insertions(+), 15 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/69ae06e7e56e484ac3b75d1de9a71c0ec4228429
--
DragonFly BSD source repository
More information about the Commits
mailing list