cvs commit: src/sys/dev/usb if_axe.c if_axereg.h
Ian Dowse
iedowse at FreeBSD.org
Sun Jun 4 14:44:21 UTC 2006
iedowse 2006-06-04 14:42:38 UTC
FreeBSD src repository
Modified files:
sys/dev/usb if_axe.c if_axereg.h
Log:
Add a sleep lock that protects access to sequences of blocking
axe_cmd() calls. Without this the device can get confused if multiple
threads attempt these operations concurrently. The problem was
easily reproducible by running "ifconfig axe0" in a loop because
eventually it would conflict with axe_tick_task().
A similar approach is probably required in all USB ethernet drivers.
Revision Changes Path
1.38 +39 -3 src/sys/dev/usb/if_axe.c
1.10 +4 -0 src/sys/dev/usb/if_axereg.h
More information about the cvs-src
mailing list