]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: XLOG_STATE_IOERROR must die
authorDave Chinner <dchinner@redhat.com>
Wed, 11 Aug 2021 00:59:01 +0000 (17:59 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 16 Aug 2021 19:09:27 +0000 (12:09 -0700)
commit47737afc519581c0e9b9be448067dc199d18f2ba
tree1f1aad65b7f7f1bbca45996b70ee0af910b44a9d
parent3502ee761970cdf76185f46ea36ee2a080fef6db
xfs: XLOG_STATE_IOERROR must die

We don't need an iclog state field to tell us the log has been shut
down. We can just check the xlog_is_shutdown() instead. The avoids
the need to have shutdown overwrite the current iclog state while
being active used by the log code and so having to ensure that every
iclog state check handles XLOG_STATE_IOERROR appropriately.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_log.c
fs/xfs/xfs_log_cil.c
fs/xfs/xfs_log_priv.h
fs/xfs/xfs_trace.h