]> 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)
commit3b83bfda003d1887538d3ffa6941e6e49656558d
treef7306f2a4c7e664e27758edfafb23616ca0c90f2
parente2cfa650297d5c23d47a9b839a2cd14932d61ec6
md: separate request handling

With commit ba0a7f189f5e, 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: 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
drivers/md/md.h