Files
linux/drivers
Song Liu d5c59ee848 md/raid5: release/flush io in raid5_do_work()
commit 9c72a18e46 upstream.

In raid5, there are scenarios where some ios are deferred to a later
time, and some IO need a flush to complete. To make sure we make
progress with these IOs, we need to call the following functions:

    flush_deferred_bios(conf);
    r5l_flush_stripe_to_raid(conf->log);

Both of these functions are called in raid5d(), but missing in
raid5_do_work(). As a result, these functions are not called
when multi-threading (group_thread_cnt > 0) is enabled. This patch
adds calls to these function to raid5_do_work().

Note for stable branches:

  r5l_flush_stripe_to_raid(conf->log) is need for 4.4+
  flush_deferred_bios(conf) is only needed for 4.11+

Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-09-27 11:00:12 +02:00
..
2015-10-12 19:56:27 -07:00
2017-08-06 19:19:47 -07:00
2017-08-06 19:19:41 -07:00
2016-09-24 10:07:35 +02:00
2017-08-30 10:19:22 +02:00
2017-04-21 09:30:07 +02:00
2017-08-24 17:02:36 -07:00