Skip to content

jbd2 scalability patches

Theodore Ts'o linux-ext4 ocfs2-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3jbd2: Use atomic variables to avoid taking t_handle_lock in jbd2_journal_stopfs/jbd2/checkpoint.c fs/jbd2/commit.c fs/jbd2/transaction.c +1 more+51 -415 replies
2/3jbd2: Change j_state_lock to be a rwlock_tfs/ext4/inode.c fs/ext4/super.c fs/jbd2/checkpoint.c +5 more+114 -1100 replies
3/3jbd2: Remove t_handle_lock from start_this_handle()fs/jbd2/commit.c fs/jbd2/transaction.c include/linux/jbd2.h+25 -130 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH -v2 0/3] jbd2 scalability patches

This version fixes three bugs in the 2nd patch of this series that caused kernel BUG when the system was under race. We weren't accounting with t_oustanding_credits correctly, and there were race conditions caused by the fact the I had overlooked the fact that __jbd2_log_wait_for_space() and jbd2_get_transaction() requires j_state_lock to be write locked.

Theodore Ts'o (3):
jbd2: Use atomic variables to avoid taking t_handle_lock in
jbd2_journal_stop
jbd2: Change j_state_lock to be a rwlock_t
jbd2: Remove t_handle_lock from start_this_handle()

 fs/ext4/inode.c       |    4 +-
 fs/ext4/super.c       |    4 +-
 fs/jbd2/checkpoint.c  |   18 +++---
 fs/jbd2/commit.c      |   42 ++++++------
 fs/jbd2/journal.c     |   94 +++++++++++++--------------
 fs/jbd2/transaction.c |  172 ++++++++++++++++++++++++++++---------------------
 fs/ocfs2/journal.c    |    4 +-
 include/linux/jbd2.h  |   12 ++--
 8 files changed, 188 insertions(+), 162 deletions(-)