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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul E. McKenney
Date: Friday, April 16, 2010 - 1:28 pm

On Fri, Apr 16, 2010 at 09:37:02PM +0200, Peter Zijlstra wrote:

Agreed.  But holding a small-scope mutex for (say) 60 seconds would not be
a problem (at 120 seconds, you might start seeing softlockup messages).
In contrast, holding off an RCU grace period for 60 seconds might well
OOM the machine, especially a small embedded system with limited memory.


Very good!!!  I should clarify, though -- by "explicit initialization",
I mean that there needs to be a run-time call to init_srcu_struct().
Unless there is some clever way to initialize an array of pointers to
per-CPU structures at compile time.  And, conversely, a way to initialize
pointers in a per-CPU structure to point to possibly-different rcu_node
structures.

							Thanx, Paul
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ..., Benjamin Herrenschmidt, (Mon Apr 12, 6:05 pm)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ..., Benjamin Herrenschmidt, (Thu Apr 15, 11:51 pm)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ..., Benjamin Herrenschmidt, (Thu Apr 15, 11:54 pm)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ..., Benjamin Herrenschmidt, (Fri Apr 16, 1:29 am)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ..., Paul E. McKenney, (Fri Apr 16, 1:28 pm)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ..., Benjamin Herrenschmidt, (Fri Apr 16, 4:25 pm)