]> www.infradead.org Git - users/hch/block.git/commit
md: remove parameter check_seq for stop_sync_thread()
authorYu Kuai <yukuai3@huawei.com>
Tue, 11 Jun 2024 13:22:45 +0000 (21:22 +0800)
committerSong Liu <song@kernel.org>
Wed, 12 Jun 2024 16:27:50 +0000 (16:27 +0000)
commitdf79234bdc3f441bec99dfc8199b6f2c673203ed
treeb872d79565bc1982cabc19e09f53541da32a6469
parentc8ecfe680c371db2a6d125de5d6bc2398950e9cf
md: remove parameter check_seq for stop_sync_thread()

Caller will always set MD_RECOVERY_FROZEN if check_seq is true, and
always clear MD_RECOVERY_FROZEN if check_seq is false, hence replace
the parameter with test_bit() to make code cleaner.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20240611132251.1967786-7-yukuai1@huaweicloud.com
drivers/md/md.c