From: David Brownell <david-b@pacbell.net>
To: Nicolas Mailhot <Nicolas.Mailhot@laPoste.net>
Cc: Patrick Mansfield <patmans@us.ibm.com>, linux-scsi@vger.kernel.org
Subject: Re: Usb storage mounting was broken
Date: Wed, 22 Oct 2003 15:53:05 -0700 [thread overview]
Message-ID: <3F970A51.3060907@pacbell.net> (raw)
In-Reply-To: <1066854786.3848.8.camel@m70.net81-64-235.noos.fr>
[-- Attachment #1: Type: text/plain, Size: 478 bytes --]
>>And since this resembles an enumeration failure, it'd be good
>>to have the Alt-Sysrq-t output for "khubd".
>
> In the report too (took me some time to remember it ended up in
> /var/log/messages, not only the current console)
That says to me "self-deadlock"; crept in recently. It turns
out that routine already has all the locks it needs. Try the
attached patch.
This is pretty far from being a mount problem ... no wonder I
kept expecting more info from you!
- Dave
[-- Attachment #2: Diff --]
[-- Type: text/plain, Size: 879 bytes --]
--- 1.37/drivers/usb/core/message.c Tue Sep 23 11:18:09 2003
+++ edited/drivers/usb/core/message.c Wed Oct 22 15:49:15 2003
@@ -1001,8 +1001,10 @@
int i, retval;
struct usb_host_config *config;
- /* dev->serialize guards all config changes */
- down(&dev->serialize);
+ /* caller must own dev->serialize (config won't change)
+ * and the usb bus readlock (so driver bindings are stable);
+ * so calls during probe() are fine
+ */
for (i = 1; i < 16; ++i) {
usb_disable_endpoint(dev, i);
@@ -1016,7 +1018,7 @@
NULL, 0, HZ * USB_CTRL_SET_TIMEOUT);
if (retval < 0) {
dev->state = USB_STATE_ADDRESS;
- goto done;
+ return retval;
}
dev->toggle[0] = dev->toggle[1] = 0;
@@ -1029,9 +1031,7 @@
intf->act_altsetting = 0;
usb_enable_interface(dev, intf);
}
-done:
- up(&dev->serialize);
- return (retval < 0) ? retval : 0;
+ return 0;
}
/**
next prev parent reply other threads:[~2003-10-22 22:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-21 22:33 Usb storage mounting was broken somewhere between 2.6.0-test5-bk10 and 2.6.0-test6-bk1 Nicolas Mailhot
2003-10-22 0:55 ` Patrick Mansfield
2003-10-22 2:25 ` David Brownell
2003-10-22 7:49 ` Nicolas Mailhot
2003-10-22 15:11 ` David Brownell
2003-10-22 15:45 ` Nicolas Mailhot
2003-10-22 16:20 ` David Brownell
2003-10-22 18:03 ` Nicolas Mailhot
2003-10-22 18:44 ` Usb storage mounting was broken David Brownell
2003-10-22 20:33 ` Nicolas Mailhot
2003-10-22 22:53 ` David Brownell [this message]
2003-10-23 19:59 ` Nicolas Mailhot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F970A51.3060907@pacbell.net \
--to=david-b@pacbell.net \
--cc=Nicolas.Mailhot@laPoste.net \
--cc=linux-scsi@vger.kernel.org \
--cc=patmans@us.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.