]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
gfs2: Don't get stuck with I/O plugged in gfs2_ail1_flush
authorBob Peterson <rpeterso@redhat.com>
Thu, 18 Feb 2021 14:07:21 +0000 (09:07 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 23 Feb 2021 18:01:42 +0000 (19:01 +0100)
commit17d77684088510df84ff8285982d0eed52cd5890
tree5107251c1bd18a06be6bd3675de7c627ff0ab5fb
parent803074ad77b91e270c1ce90793a924cdb4547162
gfs2: Don't get stuck with I/O plugged in gfs2_ail1_flush

In gfs2_ail1_flush, we're using I/O plugging to give the block layer a
better chance of merging I/O requests.  If we're too aggressive here, we
can end up waiting on I/O to complete while still plugged.  Fix that in
a way similar to writeback_sb_inodes, except that we can't use
blk_flush_plug because blk_flush_plug_list is not exported.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/log.c