Commit c4d6a1b8 authored by Shaohua Li's avatar Shaohua Li

dm-raid: fix a race condition in request handling

raid_map calls pers->make_request, which missed the suspend check. Fix it with
the new md_handle_request API.

Fix: cc27b0c7(md: fix deadlock between mddev_suspend() and md_write_start())
Cc: Heinz Mauelshagen <>
Cc: Mike Snitzer <>
Reviewed-by: default avatarNeilBrown <>
Signed-off-by: default avatarShaohua Li <>
parent 79bf31a3
......@@ -3238,7 +3238,7 @@ static int raid_map(struct dm_target *ti, struct bio *bio)
if (unlikely(bio_end_sector(bio) > mddev->array_sectors))
mddev->pers->make_request(mddev, bio);
md_handle_request(mddev, bio);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment