[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080910115036.GA29560@elte.hu>
Date: Wed, 10 Sep 2008 13:50:36 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Cc: Nick Piggin <npiggin@...e.de>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [patch] x86: some lock annotations for user copy paths
* Ingo Molnar <mingo@...e.hu> wrote:
> but i think it should be a single primitive sprinkled around,
> might_fault(), which would be something like:
>
> > > + might_sleep();
> > > + if (current->mm)
> > > + might_lock_read(¤t->mm->mmap_sem);
>
> that way it's a lot less visually intrusive as well.
in any case i've applied the current patches to tip/core/locking:
c10d38d: x86: some lock annotations for user copy paths
76b189e: lockdep: add might_lock() / might_lock_read()
to see the fallout. The cleanup can be done after that.
( Nick, i've added your Acked-by to 76b189e - let me know if you dont
want that. )
Ingo
--
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