]> git.baikalelectronics.ru Git - kernel.git/commit
md: fix a race condition for flush request handling
authorShaohua Li <shli@fb.com>
Thu, 21 Sep 2017 16:55:28 +0000 (09:55 -0700)
committerShaohua Li <shli@fb.com>
Thu, 28 Sep 2017 03:08:18 +0000 (20:08 -0700)
commit40c30f6d4aeea62891953ef5f5a7d5131398dfc6
tree22d15c13f9a67ccd17b21c3077160b89a66c9c62
parent3b83bfda003d1887538d3ffa6941e6e49656558d
md: fix a race condition for flush request handling

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

Reported-by: Nate Dailey <nate.dailey@stratus.com>
Tested-by: Nate Dailey <nate.dailey@stratus.com>
Fix: ba0a7f189f5e(md: fix deadlock between mddev_suspend() and md_write_start())
Cc: stable@vger.kernel.org
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c