DragonFly commits List (threaded) for 2006-06
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
cvs commit: src/sys/net/ppp if_ppp.c src/sys/netgraph/netgraph ng_base.c
dillon 2006/06/06 11:04:16 PDT
DragonFly src repository
Modified files:
sys/net/ppp if_ppp.c
sys/netgraph/netgraph ng_base.c
Log:
Some netisr's are just used to wakeup a driver via schednetisr(). The
netmsg's sent to these ISR's must be replied whereas the netmsg's sent
to packet-handling ISRs must not be replied because the netmsg is embedded
in the mbuf).
In the case of notifications via schednetisr(), we reply the message before
we run the queue in order to interlock the wakeup message with the queue.
Otherwise we could end up with a race that leaves packets in the queue
without a wakeup to process them.
Reported-by: Stefan Krueger <skrueger@xxxxxxxxxxxxxxxx>
Investigated-by: YONETANI Tomokazu <qhwt+dfly@xxxxxxxxxx>
Revision Changes Path
1.31 +8 -2 src/sys/net/ppp/if_ppp.c
1.21 +8 -3 src/sys/netgraph/netgraph/ng_base.c
http://www.dragonflybsd.org/cvsweb/src/sys/net/ppp/if_ppp.c.diff?r1=1.30&r2=1.31&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/netgraph/netgraph/ng_base.c.diff?r1=1.20&r2=1.21&f=u
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]