Commit 99b902a
md: sync blockdev before stopping raid or setting readonly
Commit a05b7ea ("md: avoid crash when stopping md array races
with closing other open fds.") added sync_block before stopping raid and
setting readonly. Later in commit 260fa03 ("md: avoid deadlock when
dirty buffers during md_stop.") it is moved to ioctl. array_state_store()
was ignored. Add sync blockdev to array_state_store() now.
Signed-off-by: Li Nan <linan122@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20240226031444.3606764-8-linan666@huaweicloud.com1 parent f74aaf6 commit 99b902a
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4500 | 4500 | | |
4501 | 4501 | | |
4502 | 4502 | | |
| 4503 | + | |
| 4504 | + | |
| 4505 | + | |
| 4506 | + | |
| 4507 | + | |
| 4508 | + | |
| 4509 | + | |
| 4510 | + | |
| 4511 | + | |
| 4512 | + | |
| 4513 | + | |
4503 | 4514 | | |
4504 | 4515 | | |
4505 | 4516 | | |
| |||
4599 | 4610 | | |
4600 | 4611 | | |
4601 | 4612 | | |
| 4613 | + | |
| 4614 | + | |
| 4615 | + | |
| 4616 | + | |
| 4617 | + | |
4602 | 4618 | | |
4603 | 4619 | | |
4604 | 4620 | | |
| |||
0 commit comments