Skip to content

add error handle for bdi debugfs register

weiping zhang linux-block linux-mm 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesIn review
  2. v14 patches 7 repliesSuperseded

Changes in v2 from the cover letter

* remove the patch for bdi_debug_init(), because patch1 add a check for bdi_debug_root
* remove bdi_put in bdi_register, this functions has two callers:
caller1: mtd_bdi_init->bdi_register, bdi_put if register fail
caller2: device_add_disk->bdi_register_owner->bdi_register, this call stack need more safety cleanup, so patch3 add an WARN_ON.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bdi: convert bdi_debug_register to intmm/backing-dev.c+15 -20 replies
2/3bdi: add error handle for bdi_debug_registermm/backing-dev.c+4 -13 replies
3/3block: add WARN_ON if bdi register failblock/genhd.c+1 -10 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJan Kara
1/3R-b
2/3R-b
3/3R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/3] add error handle for bdi debugfs register

Hello,

Change since V1:
* remove the patch for bdi_debug_init(), because patch1 add a check for bdi_debug_root
* remove bdi_put in bdi_register, this functions has two callers:
caller1: mtd_bdi_init->bdi_register, bdi_put if register fail
caller2: device_add_disk->bdi_register_owner->bdi_register, this call stack need more safety cleanup, so patch3 add an WARN_ON.

weiping zhang (3):
bdi: convert bdi_debug_register to int
bdi: add error handle for bdi_debug_register
block: add WARN_ON if bdi register fail

 block/genhd.c    |  2 +-
 mm/backing-dev.c | 22 +++++++++++++++++++---
 2 files changed, 20 insertions(+), 4 deletions(-)
Signature · 1 line
2.14.2