On 6/24/21 9:38 AM, Christoph Hellwig wrote: > 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@xxxxxx> > --- > block/blk.h | 3 +++ > block/disk-events.c | 23 ++++------------------- > block/genhd.c | 3 +++ > 3 files changed, 10 insertions(+), 19 deletions(-) > Reviewed-by: Hannes Reinecke <hare@xxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@xxxxxxx +49 911 74053 688 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Felix Imendörffer