[Ocfs2-devel] [PATCH -v2 1/3] jbd2: Use atomic variables to avoid taking t_handle_lock in jbd2_journal_stop
Ted Ts'o
tytso at mit.edu
Tue Aug 10 09:30:46 PDT 2010
On Mon, Aug 09, 2010 at 09:45:55PM +0200, Jan Kara wrote:
> Ah, OK. You're right. I just thought we eventually want to remove the
> lock but you're right that currently the code is fine. Sorry for the noise.
I would love to get rid of the j_state_lock, but looking through the
code, I couldn't figure out how to do this safely. Hence my
conversion of the j_state_lock to a rwlock_t, with the downside of
this causing more cache line bounces. If someone can suggest a way to
drop needing a global spinlock (whether it is an exclusive or rwlock)
in start_this_handle(), I'd love to hear them.
- Ted
More information about the Ocfs2-devel
mailing list