]> git.neil.brown.name Git - history.git/commit
[PATCH] USB: fix usb-storage self-deadlock
authorDavid Brownell <david-b@pacbell.net>
Thu, 23 Oct 2003 10:28:44 +0000 (03:28 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 23 Oct 2003 10:28:44 +0000 (03:28 -0700)
commitfa04f891c6479ed2ff49cdf2a29fa6566a7bb327
treead6163535cb8a86e34734674c5e9dd02b51d88ce
parente4a93f13a4963caf49b0a0950228507922ded05a
[PATCH] USB: fix usb-storage self-deadlock

This fixes a problem that showed in usb-storage (osdl bugme 1310)
and could have shown in other drivers that used usb_reset_device()
when they already held dev->serialize:  a self-deadlock with some
devices.

There are some drivers that should likely change so that they grab
this lock themselves, since they don't call this during probe()
when the lock is already held.  The lock protects against config
changes by other tasks, which is currently quite rate.
drivers/usb/core/message.c