[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 06 Jun 2008 16:20:04 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: npiggin@...e.de
Cc: akpm@...ux-foundation.org, torvalds@...ux-foundation.org,
linux-mm@...ck.org, linux-kernel@...r.kernel.org,
benh@...nel.crashing.org, paulus@...ba.org,
Paul E McKenney <paulmck@...ux.vnet.ibm.com>
Subject: Re: [patch 3/7] mm: speculative page references
On Thu, 2008-06-05 at 19:43 +1000, npiggin@...e.de wrote:
> plain text document attachment (mm-speculative-get_page-hugh.patch)
> +static inline int page_cache_get_speculative(struct page *page)
> +{
> + VM_BUG_ON(in_interrupt());
> +
> +#ifndef CONFIG_SMP
> +# ifdef CONFIG_PREEMPT
> + VM_BUG_ON(!in_atomic());
> +# endif
> + /*
> + * Preempt must be disabled here - we rely on rcu_read_lock doing
> + * this for us.
Preemptible RCU is already in the tree, so I guess you'll have to
explcitly disable preemption if you require it.
--
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