On Mon, Nov 18, 2002 at 12:20:04AM +0100, Andries Brouwer wrote:
> On Sun, Nov 17, 2002 at 02:52:58PM -0500, Doug Ledford wrote:
>
> > Working on a fix. Haven't decided how to do it yet.
>
> I encountered similar phenomena with usb-storage.
> I think the proper solution is to never automatically
> scan for a partition table.
Scanning for a partition table is just one aspect. In general, once a
module has handed over it's entry points to some other kernel area those
entry points should be ready for use, so blocking access to them isn't
needed. OTOH, when you are tearing a module down then you do want access
to stop, so that's the proper time to set live == 0.
> We perhaps need to do that at boot time, but in all other
> cases user space can ask the kernel to read a partition table.
(When it works, which it currently doesn't for me in latest bk)
> For usb-storage things work fairly well (for some kernels)
> using
> blockdev --rereadpt /dev/sdx
Yeah, that's fine for hotplug. But, you know what, for PCI hotplug scsi
this wouldn't even be an issue since a true hot plug event normally would
be after module init is complete and scanning the table wouldn't be a
problem then because module->live would be non-0 ;-)
-- Doug Ledford <dledford@redhat.com> 919-754-3700 x44233 Red Hat, Inc. 1801 Varsity Dr. Raleigh, NC 27606 - 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/
This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:20 EST