login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
16
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast() implementation
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Peter Zijlstra
Subject:
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast() implementation
Date: Friday, April 16, 2010 - 8:14 am
On Fri, 2010-04-16 at 08:09 -0700, Paul E. McKenney wrote:
quoted text
> On Fri, Apr 16, 2010 at 04:56:50PM +0200, Peter Zijlstra wrote: > > On Fri, 2010-04-16 at 07:32 -0700, Paul E. McKenney wrote: > > > On Fri, Apr 16, 2010 at 04:23:39PM +0200, Peter Zijlstra wrote: > > > > On Fri, 2010-04-16 at 07:17 -0700, Paul E. McKenney wrote: > > > > > > > > > > > Of course, with call_rcu_sched(), the corresponding RCU read-side critical > > > > > > > sections are non-preemptible. Therefore, in CONFIG_PREEMPT_RT, these > > > > > > > read-side critical sections must use raw spinlocks. > > > > > > > > > > > > OK, so if we fully remove CONFIG_TREE_PREEMPT_RCU (defaulting to y), > > > > > > rename all the {call_rcu, rcu_read_lock, rcu_read_unlock, > > > > > > synchronize_rcu} functions to {*}_preempt and then add a new > > > > > > CONFIG_PREEMPT_RCU that simply maps {*} to either {*}_sched or > > > > > > {*}_preempt, we've basically got what I've been asking for for a while, > > > > > > no? > > > > > > > > > > What would rcu_read_lock_preempt() do in a !CONFIG_PREEMPT kernel? > > > > > > > > Same as for a preempt one, since you'd have to be able to schedule() > > > > while holding it to be able to do things like mutex_lock(). > > > > > > So what you really want is something like rcu_read_lock_sleep() rather > > > than rcu_read_lock_preempt(), right? The point is that you want to do > > > more than merely preempt, given that it is legal to do general blocking > > > while holding a mutex, correct? > > > > Right, but CONFIG_TREE_PREEMPT_RCU=y ends up being that. We could change > > the name to _sleep, but we've been calling it preemptible-rcu for a long > > while now. > > It is actually not permitted to do general blocking in a preemptible RCU > read-side critical section. Otherwise, someone is going to block waiting > for a network packet that never comes, thus OOMing the system.
Sure, something that guarantees progress seems like a sensible restriction for any lock, and in particular RCU :-) --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast() i ...
, Peter Zijlstra
, (Thu Apr 8, 12:17 pm)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ...
, Rik van Riel
, (Thu Apr 8, 1:31 pm)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ...
, Nick Piggin
, (Thu Apr 8, 8:11 pm)
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 ...
, Paul E. McKenney
, (Mon Apr 12, 8:43 pm)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ...
, Peter Zijlstra
, (Wed Apr 14, 6:51 am)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ...
, Paul E. McKenney
, (Thu Apr 15, 7:28 am)
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 ...
, Nick Piggin
, (Fri Apr 16, 1:18 am)
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 ...
, Nick Piggin
, (Fri Apr 16, 2:22 am)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ...
, Paul E. McKenney
, (Fri Apr 16, 6:43 am)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ...
, Peter Zijlstra
, (Fri Apr 16, 6:51 am)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ...
, Paul E. McKenney
, (Fri Apr 16, 7:17 am)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ...
, Peter Zijlstra
, (Fri Apr 16, 7:23 am)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ...
, Paul E. McKenney
, (Fri Apr 16, 7:32 am)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ...
, Peter Zijlstra
, (Fri Apr 16, 7:56 am)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ...
, Paul E. McKenney
, (Fri Apr 16, 8:09 am)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ...
, Peter Zijlstra
, (Fri Apr 16, 8:14 am)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ...
, Paul E. McKenney
, (Fri Apr 16, 9:45 am)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ...
, Peter Zijlstra
, (Fri Apr 16, 12:37 pm)
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)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ...
, James Bottomley
, (Sat Apr 17, 8:06 pm)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ...
, Paul E. McKenney
, (Sun Apr 18, 6:55 am)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ...
, James Bottomley
, (Sun Apr 18, 11:55 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Uwe Kleine-König
Re: [PATCH v2] ARM: allow, but warn, when issuing ioremap() on RAM
Ingo Molnar
Re: [RFC/RFT PATCH] sched: automated per tty task groups
Rafael J. Wysocki
Re: Why do so many machines need "noapic"?
Matthew Garrett
Re: [RFC][PATCH -mm 3/3] PM: Disable _request_firmware before hibernation/suspend
git
:
Mike Miller
git message
Junio C Hamano
Re: [PATCH] Detached HEAD (experimental)
Stefan Richter
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Petr Baudis
Re: PPC SHA-1 Updates in "pu"
git-commits-head
:
Linux Kernel Mailing List
libata: disable ATAPI AN by default
Linux Kernel Mailing List
ARM: 5905/1: ARM: Global ASID allocation on SMP
Linux Kernel Mailing List
timer: Try to survive timer callback preempt_count leak
Linux Kernel Mailing List
Documentation/timers/hpet_example.c: only build on X86
Linux Kernel Mailing List
ALSA: hda - Enable beep on Realtek codecs with PCI SSID override
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Badalian Vyacheslav
Re: tc filter flow hash question
openbsd-misc
:
Stuart Henderson
Re: Kuro5hin: OpenBSD Founder Theo deRaadt Has Conflict of Interest With AMD
Christian Weisgerber
Re: CARP with a single public IP address
Darrin Chandler
Re: strange output on openbsd C code
Marco Peereboom
Re: OpenBSD culture?
KURS ENGLESKOG JEZIKA NA 10 CD-a
AUDIO-VIZUELNA METODA UCENJA ENGLESKOG JEZIKA na 10 CD-a
Colocation donated by:
Syndicate