Commit 09f894a
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.com1 parent cf1b6d4 commit 09f894a
1 file changed
Lines changed: 20 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4415 | 4415 | | |
4416 | 4416 | | |
4417 | 4417 | | |
| 4418 | + | |
| 4419 | + | |
| 4420 | + | |
| 4421 | + | |
| 4422 | + | |
| 4423 | + | |
| 4424 | + | |
| 4425 | + | |
| 4426 | + | |
| 4427 | + | |
| 4428 | + | |
| 4429 | + | |
4418 | 4430 | | |
4419 | 4431 | | |
4420 | 4432 | | |
| |||
4439 | 4451 | | |
4440 | 4452 | | |
4441 | 4453 | | |
4442 | | - | |
4443 | | - | |
4444 | | - | |
4445 | | - | |
4446 | | - | |
4447 | | - | |
4448 | | - | |
4449 | | - | |
| 4454 | + | |
| 4455 | + | |
4450 | 4456 | | |
4451 | | - | |
| 4457 | + | |
4452 | 4458 | | |
4453 | 4459 | | |
4454 | | - | |
4455 | | - | |
4456 | 4460 | | |
4457 | | - | |
4458 | | - | |
| 4461 | + | |
| 4462 | + | |
| 4463 | + | |
4459 | 4464 | | |
4460 | 4465 | | |
4461 | 4466 | | |
| |||
4506 | 4511 | | |
4507 | 4512 | | |
4508 | 4513 | | |
4509 | | - | |
4510 | | - | |
4511 | | - | |
4512 | | - | |
| 4514 | + | |
| 4515 | + | |
4513 | 4516 | | |
4514 | 4517 | | |
4515 | 4518 | | |
| |||
0 commit comments