Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast() implementation

From: Rik van Riel
Date: Thu Apr 08 2010 - 16:33:16 EST


On 04/08/2010 03:17 PM, Peter Zijlstra wrote:
The powerpc page table freeing relies on the fact that IRQs hold off
an RCU grace period, this is currently true for all existing RCU
implementations but is not an assumption Paul wants to support.

Therefore, also take the RCU read lock along with disabling IRQs to
ensure the RCU grace period does at least cover these lookups.

Requested-by: Paul E. McKenney<paulmck@xxxxxxxxxxxxxxxxxx>
Signed-off-by: Peter Zijlstra<a.p.zijlstra@xxxxxxxxx>
Cc: Nick Piggin<npiggin@xxxxxxx>
Cc: Benjamin Herrenschmidt<benh@xxxxxxxxxxxxxxxxxxx>

Reviewed-by: Rik van Riel <riel@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/