linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -v2 0/3] jbd2 scalability patches
@ 2010-08-04 16:39 Theodore Ts'o
  2010-08-04 16:39 ` [PATCH -v2 1/3] jbd2: Use atomic variables to avoid taking t_handle_lock in jbd2_journal_stop Theodore Ts'o
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Theodore Ts'o @ 2010-08-04 16:39 UTC (permalink / raw)
  To: Ext4 Developers List, ocfs2-devel
  Cc: John Stultz, Keith Maanthey, Eric Whitney, Theodore Ts'o

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(-)


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-08-11 22:18 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-04 16:39 [PATCH -v2 0/3] jbd2 scalability patches Theodore Ts'o
2010-08-04 16:39 ` [PATCH -v2 1/3] jbd2: Use atomic variables to avoid taking t_handle_lock in jbd2_journal_stop Theodore Ts'o
2010-08-09 17:02   ` Jan Kara
2010-08-09 19:05     ` Ted Ts'o
2010-08-09 19:45       ` Jan Kara
2010-08-10 16:30         ` Ted Ts'o
2010-08-11 22:16           ` Jan Kara
2010-08-04 16:39 ` [PATCH -v2 2/3] jbd2: Change j_state_lock to be a rwlock_t Theodore Ts'o
2010-08-04 16:39 ` [PATCH -v2 3/3] jbd2: Remove t_handle_lock from start_this_handle() Theodore Ts'o
2010-08-05  1:58 ` [PATCH -v2 0/3] jbd2 scalability patches john stultz
2010-08-05  5:42   ` Ted Ts'o
2010-08-05 17:42     ` john stultz
2010-08-09 16:06 ` [Ocfs2-devel] " Joel Becker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).