linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] zoned null_blk fixes
@ 2020-10-29 11:04 Damien Le Moal
  2020-10-29 11:04 ` [PATCH 1/2] null_blk: Fix zone reset all tracing Damien Le Moal
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Damien Le Moal @ 2020-10-29 11:04 UTC (permalink / raw)
  To: linux-block, Jens Axboe; +Cc: Chaitanya Kulkarni, Kanchan Joshi

Jens,

Here is a couple of fixes for nullblk for this cycle.

The first patch fixes tracing of zone condition in the case of a
REQ_OP_ZONE_RESET_ALL operation.

The second patch fixes a more serious problem introduced with the recent
modification for protecting zone information using a spinlock. A
spinlock cannot be used when memory backing is turned on as that results
in potential memory allocations with the lock held and IRQ disabled.
The fix changes the locking method to using a bit, with the spinlock
retained only for function local protection. This new locking was
extensively tested with xfstests/btrfs and zonefs tests runs.

Damien Le Moal (2):
  null_blk: Fix zone reset all tracing
  null_blk: Fix locking in zoned mode

 drivers/block/null_blk.h       |   3 +-
 drivers/block/null_blk_zoned.c | 113 +++++++++++++++++++++++++--------
 2 files changed, 89 insertions(+), 27 deletions(-)

-- 
2.26.2


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

end of thread, other threads:[~2020-10-29 13:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-29 11:04 [PATCH 0/2] zoned null_blk fixes Damien Le Moal
2020-10-29 11:04 ` [PATCH 1/2] null_blk: Fix zone reset all tracing Damien Le Moal
2020-10-29 11:05 ` [PATCH 2/2] null_blk: Fix locking in zoned mode Damien Le Moal
2020-10-29 13:27 ` [PATCH 0/2] zoned null_blk fixes Jens Axboe

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