linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next 0/2] block, bfq: make bfq_has_work() more accurate
@ 2022-05-10 13:16 Yu Kuai
  2022-05-10 13:16 ` [PATCH -next 1/2] block, bfq: protect 'bfqd->queued' by 'bfqd->lock' Yu Kuai
  2022-05-10 13:16 ` [PATCH -next 2/2] block, bfq: make bfq_has_work() more accurate Yu Kuai
  0 siblings, 2 replies; 8+ messages in thread
From: Yu Kuai @ 2022-05-10 13:16 UTC (permalink / raw)
  To: jack, paolo.valente, axboe; +Cc: linux-block, linux-kernel, yukuai3, yi.zhang

This patchset try to make bfq_has_work() more accurate, patch 1 is a
small problem found by code review.

BTW, I not sure why blk_mq_run_hw_queues() is called with 'bfqd->lock'
held, I think this is not necessary. And bfq_has_work() can be more
accurate by reading 'bfqd->queued' with 'bfqd->lock' held after patch 2.

Yu Kuai (2):
  block, bfq: protect 'bfqd->queued' by 'bfqd->lock'
  block, bfq: make bfq_has_work() more accurate

 block/bfq-iosched.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

-- 
2.31.1


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

end of thread, other threads:[~2022-05-13  1:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-10 13:16 [PATCH -next 0/2] block, bfq: make bfq_has_work() more accurate Yu Kuai
2022-05-10 13:16 ` [PATCH -next 1/2] block, bfq: protect 'bfqd->queued' by 'bfqd->lock' Yu Kuai
2022-05-11 13:52   ` Jan Kara
2022-05-10 13:16 ` [PATCH -next 2/2] block, bfq: make bfq_has_work() more accurate Yu Kuai
2022-05-11 14:08   ` Jan Kara
2022-05-12  1:30     ` yukuai (C)
2022-05-12 17:10       ` Jan Kara
2022-05-13  1:08         ` yukuai (C)

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).