login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
November
»
30
Re: [linux-usb-devel] [PATCH] base/class.c: prevent ooops due to insert/remove race (v3)
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Alan Stern <stern@...>
To: Linus Torvalds <torvalds@...>
Cc: Mark Lord <lkml@...>, Greg KH <gregkh@...>, Andrew Morton <akpm@...>, <linux-usb-devel@...>, Linux Kernel <linux-kernel@...>
Subject:
Re: [linux-usb-devel] [PATCH] base/class.c: prevent ooops due to insert/remove race (v3)
Date: Thursday, November 29, 2007 - 10:58 pm
On Thu, 29 Nov 2007, Linus Torvalds wrote:
quoted text
> Heh. It definitely hasn't gotten lost by "the git software".
No, it sure hasn't. In fact it was staring me right in the face and I didn't realize it.
quoted text
> In fact, with > the kinds of hints you already gave, git makes it really _trivial_ to find > it. > > Here's what you do: > > git log v2.6.23.. --author=Wilcox > > and then just search for "scan_mutex", in the hope that Matthew wrote a > nice commit message. And yes, he did, so in less than a blink you get: > > commit 6b7f123f378743d739377871c0cbfbaf28c7d25a > Author: Matthew Wilcox <matthew@wil.cx> > Date: Tue Jun 26 15:18:51 2007 -0600 > > [SCSI] Fix async scanning double-add problems > > Stress-testing and some thought has revealed some places where > asynchronous scanning needs some more attention to locking. > > - Since async_scan is a bit, we need to hold the host_lock while > modifying it to prevent races against other CPUs modifying the word > that bit is in. This is probably a theoretical race for the moment, > but other patches may change that. > - The async_scan bit means not only that this host is being scanned > asynchronously, but that all the devices attached to this host are not > yet added to sysfs. So we must ensure that this bit is always in sync. > I've chosen to do this with the scan_mutex since it's already acquired > in most of the right places. > ... > > which I assume is the commit you're talking about.
Yep, that's the one. Alan Stern -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Re: [linux-usb-devel] [PATCH] base/class.c: prevent ooops du...
, Mark Lord
, (Thu Nov 29, 4:25 pm)
Re: [linux-usb-devel] [PATCH] base/class.c: prevent ooops du...
, Greg KH
, (Thu Nov 29, 4:32 pm)
Re: [linux-usb-devel] [PATCH] base/class.c: prevent ooops du...
, Mark Lord
, (Thu Nov 29, 4:46 pm)
Re: [linux-usb-devel] [PATCH] base/class.c: prevent ooops du...
, Alan Stern
, (Thu Nov 29, 6:07 pm)
Re: [linux-usb-devel] [PATCH] base/class.c: prevent ooops du...
, Linus Torvalds
, (Thu Nov 29, 7:09 pm)
Re: [linux-usb-devel] [PATCH] base/class.c: prevent ooops du...
, Alan Stern
, (Thu Nov 29, 10:58 pm)
Re: [linux-usb-devel] [PATCH] base/class.c: prevent ooops du...
, Greg KH
, (Thu Nov 29, 6:11 pm)
Re: [linux-usb-devel] [PATCH] base/class.c: prevent ooops du...
, Mark Lord
, (Thu Nov 29, 6:28 pm)
Re: [linux-usb-devel] [PATCH] base/class.c: prevent ooops du...
, Alan Stern
, (Thu Nov 29, 6:43 pm)
Re: [linux-usb-devel] [PATCH] base/class.c: prevent ooops du...
, Greg KH
, (Thu Nov 29, 5:17 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
debian developer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Adrian Bunk
Re: LSM conversion to static interface
git
:
linux-netdev
:
Gerrit Renker
[PATCH 26/37] dccp: Integration of dynamic feature activation - part 1 (socket set...
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
Linus Torvalds
Re: [GIT]: Networking
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
3 users
and
962 guests
online.
Online users
zeekec
ionut
garminportable
Syndicate