linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] block: Use helper function blk_mq_hctx_stopped() in blk_mq_run_work_fn()
@ 2020-09-05  9:42 Miaohe Lin
  0 siblings, 0 replies; 2+ messages in thread
From: Miaohe Lin @ 2020-09-05  9:42 UTC (permalink / raw)
  To: axboe; +Cc: linux-block, linux-kernel, linmiaohe

Use helper function blk_mq_hctx_stopped() to check if hardware queue
stopped in blk_mq_run_work_fn().

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
 block/blk-mq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/blk-mq.c b/block/blk-mq.c
index b3d2785eefe9..d089825f9cd1 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1806,7 +1806,7 @@ static void blk_mq_run_work_fn(struct work_struct *work)
 	/*
 	 * If we are stopped, don't run the queue.
 	 */
-	if (test_bit(BLK_MQ_S_STOPPED, &hctx->state))
+	if (blk_mq_hctx_stopped(hctx))
 		return;
 
 	__blk_mq_run_hw_queue(hctx);
-- 
2.19.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] block: Use helper function blk_mq_hctx_stopped() in blk_mq_run_work_fn()
@ 2020-09-24 13:13 linmiaohe
  0 siblings, 0 replies; 2+ messages in thread
From: linmiaohe @ 2020-09-24 13:13 UTC (permalink / raw)
  To: axboe; +Cc: linux-block, linux-kernel

Friend ping :)

> Use helper function blk_mq_hctx_stopped() to check if hardware queue stopped in blk_mq_run_work_fn().
>
> Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
> ---
>  block/blk-mq.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-24 13:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-05  9:42 [PATCH] block: Use helper function blk_mq_hctx_stopped() in blk_mq_run_work_fn() Miaohe Lin
2020-09-24 13:13 linmiaohe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).