RE: SCSI adapter: how to freeze and thaw I/O on hibernation?

2019-05-29 Thread Dexuan Cui
> From: Ming Lei > Sent: Wednesday, May 29, 2019 7:57 PM > On Thu, May 23, 2019 at 11:18 AM Dexuan Cui wrote: > > ... > > I checked some PCI HBA drivers, and they use scsi_block_requests(), but > > as I described above, I don't know how setting a flag can prevent

SCSI adapter: how to freeze and thaw I/O on hibernation?

2019-05-22 Thread Dexuan Cui
Hi, I'm adding code to enable the hv_storvsc driver (drivers/scsi/storvsc_drv.c) for hibernation (ACPI S5). I know how to save/restore the state of the virtual Hyper-V SCSI adapter, but I don't know how to prevent the higher layer SCSI driver(s) from submitting new I/O requests to the low level dri