[prev in list] [next in list] [prev in thread] [next in thread]
List: git-commits-head
Subject: dm-raid: fix a race condition in request handling
From: "Linux Kernel Mailing List" <linux-kernel () vger ! kernel ! org>
Date: 2017-09-29 20:02:03
Message-ID: 20170929200203.798F521B60 () pdx-korg-gitolite-1 ! ci ! codeaurora ! org
[Download RAW message or body]
Web: https://git.kernel.org/torvalds/c/c4d6a1b8e8ea79c439a4871cba540443c9eb13b9
Commit: c4d6a1b8e8ea79c439a4871cba540443c9eb13b9
Parent: 79bf31a3b2a7ca467cfec8ff97d359a77065d01f
Refname: refs/heads/master
Author: Shaohua Li <shli@fb.com>
AuthorDate: Thu Sep 21 10:29:22 2017 -0700
Committer: Shaohua Li <shli@fb.com>
CommitDate: Wed Sep 27 20:08:29 2017 -0700
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: cc27b0c78c79(md: fix deadlock between mddev_suspend() and md_write_start())
Cc: Heinz Mauelshagen <heinzm@redhat.com>
Cc: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
---
drivers/md/dm-raid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c
index 5bfe285ea9d1..1ac58c5651b7 100644
--- a/drivers/md/dm-raid.c
+++ b/drivers/md/dm-raid.c
@@ -3238,7 +3238,7 @@ static int raid_map(struct dm_target *ti, struct bio *bio)
if (unlikely(bio_end_sector(bio) > mddev->array_sectors))
return DM_MAPIO_REQUEUE;
- mddev->pers->make_request(mddev, bio);
+ md_handle_request(mddev, bio);
return DM_MAPIO_SUBMITTED;
}
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic