]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
xfs: defer should abort intent items if the trans roll fails
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 24 Oct 2016 03:21:18 +0000 (14:21 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 24 Oct 2016 03:21:18 +0000 (14:21 +1100)
commitb77428b12b55437b28deae738d9ce8b2e0663b55
tree50229749ffb142f19823c848ba2598dcf036d362
parentc17a8ef43d6b80ed3519b828c37d18645445949f
xfs: defer should abort intent items if the trans roll fails

If the deferred ops transaction roll fails, we need to abort the intent
items if we haven't already logged a done item for it, regardless of
whether or not the deferred ops has had a transaction committed.  Dave
found this while running generic/388.

Move the tracepoint to make it easier to track object lifetimes.

Reported-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_defer.c