Linux block layer
 help / color / mirror / Atom feed
* [PATCH 0/2] null_blk: zone resource management fixes
@ 2026-10-21 20:21 Niklas Cassel
  2026-10-21 20:21 ` [PATCH 1/2] null_blk: fix opening closed zones at the active zone limit Niklas Cassel
  2026-10-21 20:21 ` [PATCH 2/2] null_blk: don't finish zones to set them read-only or offline Niklas Cassel
  0 siblings, 2 replies; 7+ messages in thread
From: Niklas Cassel @ 2026-10-21 20:21 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Shin'ichiro Kawasaki, Johannes Thumshirn, Damien Le Moal,
	linux-block, Niklas Cassel

Patch 1 fixes writing, opening and finishing a closed zone when both the
open and the active zone limits are reached: null_blk fails the request
instead of closing an implicitly open zone, as ZBC-3 and NVMe ZNS
require.

Patch 2 fixes zone_readonly and zone_offline, which can close an
unrelated zone, or leak the closed zone count.

Both issues were reproduced, and the fixes tested, in QEMU, with
null_blk devices created through configfs (memory_backed=0 and 1,
CONFIG_PROVE_LOCKING=y).

Developed with the help of an AI coding assistant.

Niklas Cassel (2):
  null_blk: fix opening closed zones at the active zone limit
  null_blk: don't finish zones to set them read-only or offline

 drivers/block/null_blk/zoned.c | 48 ++++++++++++++++++++++++++--------
 1 file changed, 37 insertions(+), 11 deletions(-)


base-commit: f47d223627f80cb7a1eb14c585fe6cb35de5e984
-- 
2.56.0


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

end of thread, other threads:[~2026-10-22  7:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-21 20:21 [PATCH 0/2] null_blk: zone resource management fixes Niklas Cassel
2026-10-21 20:21 ` [PATCH 1/2] null_blk: fix opening closed zones at the active zone limit Niklas Cassel
2026-10-22  7:09   ` Damien Le Moal
2026-10-21 20:21 ` [PATCH 2/2] null_blk: don't finish zones to set them read-only or offline Niklas Cassel
2026-10-22  7:15   ` Damien Le Moal
2026-10-22  7:36     ` Niklas Cassel
2026-10-22  7:42       ` Damien Le Moal

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