From: Wolfram Gloger <wg@malloc.de>
To: linux-kernel@vger.kernel.org
Subject: Re: usbfs race while mounting/umounting
Date: Fri, 11 Oct 2002 14:34:36 +0200 [thread overview]
Message-ID: <E17zz00-0001BI-00@mrvdomng.kundenserver.de> (raw)
In-Reply-To: <E17zvS7-00041g-00@mrvdomng.kundenserver.de>
Oliver Neukum made me look more closely and I think the
usb_bus_list_lock needs to stay, appended is a corrected patch for
2.4.x.
Regards,
Wolfram.
--- drivers/usb/inode.c.orig Sat Aug 3 02:39:45 2002
+++ drivers/usb/inode.c Fri Oct 11 14:33:34 2002
@@ -628,6 +628,7 @@
s->s_root = d_alloc_root(root_inode);
if (!s->s_root)
goto out_no_root;
+ lock_kernel();
list_add_tail(&s->u.usbdevfs_sb.slist, &superlist);
for (i = 0; i < NRSPECIAL; i++) {
if (!(inode = iget(s, IROOT+1+i)))
@@ -646,6 +647,7 @@
recurse_new_dev_inode(bus->root_hub, s);
}
up (&usb_bus_list_lock);
+ unlock_kernel();
return s;
out_no_root:
prev parent reply other threads:[~2002-10-11 12:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-11 8:47 Wolfram Gloger
2002-10-11 12:34 ` Wolfram Gloger [this message]
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=E17zz00-0001BI-00@mrvdomng.kundenserver.de \
--to=wg@malloc.de \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®