]> 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)
commite1b883faf4b81e94a8ac324fd61b91f00846b2a7
treef99f2d4f7b1475f420bf5652c87e06179c47ccdd
parente178dc488278e6826f4a5184913e87d7820e2f78
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