[PATCH v4 4/5] block: convert to device_add_disk()

2016-06-21 Thread Dan Williams
For block drivers that specify a parent device, convert them to use device_add_disk(). This conversion was done with the following semantic patch: @@ struct gendisk *disk; expression E; @@ - disk->driverfs_dev = E; ... - add_disk(disk); + device_add_disk(E,

[PATCH v4 2/5] mmc: move 'parent' tracking to mmc_blk_data

2016-06-21 Thread Dan Williams
In preparation for the removal of 'driverfs_dev' from 'struct gendisk', carry this data in mmc_blk_data. It is used for registration of parent disks and partitions. Cc: Ulf Hansson Reported-by: Bart Van Assche Signed-off-by: Dan Williams

[PATCH v4 1/5] block: introduce device_add_disk()

2016-06-21 Thread Dan Williams
In preparation for removing the ->driverfs_dev member of a gendisk, add an api that takes the parent device as a parameter to add_disk(). For now this maintains the status quo of WARN()ing on failure, but not return a error code. Reviewed-by: Christoph Hellwig Reviewed-by: Johannes

[PATCH v4 0/5] Introduce device_add_disk() to kill gendisk.driverfs_dev

2016-06-21 Thread Dan Williams
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

Re: [PATCH 0/6] Support DAX for device-mapper dm-linear devices

2016-06-21 Thread Kani, Toshimitsu
On Tue, 2016-06-21 at 09:25 -0700, Dan Williams wrote: > On Tue, Jun 21, 2016 at 8:44 AM, Kani, Toshimitsu > wrote: > > > > On Tue, 2016-06-21 at 09:41 -0400, Mike Snitzer wrote: > > > > > > On Mon, Jun 20 2016 at  6:22pm -0400, > > > Mike Snitzer wrote:

Re: [PATCH 0/6] Support DAX for device-mapper dm-linear devices

2016-06-21 Thread Kani, Toshimitsu
On Tue, 2016-06-21 at 09:34 -0600, Kani, Toshimitsu wrote: > On Tue, 2016-06-21 at 09:41 -0400, Mike Snitzer wrote: > > > > On Mon, Jun 20 2016 at  6:22pm -0400, > > Mike Snitzer wrote: > > > > > > On Mon, Jun 20 2016 at  5:28pm -0400, > > > Kani, Toshimitsu