Skip to content

ext4: Improve FC trace events

Ritesh Harjani linux-ext4 linux-fsdevel lkml 3 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 16 repliesApplied
  2. v210 patches 11 repliesSuperseded
  3. v1 RFC9 patches 25 repliesSuperseded

Changes in v3 from the cover letter

================

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/10ext4: Remove unused enum EXT4_FC_COMMIT_FAILEDfs/ext4/fast_commit.h+0 -10 replies
2/10ext4: Fix ext4_fc_stats trace pointinclude/trace/events/ext4.h+49 -2913 replies
3/10ext4: Convert ext4_fc_track_dentry type events to use event classinclude/trace/events/ext4.h+31 -250 replies
4/10ext4: Do not call FC trace event in ext4_fc_commit() if FS does not support FCfs/ext4/fast_commit.c+3 -30 replies
5/10ext4: Return early for non-eligible fast_commit track eventsfs/ext4/fast_commit.c+49 -102 replies
6/10ext4: Add new trace event in ext4_fc_cleanupfs/ext4/fast_commit.c include/trace/events/ext4.h+27 -00 replies
7/10ext4: Add transaction tid info in fc_track eventsfs/ext4/fast_commit.c include/trace/events/ext4.h+73 -500 replies
8/10ext4: Add commit_tid info in jbd debug logfs/ext4/fast_commit.c+9 -60 replies
9/10ext4: Add commit tid info in ext4_fc_commit_start/stop trace eventsfs/ext4/fast_commit.c include/trace/events/ext4.h+15 -100 replies
10/10ext4: Fix remaining two trace events to use same printk conventioninclude/trace/events/ext4.h+2 -20 replies

Reviews trailers per patch

7 of 10 patches have a Reviewed-by or Acked-by.

PatchJan KaraHarshad ShirwadkarSteven Rostedt (Google)
1/10R-b R-b
2/10R-b R-b R-b
3/10R-b R-b
4/10R-b R-b
5/10
6/10
7/10
8/10R-b R-b
9/10R-b R-b
10/10R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCHv3 00/10] ext4: Improve FC trace events

Hello,

Please find the v3 of this patch series. I have included Reviewed-by tag on all patches, except in [5-7] which were later added to address review comments from Jan [1].

Changes since v2
================
v2 -> v3
1. Defined TRACE_DEFINE_ENUM(EXT4_FC_REASON_MAX) in [Patch 02/10]

Changes since RFC
================
RFC -> v2
1. Added new patch-5 ("ext4: Return early for non-eligible fast_commit track events")
2. Removed a trace event in ext4_fc_track_template() (which was added in RFC) from patch-6 and added patch-7 to add the tid info in callers of ext4_fc_track_template(). (As per review comments from Jan)

Testing
=========
Tested this with xfstests -g "quick"

Thanks again to Jan, Harshad for helping with reviews and Steve for helping with TRACE_DEFINE_ENUM part in kernel trace events.

[RFC]: https://lore.kernel.org/linux-ext4/[email protected]/
[v2]: https://lore.kernel.org/linux-ext4/[email protected]/
[1]: https://lore.kernel.org/linux-ext4/[email protected]/

Ritesh Harjani (10):
ext4: Remove unused enum EXT4_FC_COMMIT_FAILED
ext4: Fix ext4_fc_stats trace point
ext4: Convert ext4_fc_track_dentry type events to use event class
ext4: Do not call FC trace event in ext4_fc_commit() if FS does not support FC
ext4: Return early for non-eligible fast_commit track events
ext4: Add new trace event in ext4_fc_cleanup
ext4: Add transaction tid info in fc_track events
ext4: Add commit_tid info in jbd debug log
ext4: Add commit tid info in ext4_fc_commit_start/stop trace events
ext4: Fix remaining two trace events to use same printk convention

 fs/ext4/fast_commit.c       |  95 ++++++++----
 fs/ext4/fast_commit.h       |   1 -
 include/trace/events/ext4.h | 298 +++++++++++++++++++++++-------------
 3 files changed, 258 insertions(+), 136 deletions(-)

--
2.31.1