* Does the block layer prevent races between open() and unregister()?
@ 2004-02-28 4:05 Alan Stern
2004-03-03 8:06 ` Yury V. Umanets
0 siblings, 1 reply; 3+ messages in thread
From: Alan Stern @ 2004-02-28 4:05 UTC (permalink / raw)
To: Jens Axboe; +Cc: linux-kernel
A classic race that all drivers for hot-unpluggable devices have to deal
with is the race between open() and unregister() (or disconnect()).
Does the block layer have any mechanism to prevent such races? Or does it
rely on the lower-level drivers handling such things by themselves?
Alan Stern
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Does the block layer prevent races between open() and unregister()?
2004-02-28 4:05 Does the block layer prevent races between open() and unregister()? Alan Stern
@ 2004-03-03 8:06 ` Yury V. Umanets
2004-03-03 15:34 ` Alan Stern
0 siblings, 1 reply; 3+ messages in thread
From: Yury V. Umanets @ 2004-03-03 8:06 UTC (permalink / raw)
To: Alan Stern; +Cc: Jens Axboe, linux-kernel
On Sat, 2004-02-28 at 06:05, Alan Stern wrote:
> A classic race that all drivers for hot-unpluggable devices have to deal
> with is the race between open() and unregister() (or disconnect()).
>
> Does the block layer have any mechanism to prevent such races? Or does it
> rely on the lower-level drivers handling such things by themselves?
According to usb-skel driver, nobody cares about.
>
> Alan Stern
>
> -
> 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/
--
umka
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Does the block layer prevent races between open() and unregister()?
2004-03-03 8:06 ` Yury V. Umanets
@ 2004-03-03 15:34 ` Alan Stern
0 siblings, 0 replies; 3+ messages in thread
From: Alan Stern @ 2004-03-03 15:34 UTC (permalink / raw)
To: Yury V. Umanets; +Cc: Jens Axboe, linux-kernel
On Wed, 3 Mar 2004, Yury V. Umanets wrote:
> On Sat, 2004-02-28 at 06:05, Alan Stern wrote:
> > A classic race that all drivers for hot-unpluggable devices have to deal
> > with is the race between open() and unregister() (or disconnect()).
> >
> > Does the block layer have any mechanism to prevent such races? Or does it
> > rely on the lower-level drivers handling such things by themselves?
> According to usb-skel driver, nobody cares about.
The usb-skeleton isn't relevant to this question because it doesn't use
the block layer.
Alan Stern
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-03-03 15:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-28 4:05 Does the block layer prevent races between open() and unregister()? Alan Stern
2004-03-03 8:06 ` Yury V. Umanets
2004-03-03 15:34 ` Alan Stern
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.