]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
md: make reconfig_mutex optional for writes to md sysfs files.
authorNeilBrown <neilb@suse.de>
Mon, 15 Dec 2014 01:57:01 +0000 (12:57 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 5 Feb 2015 22:32:56 +0000 (09:32 +1100)
commit6791875e2e5393845b9c781d2998481089735134
treea89ef0e3fbd3de6ff0bfe6bf3496f281853ab08c
parent5c47daf6e76f657d961a96d89f6419fde8eda557
md: make reconfig_mutex optional for writes to md sysfs files.

Rather than using mddev_lock() to take the reconfig_mutex
when writing to any md sysfs file, we only take mddev_lock()
in the particular _store() functions that require it.
Admittedly this is most, but it isn't all.

This also allows us to remove special-case handling for new_dev_store
(in md_attr_store).

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c
drivers/md/raid5.c