RE: [patch] properly stop devices before poweroff

From: Luck, Tony
Date: Wed Jul 27 2005 - 16:20:16 EST


>> The remaining problem is cause by the order of the calls in sys_reboot:
>>
>> device_suspend(PMSG_SUSPEND);
>> device_shutdown();
>>
>> The call to device_suspend() shuts down the mpt/fusion
>driver. But then
>> device_shutdown() calls sd_shutdown() which prints:
>>
>> Synchronizing SCSI cache for disk sdb
>
>Okay, looks to me like sd_shutdown should be done from
>device_suspend(), not device_shutdown [because it needs scsi subsystem
>to be functional]. Also for reboot we probably want PMSG_FREEZE (not
>PMSG_SUSPEND), to keep it slightly faster.

Are you going to work on making those changes?

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