[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1211361600.6463.65.camel@lappy.programming.kicks-ass.net>
Date: Wed, 21 May 2008 11:20:00 +0200
From: Peter Zijlstra <a.p.zijlstra@...llo.nl>
To: Joel Becker <Joel.Becker@...cle.com>
Cc: Arjan van de Ven <arjan@...radead.org>,
Louis Rilling <Louis.Rilling@...labs.com>,
linux-kernel@...r.kernel.org, ocfs2-devel@....oracle.com
Subject: Re: [RFC][PATCH 0/3] configfs: Make nested default groups
lockdep-friendly
On Tue, 2008-05-20 at 16:51 -0700, Joel Becker wrote:
> On Tue, May 20, 2008 at 03:35:43PM -0700, Arjan van de Ven wrote:
> > not quite what I meant; what I meant is more like how sched.c deals
> > with per cpu queues:
> >
> > (from sched.c)
> >
> > spin_lock_init(&rq->lock);
> > lockdep_set_class(&rq->lock, &rq->rq_lock_key);
>
> Looking at this, it's taking the address of the struct
> lock_class_key as the actual key. Thus, if we tie one of these guys to
> the structure we're representing, we get lock safety...except that we're
> talking about i_mutex here, and we want to interact with the VFS's use
> thereof.
Also bear in mind that the lock_class_key structure must be in static
storage.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists