Hello, Bart. On Mon, Dec 03, 2012 at 05:38:52PM +0100, Bart Van Assche wrote: > It is indeed possible to invoke complete() only if the device list > became empty with the host state equal to SHOST_CANCEL, > SHOST_CANCEL_RECOVERY, SHOST_DEL or SHOST_DEL_RECOVERY and in We can test this with !scsi_host_scan_allowed(), right? > scsi_remove_host() to wait for that completion only if the device > list was not empty before the host state was changed into one of the > four mentioned states. Do you really prefer this approach over the > approach in the patch at the start of this thread ? Maybe I'm missing something but if possible completion tends to be much simpler than using waitqueue directly. I *think* that's the case here. Am I missing something? Thanks. -- tejun -- 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