]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
md: separate request handling
authorShaohua Li <shli@fb.com>
Thu, 21 Sep 2017 17:23:35 +0000 (10:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Oct 2017 07:47:34 +0000 (09:47 +0200)
commit8d73e57d868eb8f4ce1f8ed1addd57fe8d0c080f
tree73c8c0d5bf03aa1081a9747bae41c77f5d8124f1
parent93f1f1b25b32e591c9c3b03e3e338d494cf21068
md: separate request handling

commit 393debc23c7820211d1c8253dd6a8408a7628fe7 upstream.

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())
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/md.c
drivers/md/md.h