Re: [patch] Real-Time Preemption, -RT-2.6.11-rc3-V0.7.38-01

Andrew Morton
2005-03-15T19:17:50Z

Steven Rostedt <rostedt@goodmis.org> wrote:
>
> The problem here is that it's not ext3 bh's only. They're still the normal
> buffer head. The problem arrises because the ext3 "journal head" is
> allocated within these bit spin locks.

Yes, the locks do want to live inside the buffer_head.

Stephen has pointed out that we might want to remove
jbd_lock_bh_journal_head() altogether some time, just use
jbd_lock_bh_state() for that.

In 2.4 these locks are global (or per-superblock). Making them a global
spinlock would be acceptable for 2-ways and probably larger.