diff options
author | Brian Foster <[email protected]> | 2018-07-24 13:43:08 -0700 |
---|---|---|
committer | Darrick J. Wong <[email protected]> | 2018-07-26 10:15:12 -0700 |
commit | dcbd44f79986e55691600b969c14db004d741883 (patch) | |
tree | 32b8b60d85893bf71e87ea52bfcd10b559aa1bcb /tools/perf/scripts/python/flamegraph.py | |
parent | a61acc3c78df14bb9b7bfefb2cc771fcda15b8fe (diff) |
xfs: fix transaction leak on remote attr set/remove failure
The xattr remote value set/remove handlers both clear args.trans in
the error path without having cancelled the transaction. This leaks
the transaction, causes warnings around returning to userspace with
locks held and leads to system lockups or other general problems.
The higher level xfs_attr_[set|remove]() functions already detect
and cancel args.trans when set in the error path. Drop the NULL
assignments from the rmtval handlers and allow the callers to clean
up the transaction correctly.
Signed-off-by: Brian Foster <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Bill O'Donnell <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions