On Sun, Oct 09, 2016 at 10:21:45PM +0800, Wei Fang wrote: > ->host_eh_schedule and ->shost_state may be accessed simultaneously as > below: But we can't simply take shost_lock in every completion handler, as that would kill peformance. >From a quick look the most sensible options seems to be to remove the host_eh_scheduled field and replace it with another host state. -- To unsubscribe from this list: 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