]> 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)
commitcfa84f2146c9e448379bc95283dde81250d567f5
tree5107251c1bd18a06be6bd3675de7c627ff0ab5fb
parent0a5ec67c8619a807ef271ee5a15a9aefdbd7d46b
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