diff options
author | Dave Chinner <david@fromorbit.com> | 2020-05-20 23:17:10 +0300 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-05-27 18:49:25 +0300 |
commit | dc3ffbb14060c943469d5e12900db3a60bc3fa64 (patch) | |
tree | a95dab3aef578fa63c08979574ded618849c2593 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | ef8385128d4b31a382d496b1c433697993bd0bfb (diff) | |
download | linux-dc3ffbb14060c943469d5e12900db3a60bc3fa64.tar.xz |
xfs: gut error handling in xfs_trans_unreserve_and_mod_sb()
xfs: gut error handling in xfs_trans_unreserve_and_mod_sb()
From: Dave Chinner <dchinner@redhat.com>
The error handling in xfs_trans_unreserve_and_mod_sb() is largely
incorrect - rolling back the changes in the transaction if only one
counter underruns makes all the other counters incorrect. We still
allow the change to proceed and committing the transaction, except
now we have multiple incorrect counters instead of a single
underflow.
Further, we don't actually report the error to the caller, so this
is completely silent except on debug kernels that will assert on
failure before we even get to the rollback code. Hence this error
handling is broken, untested, and largely unnecessary complexity.
Just remove it.
Signed-off-by: Dave Chinner <dchinner@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>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions