diff options
| author | Jens Axboe <axboe@suse.de> | 2003-07-31 08:06:10 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-07-31 08:06:10 -0700 |
| commit | 4425bdfd4d5d77eaff87b6eeee8e4831b297f4e4 (patch) | |
| tree | b9c315d292dc884c3dd04311bdbb277b05ddc2b5 | |
| parent | 2ecd9a6dc79ed69914c5129c1187cd14958ed680 (diff) | |
[PATCH] fix broken blk_start_queue behavior
From Lou Langholtz <ldl@aros.net>
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).
| -rw-r--r-- | drivers/block/ll_rw_blk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/ll_rw_blk.c b/drivers/block/ll_rw_blk.c index 1d9e204f99d4..74e65481e35c 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); |
