]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
A few mostly cosmetic nits to aid in debugging:
authorjhb <jhb@FreeBSD.org>
Tue, 25 Jun 2013 20:23:08 +0000 (20:23 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 25 Jun 2013 20:23:08 +0000 (20:23 +0000)
commit19d363377edf8cabee817f718377a6bc63ff7feb
tree60cbcb3e979ff7a6b8fbdeb319c971bd474cb372
parent0807c44cdd0226cdd2553f723a00de3d13882321
A few mostly cosmetic nits to aid in debugging:
- Call lock_init() first before setting any lock_object fields in
  lock init routines.  This way if the machine panics due to a duplicate
  init the lock's original state is preserved.
- Somewhat similarly, don't decrement td_locks and td_slocks until after
  an unlock operation has completed successfully.
sys/kern/kern_lock.c
sys/kern/kern_mutex.c
sys/kern/kern_rwlock.c
sys/kern/kern_sx.c