Re: RFC: Boiler plate functions for ida / idr allocation?

From: Stefan Richter
Date: Fri Jul 15 2011 - 17:37:09 EST


On Jul 15 Boaz Harrosh wrote:
> On 07/13/2011 05:41 AM, Stefan Richter wrote:
> > osd_uld.c::osd_minor_ida is accessed unsafely.
> > Device probe() and remove() methods are not globally serialized.
>
> Sorry for the delay. Vacation
>
> Thanks Stefan I'll look into it. I remember I thought about
> it and tested it at the time, but I might be wrong. I'll look
> into it.

Could actually be that there was or even still is some degree of
serialization by the SCSI core in typical usage. But I think the
general case is nowadays fully concurrent. E.g.
echo $name > /sys/bus/scsi/drivers/osd*/{,un}bind
if issued in parallel for different device names. Though it is probably
borderline impossible to actually hit a concurrent osd_minor_ida access on
purpose.
--
Stefan Richter
-=====-==-== -=== -====
http://arcgraph.de/sr/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/