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,
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
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
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
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:
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