Request processing functions like scsi_request_fn() that unlock the queue lock internally may cause blk_cleanup_queue() to finish while the request_fn is in progress. This two-patch series makes sure that blk_cleanup_queue() can't finish before all active request_fn calls have finished. Changes compared to v1: - Included a patch to rename QUEUE_FLAG_DEAD. - Refined the descriptions of the __blk_run_queue_uncond() and blk_cleanup_queue() functions. -- 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