Skip to content

Better transaction abort reports

David Sterba linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs: report exact callsite where transaction abort occursfs/btrfs/ctree.h fs/btrfs/super.c+9 -110 replies
2/3btrfs: add 'cold' compiler annotations to all error handling functionsfs/btrfs/ctree.h fs/btrfs/super.c+7 -00 replies
3/3btrfs: fix warnings after changes in btrfs_abort_transactionfs/btrfs/ioctl.c fs/btrfs/volumes.c+4 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Better transaction abort reports

Hi,

patch #1 moves the WARN at transaction abort time to the callsite (via macro). That way we get the exact location of the error and not the common location. This is supposed to help debugging and screening report, but the change comes at some cost and increases the resulting asm code.

I vote for better error reports, the .text grows all the time anyway. Patch #2 adds some compiler hints so the error blocks are likely to be put out of the hot paths.

Available in

git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git dev/abort-onsite

David Sterba (3):
btrfs: report exact callsite where transaction abort occurs
btrfs: add 'cold' compiler annotations to all error handling functions
btrfs: fix warnings after changes in btrfs_abort_transaction

 fs/btrfs/ctree.h   | 16 +++++++++++++---
 fs/btrfs/ioctl.c   |  2 +-
 fs/btrfs/super.c   | 11 +++--------
 fs/btrfs/volumes.c |  6 +++---
 4 files changed, 20 insertions(+), 15 deletions(-)
Signature · 1 line
2.1.3