md: do not require mddev_lock() for all options in array_state_store()
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Thu, 28 Sep 2023 12:55:17 +0000 (14:55 +0200)
committerSong Liu <song@kernel.org>
Thu, 28 Sep 2023 20:34:57 +0000 (13:34 -0700)
commit09f894affcf2daac5aa841ffff43d1242215fd80
tree8ab5528b8db5f11eac82902ec879e8ee88ae1984
parentcf1b6d4441fffd0ba8ae4ced6a12f578c95ca049
md: do not require mddev_lock() for all options in array_state_store()

We don't need to lock device to reject not supported request
in array_state_store(). No functional changes intended.

There are differences between ioctl and sysfs handling during stopping.
With this change, it will be easier to add additional steps which needs
to be completed before mddev_lock() is taken.

Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230928125517.12356-1-mariusz.tkaczyk@linux.intel.com
drivers/md/md.c