anolis-cloud-kernel/drivers/s390
Hannes Reinecke 1121b3ed64 block: genhd: add 'groups' argument to device_add_disk
fix #32884543

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>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
2021-03-01 18:05:20 +08:00
..
block block: genhd: add 'groups' argument to device_add_disk 2021-03-01 18:05:20 +08:00
char s390/kasan: avoid instrumentation of early C code 2019-11-24 08:20:44 +01:00
cio s390/cio: avoid calling strlen on null pointer 2019-10-11 18:21:08 +02:00
crypto s390/zcrypt: make sysfs reset attribute trigger queue reset 2019-12-05 09:20:04 +01:00
net s390/qeth: invoke softirqs after napi_schedule() 2019-11-20 18:46:51 +01:00
scsi scsi: zfcp: trace channel log even for FCP command responses 2019-12-17 20:35:22 +01:00
virtio virtio: don't allocate vqs when names[i] = NULL 2020-04-13 11:56:00 +08:00
Makefile kbuild: rename built-in.o to built-in.a 2018-03-26 02:01:19 +09:00