summaryrefslogtreecommitdiff
path: root/include/linux/errqueue.h
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2004-09-13 20:33:44 -0700
committerGreg Kroah-Hartman <greg@kroah.com>2004-09-13 20:33:44 -0700
commit11c763cc105faf3f3148fa209b87ded8bb1fa07e (patch)
treee15b3b9c5c483539e2a0a2014a20ec7955cf58e4 /include/linux/errqueue.h
parentfa4b40f4ef571816068e6d08b174d0a5c713ad36 (diff)
[PATCH] USB: Updated USB device locking
This patch reintroduces the USB device locking code we tried out earlier. As before, it solves the problem of effectively locking all the devices while drivers are registered and unregistered by introducing an rwsem. Unlike the earlier attempt, this version does not ever try to acquire a lock re-entrantly. I trust that will eliminate the races and hang-ups you observed with the earlier version. There are also copious comments explaining exactly how things should work. The patch interacts slightly with the locktree() code introduced by David for suspend/resume support. It doesn't change the functionality at all; it just updates the routine to follow the new locking rules. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'include/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions