Re: strange code in hub.c

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
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.

Alan Stern


-------------------------------------------------------------------------
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.