nvme: register ns_id attributes as default sysfs groups
authorHannes Reinecke <hare@suse.de>
Fri, 28 Sep 2018 06:17:20 +0000 (08:17 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Sep 2018 14:30:29 +0000 (08:30 -0600)
commit33b14f67a4e1eabd219fd6543da8f15ed86b641c
tree63570313331b938cbdf404c72135a025e25b13c7
parentfef912bf860e8e7e48a2bfb978a356bba743a8b7
nvme: register ns_id attributes as default sysfs groups

We should be registering the ns_id attribute as default sysfs
attribute groups, otherwise we have a race condition between
the uevent and the attributes appearing in sysfs.

Suggested-by: Bart van Assche <bvanassche@acm.org>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c
drivers/nvme/host/lightnvm.c
drivers/nvme/host/multipath.c
drivers/nvme/host/nvme.h