]> git.baikalelectronics.ru Git - kernel.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)
commit7ac2b935cdec8f72b4463e2b12d6f2ef0dd6970a
tree5107251c1bd18a06be6bd3675de7c627ff0ab5fb
parentec3d766ffc30655ca6d349d08e13df56cab40372
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