Re: strange code in hub.c

Greg KH <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Thu, Mar 01, 2007 at 02:14:21PM -0500, Alan Stern wrote:
> On Thu, 1 Mar 2007, Oliver Neukum wrote:
> 
> > Hi,
> > 
> > is this code still relevant? How can there be a probe() while the module
> > is unloading? Is this a survivor of the pre-driver core days?
> > 
> > 	/* Lock ourself into memory in order to keep a probe sequence
> > 	 * sleeping in a new thread from allowing us to be unloaded.
> > 	 */
> > 	if (!try_module_get(THIS_MODULE))
> > 		return -EINVAL;
> 
> IIRC that was introduced by Greg as part of his multithreaded probing 
> changes.  It doesn't belong here any more.

Oops, you're right, yeah, it can be removed.

sorry about that.

greg k-h

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.