cvs commit: src/sys/i386/i386 vm86.c src/sys/i386/include lock.h src/sys/kern lwkt_thread.c
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Jul 19 12:08:25 PDT 2005
dillon 2005/07/19 12:08:05 PDT
DragonFly src repository
Modified files:
sys/i386/i386 vm86.c
sys/i386/include lock.h
sys/kern lwkt_thread.c
Log:
Fix a MP lock race. The MP locking state can change when lwkt_chktokens()
returns a failure. The state is not retained by an interrupt because we
are trying to set it for the new thread rather then the current thread, and
the current thread's mpcount could be 0.
Change ASSERT_MP_LOCK_HELD() to supply a thread for reporting purposes in
the KASSERT.
Reported-by: David Rhodus <sdrhodus at xxxxxxxxx>
Revision Changes Path
1.14 +2 -2 src/sys/i386/i386/vm86.c
1.11 +2 -2 src/sys/i386/include/lock.h
1.77 +29 -6 src/sys/kern/lwkt_thread.c
http://www.dragonflybsd.org/cvsweb/src/sys/i386/i386/vm86.c.diff?r1=1.13&r2=1.14&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/i386/include/lock.h.diff?r1=1.10&r2=1.11&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/kern/lwkt_thread.c.diff?r1=1.76&r2=1.77&f=u
More information about the Commits
mailing list