Linux block layer
 help / color / mirror / Atom feed
* [PATCH v1 0/2] block: brd/loop error-path cleanup
@ 2026-08-31 15:20 Iván Ezequiel Rodriguez
  2026-08-31 15:20 ` [PATCH v1 1/2] block: brd: destroy xa on allocation failure Iván Ezequiel Rodriguez
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Iván Ezequiel Rodriguez @ 2026-08-31 15:20 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-block, linux-kernel, Iván Ezequiel Rodriguez

Hi,

Two small error-path cleanups in brd and loop.

Patch 1 destroys the brd xarray on allocation failure after xa_init().
Patch 2 restores backing-file GFP mask, clears lo_backing_file /
lo_device, and re-enables uevents when loop_configure() fails after
loop_assign_backing_file().

Base: v7.3-rc1

Tested: built bzImage with CONFIG_BLK_DEV_RAM=y and CONFIG_BLK_DEV_LOOP=y;
booted QEMU initramfs smoke (ram0 present + LOOP_CONFIGURE happy path).

Thanks,
Iván

Iván Ezequiel Rodriguez (2):
  block: brd: destroy xa on allocation failure
  block: loop: restore state on loop_configure() error

 drivers/block/brd.c  | 1 +
 drivers/block/loop.c | 7 +++++++
 2 files changed, 8 insertions(+)

-- 
2.43.0

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

end of thread, other threads:[~2026-09-01  6:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-31 15:20 [PATCH v1 0/2] block: brd/loop error-path cleanup Iván Ezequiel Rodriguez
2026-08-31 15:20 ` [PATCH v1 1/2] block: brd: destroy xa on allocation failure Iván Ezequiel Rodriguez
2026-08-31 15:20 ` [PATCH v1 2/2] block: loop: restore state on loop_configure() error Iván Ezequiel Rodriguez
2026-09-01  6:59 ` [syzbot ci] Re: block: brd/loop error-path cleanup syzbot ci

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