]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: Add infrastructure needed for error propagation during buffer IO failure
authorCarlos Maiolino <cmaiolino@redhat.com>
Wed, 9 Aug 2017 01:21:50 +0000 (18:21 -0700)
committerJack Vogel <jack.vogel@oracle.com>
Mon, 9 Apr 2018 23:02:53 +0000 (16:02 -0700)
commit3b06cf9a570d352a9091511798a70bf1aa4f3394
tree1d19647972a96e09ac13101801cf5a067f5fbff2
parent3ac3dc91f6fc12437201c0c02a1d0bbf3d3af12d
xfs: Add infrastructure needed for error propagation during buffer IO  failure

[ Upstream commit 0b80ae6ed13169bd3a244e71169f2cc020b0c57a ]

With the current code, XFS never re-submit a failed buffer for IO,
because the failed item in the buffer is kept in the flush locked state
forever.

To be able to resubmit an log item for IO, we need a way to mark an item
as failed, if, for any reason the buffer which the item belonged to
failed during writeback.

Add a new log item callback to be used after an IO completion failure
and make the needed clean ups.

Orabug: 27609404
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: wen.gang.wang@oracle.com
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
fs/xfs/xfs_buf_item.c
fs/xfs/xfs_trans.h