]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fix and streamline error handling in xfs_end_io
authorChristoph Hellwig <hch@lst.de>
Thu, 2 Mar 2017 23:02:51 +0000 (15:02 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 8 Mar 2017 04:10:50 +0000 (20:10 -0800)
commit4fddf0ef02423c3cb07a446a8f5398deb5ce2995
treee046efdfd0c5db5c22dfa022224d60df41c14689
parent83059a233a185b8de83ccea682edb8624574a1b6
xfs: fix and streamline error handling in xfs_end_io

There are two different cases of buffered I/O errors:

 - first we can have an already shutdown fs.  In that case we should skip
   any on-disk operations and just clean up the appen transaction if
   present and destroy the ioend
 - a real I/O error.  In that case we should cleanup any lingering COW
   blocks.  This gets skipped in the current code and is fixed by this
   patch.

Signed-off-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>
fs/xfs/xfs_aops.c