Bart Van Assche c246e80d86 block: Avoid that request_fn is invoked on a dead queue
A block driver may start cleaning up resources needed by its
request_fn as soon as blk_cleanup_queue() finished, so request_fn
must not be invoked after draining finished. This is important
when blk_run_queue() is invoked without any requests in progress.
As an example, if blk_drain_queue() and scsi_run_queue() run in
parallel, blk_drain_queue() may have finished all requests after
scsi_run_queue() has taken a SCSI device off the starved list but
before that last function has had a chance to run the queue.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Cc: James Bottomley <JBottomley@Parallels.com>
Cc: Mike Christie <michaelc@cs.wisc.edu>
Cc: Chanho Min <chanho.min@lge.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-12-06 14:32:01 +01:00
..
2012-10-02 17:26:42 -07:00
2012-10-09 15:04:25 +01:00
2012-09-19 19:08:53 -06:00
2012-10-09 15:04:25 +01:00
2012-10-03 13:45:43 -07:00
2012-10-07 17:29:24 +09:00
2012-10-24 18:00:17 -07:00
2012-08-10 15:27:02 -04:00
2012-10-13 14:15:08 -07:00
2012-07-30 17:25:21 -07:00
2012-10-08 13:50:20 +10:30
2012-09-19 19:08:46 -06:00
2012-09-20 14:31:45 +02:00
2012-07-30 17:25:11 -07:00
2012-09-17 15:00:38 -07:00
2012-10-02 18:32:35 -07:00
2012-10-16 18:49:15 -07:00
2012-09-26 21:10:00 -04:00
2012-10-16 13:37:17 -04:00
2012-08-09 16:18:06 -07:00
2012-10-06 03:04:56 +09:00
2012-09-07 14:57:45 -04:00
2012-09-11 10:15:02 +02:00
2012-09-26 13:52:36 -07:00
2012-08-22 10:24:41 -04:00
2012-10-10 01:15:44 -04:00
2012-10-02 19:01:32 -07:00
2012-09-17 15:00:37 -07:00
2012-10-09 16:22:54 +09:00
2012-10-09 16:23:00 +09:00
2012-10-10 20:00:55 +10:30
2012-10-17 15:53:01 -05:00
2012-10-17 15:53:02 -05:00
2012-10-10 22:41:05 -04:00
2012-07-31 18:42:43 -07:00
2012-10-05 22:23:53 +02:00
2012-10-02 18:32:35 -07:00
2012-10-11 08:50:16 +09:00
2012-10-06 03:05:01 +09:00
2012-09-27 12:45:28 +02:00
2012-10-11 20:02:04 -04:00
2012-10-07 00:40:54 -04:00
2012-10-09 16:22:55 +09:00
2012-10-22 15:16:06 -04:00
2012-08-21 16:28:31 +02:00
2012-10-09 16:22:32 +09:00
2012-10-07 21:19:42 +02:00
2012-09-05 17:21:36 -07:00
2012-10-17 11:16:13 -07:00
2012-08-04 12:15:37 +04:00