md: extend disks_mutex coverage
authorChristoph Hellwig <hch@lst.de>
Wed, 1 Sep 2021 11:38:32 +0000 (13:38 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 20:50:21 +0000 (14:50 -0600)
commit94f3cd7d832c28681f1dea54b4dd8606e5e2bc75
tree3752d011c614186998442663f46e498cba04364e
parent51238e7fbd6182e36dbc093c92ae93142c57c0f5
md: extend disks_mutex coverage

disks_mutex is intended to serialize md_alloc.  Extended it to also cover
the kobject_uevent call and getting the sysfs dirent to help reducing
error handling complexity.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/md.c