public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] bcache fix for Linux v5.19 (3rd wave)
@ 2022-05-28  6:19 Coly Li
  2022-05-28  6:19 ` [PATCH 1/1] bcache: avoid unnecessary soft lockup in kworker update_writeback_rate() Coly Li
  0 siblings, 1 reply; 6+ messages in thread
From: Coly Li @ 2022-05-28  6:19 UTC (permalink / raw)
  To: axboe; +Cc: linux-block, linux-bcache, Coly Li

Hi Jens,

This submission only has 1 patch, which is the effort to avoid bogus
soft lockup warning from the bcache writeback rate update kworker.

Based on your suggestion, this version is more clear and simple, it
works as expected in my testing. BCH_WBRATE_UPDATE_RETRY_MAX (15)
defines the maximum retry times for lock contention, in worst case it
is 1+ minutes before update_writeback_rate() call down_read() to acquire
dc->writeback_lock.

Please consider to take it, and thank you again for the suggestion.

Coly Li
---

Coly Li (1):
  bcache: avoid unnecessary soft lockup in kworker
    update_writeback_rate()

 drivers/md/bcache/bcache.h    |  7 +++++++
 drivers/md/bcache/writeback.c | 31 +++++++++++++++++++++----------
 2 files changed, 28 insertions(+), 10 deletions(-)

-- 
2.35.3


^ permalink raw reply	[flat|nested] 6+ messages in thread
* [PATCH v2 0/1] bcache fix for Linux v5.19 (3rd wave)
@ 2022-05-28 12:45 Coly Li
  2022-05-28 12:45 ` [PATCH 1/1] bcache: avoid unnecessary soft lockup in kworker update_writeback_rate() Coly Li
  0 siblings, 1 reply; 6+ messages in thread
From: Coly Li @ 2022-05-28 12:45 UTC (permalink / raw)
  To: axboe; +Cc: linux-bcache, linux-block, Coly Li

Hi Jens,

This is the last bcache patch from me for Linux v5.19, which tries to
avoid bogus soft lockup warning from the bcache writeback rate update
kworker.

Comparing to previous version, the only change in this version is to
change BCH_WBRATE_UPDATE_RETRY_MAX to BCH_WBRATE_UPDATE_RETRY_MAX. This
is only about naming change, no other thing touched.

This patch is generated againt linux-block:for-5.19/drivers, the latest
patch in the branch I see is commit 1243172d5894 ("nbd: use pr_err to
output error message").

Thank you for the suggestion for a more clear and simple patch.

Coly Li
---

Coly Li (1):
  bcache: avoid unnecessary soft lockup in kworker
    update_writeback_rate()

 drivers/md/bcache/bcache.h    |  7 +++++++
 drivers/md/bcache/writeback.c | 31 +++++++++++++++++++++----------
 2 files changed, 28 insertions(+), 10 deletions(-)

-- 
2.35.3


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

end of thread, other threads:[~2022-05-28 12:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-28  6:19 [PATCH 0/1] bcache fix for Linux v5.19 (3rd wave) Coly Li
2022-05-28  6:19 ` [PATCH 1/1] bcache: avoid unnecessary soft lockup in kworker update_writeback_rate() Coly Li
2022-05-28 12:20   ` Jens Axboe
2022-05-28 12:22     ` Coly Li
2022-05-28 12:23       ` Jens Axboe
  -- strict thread matches above, loose matches on Subject: below --
2022-05-28 12:45 [PATCH v2 0/1] bcache fix for Linux v5.19 (3rd wave) Coly Li
2022-05-28 12:45 ` [PATCH 1/1] bcache: avoid unnecessary soft lockup in kworker update_writeback_rate() Coly Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox