Messages in this thread | | | Subject | Re: Telling Linux that a SATA device has gone away | From | Alan Cox <> | Date | Sun, 28 Aug 2005 21:51:42 +0100 |
| |
> Is there any hope of 2.6 gaining IDE hotswap? Given how easy it is to > capture removal events with ACPI, it would be nice to be able to do > something useful with it (rather than just tending to crash the machine)
For the SATA layer I see no real barriers. The core scsi code/block code can handle it all now without the trickery 2.4-ac IDE had to do. The scsi layer itself is happy with drive hot unplug (witness just how much better 2.6 USB storage is than 2.4).
Handling drive removal is essetially a case of not issuing more commands to it and cleaning up the others as they error out, something the layer handles ok.
New drive attachment means running the entire probe state machine for the drive and the essential commands (figure out the modes, clipping, power management, set up modes etc). Thats more complex for PATA where adding one drive can require reprogramming the other.
Porting the 2.4 old IDE code is probably 2-3 weeks work and I doubt worth it long term.
- 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/
| |