diff options
author | John Baldwin <jhb@FreeBSD.org> | 2013-06-25 20:23:08 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2013-06-25 20:23:08 +0000 |
commit | b5fb43e5727b6307531d8df908ca32882ce60f6d (patch) | |
tree | 60cbcb3e979ff7a6b8fbdeb319c971bd474cb372 /cddl | |
parent | cd32bd7ad19a39a19789ffcc4d70dca646c3914b (diff) | |
download | src-b5fb43e5727b6307531d8df908ca32882ce60f6d.tar.gz src-b5fb43e5727b6307531d8df908ca32882ce60f6d.zip |
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.
Notes
Notes:
svn path=/head/; revision=252212
Diffstat (limited to 'cddl')
0 files changed, 0 insertions, 0 deletions