]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: handle CIl transaction commit failures correctly
authorDave Chinner <dchinner@redhat.com>
Thu, 27 Jan 2011 02:23:28 +0000 (13:23 +1100)
committerAlex Elder <aelder@sgi.com>
Fri, 28 Jan 2011 15:05:36 +0000 (09:05 -0600)
commit54b709d09edf320a219044e08580cdae1e95b7ae
tree109e8d588a9a04ef52b97e751450fe0fffa88a23
parent66881ac694f4effe4007800c73cd5eb9d344fcfd
xfs: handle CIl transaction commit failures correctly

Failure to commit a transaction into the CIL is not handled
correctly. This currently can only happen when racing with a
shutdown and requires an explicit shutdown check, so it rare and can
be avoided. Remove the shutdown check and make the CIL commit a void
function to indicate it will always succeed, thereby removing the
incorrectly handled failure case.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_log.h
fs/xfs/xfs_log_cil.c
fs/xfs/xfs_trans.c