]> git.baikalelectronics.ru Git - kernel.git/commit
dm-raid: fix a race condition in request handling
authorShaohua Li <shli@fb.com>
Thu, 21 Sep 2017 17:29:22 +0000 (10:29 -0700)
committerShaohua Li <shli@fb.com>
Thu, 28 Sep 2017 03:08:29 +0000 (20:08 -0700)
commitafc9cbcbdc8caef1b4be808f4eef8ff5c852d4a9
tree782289f1af0633af764aa1cb8a775efedb2d8934
parent40c30f6d4aeea62891953ef5f5a7d5131398dfc6
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: ba0a7f189f5e(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