DragonFly commits List (threaded) for 2005-09
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
cvs commit: src/sys/kern lwkt_token.c
dillon 2005/09/12 14:48:22 PDT
DragonFly src repository
Modified files:
sys/kern lwkt_token.c
Log:
Fix a token bug. A preempting interrupt thread blocking on a token cannot
safely call lwkt_drain_token_requests() because the procedure may give away
tokens owned by the preempted (parent) thread. Instead we simply call
lwkt_yield() to turn ourselves into a normally scheduled thread and return.
Reported-by: Peter Avalos <pavalos@xxxxxxxxxxxx>
Revision Changes Path
1.23 +29 -15 src/sys/kern/lwkt_token.c
http://www.dragonflybsd.org/cvsweb/src/sys/kern/lwkt_token.c.diff?r1=1.22&r2=1.23&f=u
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]