James Smart <James.Smart@xxxxxxxxxx> wrote: > This is the midlayer portion of the patch > > This patch ensures that i/o is stopped while an eh handler is being > processed. It adds a new flag, set by the async reset callers, which > augments the host-in-reset checks and stops i/o. The async reset > callers are already synchronized to hold off until the error thread is > no longer running. Why the new flag instead of calling scsi_host_set_state(shost, SHOST_RECOVERY) or a new state if you want different behavior? Not using the state model but still doing recovery actions may run into issues if these happen while someone tries to remove a host. -andmike -- Michael Anderson andmike@xxxxxxxxxx - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html