cvs commit: src/sys/net/ppp if_ppp.c src/sys/netgraph/netgraph ng_base.c
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Jun 6 11:05:43 PDT 2006
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 at xxxxxxxxxxxxxxxx>
Investigated-by: YONETANI Tomokazu <qhwt+dfly at 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
More information about the Commits
mailing list