summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorSong Liu <songliubraving@fb.com>2017-08-24 18:53:59 +0200
committerShaohua Li <shli@fb.com>2017-08-24 19:06:19 +0200
commit9c72a18e46ebe0f09484cce8ebf847abdab58498 (patch)
tree4149fa1b31259df71f3f259aa9dc1520a21c4dcc /block
parentmd/bitmap: copy correct data for bitmap super (diff)
downloadlinux-9c72a18e46ebe0f09484cce8ebf847abdab58498.tar.xz
linux-9c72a18e46ebe0f09484cce8ebf847abdab58498.zip
md/raid5: release/flush io in raid5_do_work()
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+ Cc: stable@vger.kernel.org (4.4+) Signed-off-by: Song Liu <songliubraving@fb.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions