scsi: fully quiesce I/O on ioctl reset
When calling sg_reset we're calling the various EH handler functions
directly. However, the calling convention for those functions
assumes that no I/O is pending or can be submitted when these
functions are called.
The latter is provided by the 'tmf_in_progress' flag, but we don't
actually wait for all I/O to complete.
This patch introduces a completion point which ensures all I/O
has been completed before ioctl reset is issued.
Signed-off-by: Hannes Reinecke <firstname.lastname@example.org>
2 files changed