* [patch] cleanup: use blk_queue_stopped
@ 2006-04-19 3:27 Coywolf Qi Hunt
2006-04-19 8:15 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Coywolf Qi Hunt @ 2006-04-19 3:27 UTC (permalink / raw)
To: axboe; +Cc: linux-kernel, akpm
Hi,
This cleanup the source to use blk_queue_stopped.
Signed-off-by: Coywolf Qi Hunt <qiyong@freeforge.net>
---
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c
index e112d1a..1755c05 100644
--- a/block/ll_rw_blk.c
+++ b/block/ll_rw_blk.c
@@ -1554,7 +1554,7 @@ void blk_plug_device(request_queue_t *q)
* don't plug a stopped queue, it must be paired with blk_start_queue()
* which will restart the queueing
*/
- if (test_bit(QUEUE_FLAG_STOPPED, &q->queue_flags))
+ if (blk_queue_stopped(q))
return;
if (!test_and_set_bit(QUEUE_FLAG_PLUGGED, &q->queue_flags)) {
@@ -1587,7 +1587,7 @@ EXPORT_SYMBOL(blk_remove_plug);
*/
void __generic_unplug_device(request_queue_t *q)
{
- if (unlikely(test_bit(QUEUE_FLAG_STOPPED, &q->queue_flags)))
+ if (unlikely(blk_queue_stopped(q)))
return;
if (!blk_remove_plug(q))
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [patch] cleanup: use blk_queue_stopped
2006-04-19 3:27 [patch] cleanup: use blk_queue_stopped Coywolf Qi Hunt
@ 2006-04-19 8:15 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2006-04-19 8:15 UTC (permalink / raw)
To: Coywolf Qi Hunt; +Cc: linux-kernel, akpm
On Tue, Apr 18 2006, Coywolf Qi Hunt wrote:
> Hi,
>
> This cleanup the source to use blk_queue_stopped.
Thanks, applied.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-04-19 8:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-19 3:27 [patch] cleanup: use blk_queue_stopped Coywolf Qi Hunt
2006-04-19 8:15 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox