]> git.baikalelectronics.ru Git - 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)
commit11544cad32723a3041490fde90aa9aa400129444
treea89ef0e3fbd3de6ff0bfe6bf3496f281853ab08c
parent5b6b44a8d10136aea4716fe98f747e7f1de00e71
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