On Mon, 2017-02-13 at 15:57 -0600, Brian King wrote: > If we do transition to use remove rather than shutdown, I think we > want > some way for a device driver to know whether we are doing kexec or > not. > A RAID adapter with a write cache is going to want to flush its write > cache on a PCI hotplug remove, but for a kexec, its going to want to > skip > that so the kexec is faster. Today, since kexec looks like a reboot, > rather than a shutdown, we can skip the flush on a reboot, since its > technically not needed there either. What happens if a non-flushed adapter gets a PERST ? I wouldn't trust that 'don't have to flush' magic ... Cheers, Ben.