mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-26 18:16:26 +00:00
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>
This commit is contained in:
parent
5c47daf6e7
commit
6791875e2e
2 changed files with 316 additions and 164 deletions
348
drivers/md/md.c
348
drivers/md/md.c
Loading…
Add table
Add a link
Reference in a new issue