From 4425bdfd4d5d77eaff87b6eeee8e4831b297f4e4 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 31 Jul 2003 08:06:10 -0700 Subject: [PATCH] [PATCH] fix broken blk_start_queue behavior From Lou Langholtz This fixes the behavior of blk_start_queue() so that request queues really do start up again after blk_start_queue() is called (on queues that were previously stopped via blk_stop_queue). --- drivers/block/ll_rw_blk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/ll_rw_blk.c b/drivers/block/ll_rw_blk.c index 1d9e204f99d..74e65481e35 100644 --- a/drivers/block/ll_rw_blk.c +++ b/drivers/block/ll_rw_blk.c @@ -1027,10 +1027,10 @@ int blk_remove_plug(request_queue_t *q) */ static inline void __generic_unplug_device(request_queue_t *q) { - if (!blk_remove_plug(q)) + if (test_bit(QUEUE_FLAG_STOPPED, &q->queue_flags)) return; - if (test_bit(QUEUE_FLAG_STOPPED, &q->queue_flags)) + if (!blk_remove_plug(q)) return; del_timer(&q->unplug_timer); -- 2.11.4.GIT