[PATCH 4.4 06/91] md/raid5: add thread_group worker async_tx_issue_pending_all
From: Greg Kroah-Hartman
Date: Fri Aug 04 2017 - 19:54:10 EST
4.4-stable review patch. If anyone has any objections, please let me know.
From: Ofer Heifetz <oferh@xxxxxxxxxxx>
commit 7e96d559634b73a8158ee99a7abece2eacec2668 upstream.
Since thread_group worker and raid5d kthread are not in sync, if
worker writes stripe before raid5d then requests will be waiting
Issue observed when building raid5 with ext4, in some build runs
jbd2 would get hung and requests were waiting in the HW engine
waiting to be issued.
Fix this by adding a call to async_tx_issue_pending_all in the
Signed-off-by: Ofer Heifetz <oferh@xxxxxxxxxxx>
Signed-off-by: Shaohua Li <shli@xxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
drivers/md/raid5.c | 2 ++
1 file changed, 2 insertions(+)
@@ -5821,6 +5821,8 @@ static void raid5_do_work(struct work_st
pr_debug("%d stripes handled\n", handled);
pr_debug("--- raid5worker inactive\n");