]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: add thread_group worker async_tx_issue_pending_all
authorOfer Heifetz <oferh@marvell.com>
Mon, 24 Jul 2017 06:17:40 +0000 (09:17 +0300)
committerShaohua Li <shli@fb.com>
Mon, 24 Jul 2017 14:49:15 +0000 (07:49 -0700)
commit7e96d559634b73a8158ee99a7abece2eacec2668
treef99f2d4f7b1475f420bf5652c87e06179c47ccdd
parent6308d8e3d42bea15461c696df1ad74c2944b5c23
md/raid5: add thread_group worker async_tx_issue_pending_all

Since thread_group worker and raid5d kthread are not in sync, if
worker writes stripe before raid5d then requests will be waiting
for issue_pendig.

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
raid5_do_work.

Signed-off-by: Ofer Heifetz <oferh@marvell.com>
Cc: stable@vger.kernel.org
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5.c