]> git.baikalelectronics.ru Git - kernel.git/commit
block: add the events* attributes to disk_attrs
authorChristoph Hellwig <hch@lst.de>
Thu, 24 Jun 2021 07:38:43 +0000 (09:38 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 24 Jun 2021 18:00:22 +0000 (12:00 -0600)
commit7f4cffd046f09d37cbfadecf29ae345cdcfd60b6
tree538072bbb7ef09753ad66de333655a608a676069
parentad1d027b000f752cac312444b84a4f19d6370007
block: add the events* attributes to disk_attrs

Add the events attributes to the disk_attrs array, which ensures they are
added by the driver core when the device is created rather than adding
them after the device has been added, which is racy versus uevents and
requires more boilerplate code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20210624073843.251178-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk.h
block/disk-events.c
block/genhd.c