lkml.org 
[lkml]   [2002]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] embedded struct device Re: [patch] IDE driver model update
On Tue, Oct 08, 2002 at 04:47:49PM -0400, Alexander Viro wrote:
> >
> > The only timing issue is when the device structures are reused. And, it
> > seems that that is inherently racy anyway with hotpluggable devices.
>
> BS. Neither SCSI, nor USB nor PCI are reusing the structures in question.
> They are, however, freeing them.
>
> Again, USB disconnect when you are holding a reference to struct device
> will leave you with pointer to kfree'd area.

This is a USB (and PCI) bug. I'll fix them, they should be using the
release() callback that Pat has provided. With that callback, which
gets called when the device really wants to be cleaned up, I don't see
any races in the USB code (well theoretical races, there's still some
bugs in the current implementation that I'm trying to track down...)

thanks,

greg k-h
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.061 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site