]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a sleep lock that protects access to sequences of blocking
authoriedowse <iedowse@FreeBSD.org>
Sun, 4 Jun 2006 14:42:38 +0000 (14:42 +0000)
committeriedowse <iedowse@FreeBSD.org>
Sun, 4 Jun 2006 14:42:38 +0000 (14:42 +0000)
commit2e98c25f190be3790c618acb8ef0ed50d2fdf086
treefbd8739c5c392b8c843497396f9444a4626f88e9
parent7fa49327cd97a9a2f0a24df817866a7df0167575
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.
sys/dev/usb/if_axe.c
sys/dev/usb/if_axereg.h