Re: In place kexec

Eric W. Biederman
2010-07-30T23:40:24Z

"H. Peter Anvin" <hpa@zytor.com> writes:

> On 07/30/2010 03:52 PM, Andrew Vasquez wrote:
>>
>> Looking through all these emails, what's the upshot here? Is the
>> expectation, for all storage drivers to starting to implement some
>> 'minimal' level of shutdown with the hardware/firmware during the
>> .shutdown callback?
>>
>
> I believe so. It seems to be a fundamental requirement for kexec to
> function.

Yes. Implementing a .shutdown method the solution we have, and the
requirement has been stable for several years. I did a quick grep
through drivers scsi and a lot of the storage drivers already
implement the .shutdown method.

Beyond not leaving DMAs running which can foul up kexec there is also
the need to ensure any drive caches are flushed on reboot. I know
ide/sata drivers have been handling this case in ide_gd_shutdown for a
long time to ensure the drives write-back caches are flushed.

Eric