diff options
author | Ofer Heifetz <oferh@marvell.com> | 2017-07-24 09:17:40 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-11 09:30:08 -0700 |
commit | c81489cce937796ba94f6f93bde0577e6e642b39 (patch) | |
tree | 22cde74b67e5de34b01993dd0cb0fd4f90f5d45b /drivers | |
parent | 716c82acbf2eac596dff6362476b20a2fa55bbb5 (diff) | |
download | linux-stable-c81489cce937796ba94f6f93bde0577e6e642b39.tar.gz linux-stable-c81489cce937796ba94f6f93bde0577e6e642b39.tar.bz2 linux-stable-c81489cce937796ba94f6f93bde0577e6e642b39.zip |
md/raid5: add thread_group worker async_tx_issue_pending_all
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
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>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/raid5.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 604c5dc95ffc..094f36064ff0 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -5224,6 +5224,8 @@ static void raid5_do_work(struct work_struct *work) pr_debug("%d stripes handled\n", handled); spin_unlock_irq(&conf->device_lock); + + async_tx_issue_pending_all(); blk_finish_plug(&plug); pr_debug("--- raid5worker inactive\n"); |