Re: Force IDE cache flush on shutdown

From: Christoph Hellwig
Date: Thu May 06 2004 - 02:57:03 EST


On Thu, May 06, 2004 at 09:50:44AM +0200, Arjan van de Ven wrote:
> > Please don't use reboot notifiers in new driver code. The driver
> > model has a ->shutdown method for that.
>
> there is somewhat of a problem with that; the reboot command potentially
> runs from the disk in question, so that might never get called since that
> will keep things busy.

shutdown != remove. Shutdown is called for all devices on shutdown, remove
isn't called at all at reboot.

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