Skip to content

block: replace incorrect uses of GENHD_FL_UP

Luis Chamberlain linux-block linux-mmc linux-nvme linux-raid lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5block: add flag for add_disk() completion notationblock/genhd.c include/linux/genhd.h+18 -11 reply
2/5md: replace GENHD_FL_UP with GENHD_FL_DISK_ADDED on is_mddev_broken()drivers/md/md.h+1 -31 reply
3/5mmc/core/block: replace GENHD_FL_UP with GENHD_FL_DISK_ADDEDdrivers/mmc/core/block.c+1 -11 reply
4/5nvme: replace GENHD_FL_UP with GENHD_FL_DISK_ADDEDdrivers/nvme/host/core.c drivers/nvme/host/multipath.c+3 -31 reply
5/5fs/block_dev: replace GENHD_FL_UP with GENHD_FL_DISK_ADDEDfs/block_dev.c+3 -21 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] block: replace incorrect uses of GENHD_FL_UP

I've bumped this from RFC to PATCH form as request by Christoph, as it seems to line up with what he wants to do. As per Hannes I also stuck to one form of naming, so went with blk_disk_added() instead of blk_disk_registered() and used that instead of open coding the flag check.

This is rebased onto next-20210720 and I've made the patch series independent of my *add_disk*() error handling series. This goes compile and boot tested.

Luis Chamberlain (5):
block: add flag for add_disk() completion notation
md: replace GENHD_FL_UP with GENHD_FL_DISK_ADDED on is_mddev_broken() mmc/core/block: replace GENHD_FL_UP with GENHD_FL_DISK_ADDED
nvme: replace GENHD_FL_UP with GENHD_FL_DISK_ADDED fs/block_dev: replace GENHD_FL_UP with GENHD_FL_DISK_ADDED

 block/genhd.c                 |  8 ++++++++
 drivers/md/md.h               |  4 +---
 drivers/mmc/core/block.c      |  2 +-
 drivers/nvme/host/core.c      |  4 ++--
 drivers/nvme/host/multipath.c |  2 +-
 fs/block_dev.c                |  5 +++--
 include/linux/genhd.h         | 11 ++++++++++-
 7 files changed, 26 insertions(+), 10 deletions(-)
Signature · 1 line
2.27.0