aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers/task.c
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2024-10-31 11:31:11 +0800
committerSong Liu <song@kernel.org>2024-11-05 16:08:39 -0800
commit88ed59c4cc6c2dbdf03345bce54e0d7a272937bc (patch)
tree9fc9476ee8d2b321d926ae621d7b138849eca319 /rust/helpers/task.c
parent29967332ced51a15a22f11381eeebbc500ba1858 (diff)
downloadlinux-88ed59c4cc6c2dbdf03345bce54e0d7a272937bc.tar.gz
linux-88ed59c4cc6c2dbdf03345bce54e0d7a272937bc.tar.bz2
linux-88ed59c4cc6c2dbdf03345bce54e0d7a272937bc.zip
md/raid1: factor out helper to handle blocked rdev from raid1_write_request()
Currently raid1 is preparing IO for underlying disks while checking if any disk is blocked, if so allocated resources must be released, then waiting for rdev to be unblocked and try to prepare IO again. Make code cleaner by checking blocked rdev first, it doesn't matter if rdev is blocked while issuing IO, the IO will wait for rdev to be unblocked or not. Signed-off-by: Yu Kuai <yukuai3@huawei.com> Tested-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> Link: https://lore.kernel.org/r/20241031033114.3845582-5-yukuai1@huaweicloud.com Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions