Skip to content

block: first batch of add_disk() error handling conversions

Luis Chamberlain linux-bcache linux-block linux-nvme lkml nvdimm xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10block/brd: add error handling support for add_disk()drivers/block/brd.c+8 -20 replies
2/10bcache: add error handling support for add_disk()drivers/md/bcache/super.c+12 -51 reply
3/10nvme-multipath: add error handling support for add_disk()drivers/nvme/host/multipath.c+7 -32 replies
4/10nvdimm/btt: do not call del_gendisk() if not neededdrivers/nvdimm/btt.c+0 -10 replies
5/10nvdimm/btt: use goto error labels on btt_blk_init()drivers/nvdimm/btt.c+12 -70 replies
6/10nvdimm/btt: add error handling support for add_disk()drivers/nvdimm/btt.c+3 -10 replies
7/10nvdimm/blk: avoid calling del_gendisk() on early failuresdrivers/nvdimm/blk.c+12 -50 replies
8/10nvdimm/blk: add error handling support for add_disk()drivers/nvdimm/blk.c+3 -10 replies
9/10xen-blkfront: add error handling support for add_disk()drivers/block/xen-blkfront.c+7 -10 replies
10/10zram: add error handling support for add_disk()drivers/block/zram/zram_drv.c+5 -10 replies

Reviews trailers per patch

1 of 10 patches has a Reviewed-by or Acked-by.

PatchColy Li
1/10
2/10A-b
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10] block: first batch of add_disk() error handling conversions

This is my second batch of driver conversions to use add_disk() error handling. Please review and let me know if you spot any issues. This is part of a larger effort to covert all drivers over to use the new add_disk() error handling. The entire work can be found on my branch dedicated for this work [0]

[0] https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/log/?h=20210827-for-axboe-add-disk-error-handling-next-2nd

Luis Chamberlain (10):
block/brd: add error handling support for add_disk()
bcache: add error handling support for add_disk()
nvme-multipath: add error handling support for add_disk() nvdimm/btt: do not call del_gendisk() if not needed nvdimm/btt: use goto error labels on btt_blk_init() nvdimm/btt: add error handling support for add_disk() nvdimm/blk: avoid calling del_gendisk() on early failures nvdimm/blk: add error handling support for add_disk()
xen-blkfront: add error handling support for add_disk()
zram: add error handling support for add_disk()

 drivers/block/brd.c           | 10 ++++++++--
 drivers/block/xen-blkfront.c  |  8 +++++++-
 drivers/block/zram/zram_drv.c |  6 +++++-
 drivers/md/bcache/super.c     | 17 ++++++++++++-----
 drivers/nvdimm/blk.c          | 21 +++++++++++++++------
 drivers/nvdimm/btt.c          | 24 +++++++++++++++---------
 drivers/nvme/host/multipath.c | 10 +++++++---
 7 files changed, 69 insertions(+), 27 deletions(-)
Signature · 1 line
2.30.2