linux-stable/drivers/nvdimm
Hannes Reinecke 1bf6a186c4 block: genhd: add 'groups' argument to device_add_disk
commit fef912bf86 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
..
badrange.c
blk.c block: genhd: add 'groups' argument to device_add_disk 2021-03-11 14:04:59 +01:00
btt.c block: genhd: add 'groups' argument to device_add_disk 2021-03-11 14:04:59 +01:00
btt.h libnvdimm/btt: Fix LBA masking during 'free list' population 2020-05-27 17:37:39 +02:00
btt_devs.c libnvdimm/btt: Fix LBA masking during 'free list' population 2020-05-27 17:37:39 +02:00
bus.c libnvdimm: Out of bounds read in __nd_ioctl() 2020-04-23 10:30:22 +02:00
claim.c
core.c
dax_devs.c
dimm.c
dimm_devs.c libnvdimm/dimm: Avoid race between probe and available_slots_show() 2021-03-04 09:39:56 +01:00
e820.c
Kconfig
label.c libnvdimm/namespace: Fix reaping of invalidated block-window-namespace labels 2020-12-30 11:26:17 +01:00
label.h
Makefile
namespace_devs.c libnvdimm: Fix endian conversion issues 2020-06-07 13:17:53 +02:00
nd-core.h
nd.h
of_pmem.c
pfn.h
pfn_devs.c
pmem.c block: genhd: add 'groups' argument to device_add_disk 2021-03-11 14:04:59 +01:00
pmem.h
region.c
region_devs.c