diff options
| author | Alan Stern <stern@rowland.harvard.edu> | 2004-09-13 20:33:44 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2004-09-13 20:33:44 -0700 |
| commit | 11c763cc105faf3f3148fa209b87ded8bb1fa07e (patch) | |
| tree | e15b3b9c5c483539e2a0a2014a20ec7955cf58e4 /include/linux/cdev.h | |
| parent | fa4b40f4ef571816068e6d08b174d0a5c713ad36 (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/cdev.h')
0 files changed, 0 insertions, 0 deletions
