]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5800359c26fcfd7a025fddaecd3a2834ddec038c
treef7306f2a4c7e664e27758edfafb23616ca0c90f2
parent77f28d332d2367eee912546f8cb1a60c5d696b78
md: separate request handling

With commit 5852de62e36a, 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: 5852de62e36a(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