]> 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)
commit529129d51451efaf796722503a2ae52c3a9388e3
treef99f2d4f7b1475f420bf5652c87e06179c47ccdd
parent70b82b0af3c1df1aa52719a4276e8a0e3ce4bbf9
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