md: separate request handling
authorShaohua Li <shli@fb.com>
Thu, 21 Sep 2017 17:23:35 +0000 (10:23 -0700)
committerShaohua Li <shli@fb.com>
Thu, 28 Sep 2017 03:07:40 +0000 (20:07 -0700)
commit393debc23c7820211d1c8253dd6a8408a7628fe7
treef7306f2a4c7e664e27758edfafb23616ca0c90f2
parent4a704d6db0ee4a349d5d523813a718e429b4914d
md: separate request handling

With commit cc27b0c78c79, pers->make_request could bail out without handling
the bio. If that happens, we should retry.  The commit fixes md_make_request
but not other call sites. Separate the request handling part, so other call
sites can use it.

Reported-by: Nate Dailey <nate.dailey@stratus.com>
Fix: cc27b0c78c79(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
drivers/md/md.h