Re: SATA hotplug from the user side ?

From: Tejun Heo
Date: Fri Jan 12 2007 - 20:56:39 EST


Soeren Sonnenburg wrote:
> It is true it detects a removal and newly plugged devices immediately...
> However it still prints warnings and errors that it could not
> synchronize SCSI cache for the disks. Then it prints regular 'rejects
> I/O to dead device' warning messages and on replugging the disks puts
> them to the next free sd device (e.g. sdc -> sdd).

You need to stop using the devices before unplugging. If you have no
pending IO to the device, there won't be 'rejects IO to dead device'
messages. You can ignore the SCSI cache sync failure if the device is
properly closed before being unplugged.

> These messages sound eval - so now the question is should I care ?
> ( On the other hand it did not crash the machine )

So, no, you don't really have to care. Just make sure the device is
unmounted prior to unplugging.

--
tejun
-
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/