]> www.infradead.org Git - users/dwmw2/linux.git/commit
md: Don't flush sync_work in md_write_start()
authorYu Kuai <yukuai3@huawei.com>
Thu, 1 Aug 2024 12:47:46 +0000 (20:47 +0800)
committerSong Liu <song@kernel.org>
Tue, 27 Aug 2024 16:55:16 +0000 (09:55 -0700)
commit86ad4cda79e0dade87d4bb0d32e1fe541d4a63e8
treeef200f496f7dbfbba02218eab9c1718a6bf4a1f3
parentca958879ade564daa0e0fa82aeeccf3bc7f73edd
md: Don't flush sync_work in md_write_start()

Because flush sync_work may trigger mddev_suspend() if there are spares,
and this should never be done in IO path because mddev_suspend() is used
to wait for IO.

This problem is found by code review.

Fixes: bc08041b32ab ("md: suspend array in md_start_sync() if array need reconfiguration")
Cc: stable@vger.kernel.org
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20240801124746.242558-1-yukuai1@huaweicloud.com
Signed-off-by: Song Liu <song@kernel.org>
drivers/md/md.c