Hannes Reinecke 1bf6a186c4 block: genhd: add 'groups' argument to device_add_disk
commit fef912bf860e8e7e48a2bfb978a356bba743a8b7 upstream.

Update device_add_disk() to take an 'groups' argument so that
individual drivers can register a device with additional sysfs
attributes.
This avoids race condition the driver would otherwise have if these
groups were to be created with sysfs_add_groups().

Signed-off-by: Martin Wilck <martin.wilck@suse.com>
Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-11 14:04:59 +01:00
..
2016-07-26 15:25:30 -07:00
2015-04-17 15:32:07 -04:00
2013-11-14 18:21:25 -05:00
2018-05-07 07:15:41 +02:00
2018-05-07 07:15:41 +02:00
2017-08-16 11:25:16 -07:00
2018-06-12 16:19:22 -07:00
2013-01-03 15:57:03 -08:00
2018-12-21 14:15:18 +01:00
2016-01-18 14:12:33 -05:00