[PATCH v4 0/5] Introduce device_add_disk() to kill gendisk.driverfs_dev
From: Dan Williams
Date: Tue Jun 21 2016 - 16:49:25 EST
Changes since v3 [1]:
1/ Broke out the non-trivial conversions into their own patches.
2/ Fix a behavior change in arch/um/drivers/ubd_kern.c. This driver
optionally creates parented and un-parented block devices. (Bart)
3/ Fix a behavior change in drivers/mmc/card/block.c. This driver does
not use blk-core infrastructure for partitions and instead registers
partitions as gendisk-children of the whole device gendisk.
Crediting Bart since his report triggered this re-review.
4/ Use the local CARD_TO_DEV() helper in drivers/block/rsxx/dev.c.
5/ Use the local 'dev' variable that represents the parent device in
drivers/scsi/sd.c.
[1]: https://lists.01.org/pipermail/linux-nvdimm/2016-June/005988.html
---
Answer the "// FIXME: remove" include/linux/genhd.h. This should be
functionally equivalent to the previous state. These patches received a
build success notification from the kbuild robot across 122 configs.
---
Dan Williams (5):
block: introduce device_add_disk()
mmc: move 'parent' tracking to mmc_blk_data
um: track 'parent' device in a local variable
block: convert to device_add_disk()
block: remove ->driverfs_dev
arch/powerpc/sysdev/axonram.c | 3 +--
arch/um/drivers/ubd_kern.c | 5 +++--
block/genhd.c | 18 +++++++++---------
drivers/block/cciss.c | 3 +--
drivers/block/floppy.c | 3 +--
drivers/block/mtip32xx/mtip32xx.c | 5 ++---
drivers/block/ps3disk.c | 3 +--
drivers/block/ps3vram.c | 3 +--
drivers/block/rsxx/dev.c | 4 +---
drivers/block/skd_main.c | 8 +++-----
drivers/block/sunvdc.c | 3 +--
drivers/block/virtio_blk.c | 3 +--
drivers/block/xen-blkfront.c | 3 +--
drivers/ide/ide-cd.c | 3 +--
drivers/ide/ide-gd.c | 3 +--
drivers/memstick/core/ms_block.c | 3 +--
drivers/memstick/core/mspro_block.c | 3 +--
drivers/mmc/card/block.c | 5 +++--
drivers/mtd/mtd_blkdevs.c | 4 +---
drivers/nvdimm/blk.c | 3 +--
drivers/nvdimm/btt.c | 3 +--
drivers/nvdimm/bus.c | 2 +-
drivers/nvdimm/pmem.c | 3 +--
drivers/nvme/host/core.c | 3 +--
drivers/s390/block/dasd_genhd.c | 3 +--
drivers/s390/block/dcssblk.c | 3 +--
drivers/s390/block/scm_blk.c | 3 +--
drivers/scsi/sd.c | 3 +--
drivers/scsi/sr.c | 3 +--
include/linux/genhd.h | 8 ++++++--
30 files changed, 50 insertions(+), 72 deletions(-)