zram: register default groups with device_add_disk()
authorHannes Reinecke <hare@suse.de>
Fri, 28 Sep 2018 06:17:22 +0000 (08:17 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Sep 2018 14:30:32 +0000 (08:30 -0600)
commit98af4d4df889dcea3bc0ce6b8a04759658ba8826
tree77afbbedbf6d4d12d69a69975b3173add3eab46f
parent95cf7809bf9169fec4e4b7bb24b8069d8f354f96
zram: register default groups with device_add_disk()

Register default sysfs groups during device_add_disk() to avoid a
race condition with udev during startup.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/zram/zram_drv.c