Skip to content

block: add_disk() error handling stragglers

Luis Chamberlain linux-block linux-mtd linux-raid linux-scsi lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/213 patches 1 replyIn review
  2. v3 posting 1/21 patch 1 replyApplied
  3. v213 patches 17 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v113 patches22 repliesApplied

Patches in v3 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13nvdimm/btt: do not call del_gendisk() if not neededdrivers/nvdimm/btt.c+0 -10 replies
2/13nvdimm/btt: use goto error labels on btt_blk_init()drivers/nvdimm/btt.c+10 -60 replies
3/13nvdimm/btt: add error handling support for add_disk()drivers/nvdimm/btt.c+3 -10 replies
4/13nvdimm/blk: avoid calling del_gendisk() on early failuresdrivers/nvdimm/blk.c+12 -50 replies
5/13nvdimm/blk: add error handling support for add_disk()drivers/nvdimm/blk.c+3 -10 replies
6/13nvdimm/pmem: cleanup the disk if pmem_release_disk() is yet assigneddrivers/nvdimm/pmem.c+9 -40 replies
7/13nvdimm/pmem: use add_disk() error handlingdrivers/nvdimm/pmem.c+7 -10 replies
8/13z2ram: add error handling support for add_disk()drivers/block/z2ram.c+5 -20 replies
9/13block/sunvdc: add error handling support for add_disk()drivers/block/sunvdc.c+11 -30 replies
10/13mtd/ubi/block: add error handling support for add_disk()drivers/mtd/ubi/block.c+7 -10 replies
11/13ataflop: remove ataflop_probe_lock mutexdrivers/block/ataflop.c+27 -200 replies
12/13block: fix __register_blkdev() probe add_disk() failuresblock/genhd.c drivers/block/ataflop.c drivers/block/floppy.c+22 -61 reply
13/13block: add __must_check for *add_disk*() callersblock/genhd.c include/linux/genhd.h+6 -60 replies

Reviews trailers per patch

11 of 13 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigLuis ChamberlainMichael SchmitzDan Williams
1/13R-b R-b
2/13R-b R-b
3/13R-b
4/13R-b
5/13R-b R-b
6/13R-b
7/13R-b
8/13R-b
9/13R-b
10/13R-b
11/13R-b T-b
12/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/13] block: add_disk() error handling stragglers

This v3 series has the following changes:

o clarifies the nvdimm/btt fix to not call del_gendisk to be a proper fix regardless of kernel.
o Adds reviewed-by tags
o modified the __register_blkdev() changes so that we do not propagate the error code from add_disk() but instead we just cleanup the resources where needed, and update the documentation to reflect suggestions by Christoph

You can find these changes on tree:

https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/log/?h=20211103-for-axboe-add-disk-error-handling-v3

Luis Chamberlain (12):
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() nvdimm/pmem: cleanup the disk if pmem_release_disk() is yet assigned nvdimm/pmem: use add_disk() error handling
z2ram: add error handling support for add_disk() block/sunvdc: add error handling support for add_disk() mtd/ubi/block: add error handling support for add_disk()
block: fix __register_blkdev() probe add_disk() failures
block: add __must_check for *add_disk*() callers

Tetsuo Handa (1):
ataflop: remove ataflop_probe_lock mutex

 block/genhd.c           | 11 +++++---
 drivers/block/ataflop.c | 59 +++++++++++++++++++++++++----------------
 drivers/block/floppy.c  | 11 ++++++--
 drivers/block/sunvdc.c  | 14 +++++++---
 drivers/block/z2ram.c   |  7 +++--
 drivers/mtd/ubi/block.c |  8 +++++-
 drivers/nvdimm/blk.c    | 21 ++++++++++-----
 drivers/nvdimm/btt.c    | 21 +++++++++------
 drivers/nvdimm/pmem.c   | 21 +++++++++++----
 include/linux/genhd.h   |  6 ++---
 10 files changed, 122 insertions(+), 57 deletions(-)
Signature · 1 line
2.33.0