]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: slow the deluge of io error messages
authorBob Peterson <rpeterso@redhat.com>
Thu, 4 Oct 2018 15:21:07 +0000 (10:21 -0500)
committerBob Peterson <rpeterso@redhat.com>
Fri, 5 Oct 2018 15:51:11 +0000 (10:51 -0500)
commitf042d10f48a4e8c6c33c36f273f2596c12e38df3
tree125fe18370d8aa5a59df22e167ed5b8efe1cf1f0
parentd6ccdb6260c6ac93963182f02abbda489f53936e
gfs2: slow the deluge of io error messages

When an io error is hit, it calls gfs2_io_error_bh_i for every
journal buffer it can't write. Since we changed gfs2_io_error_bh_i
recently to withdraw later in the cycle, it sends a flood of
errors to the console. This patch checks for the file system already
being withdrawn, and if so, doesn't send more messages. It doesn't
stop the flood of messages, but it slows it down and keeps it more
reasonable.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/incore.h
fs/gfs2/log.c
fs/gfs2/util.c