login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
November
»
18
Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lockless
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Peter Zijlstra
Subject:
Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lockless
Date: Thursday, November 18, 2010 - 1:34 am
On Thu, 2010-11-18 at 09:14 +0800, Huang Ying wrote:
quoted text
> On Wed, 2010-11-17 at 19:53 +0800, Peter Zijlstra wrote: > > On Wed, 2010-11-17 at 19:47 +0800, huang ying wrote: > > > On Wed, Nov 17, 2010 at 6:40 PM, Peter Zijlstra <peterz@infradead.org> wrote: > > > > On Wed, 2010-11-17 at 10:18 +0800, Huang Ying wrote: > > > >> > > > >> cmpxchg has been used in that way by ftrace and perf for a long time. So > > > >> I agree to make it a requirement on future architecture ports. > > > > > > > > Neither mandate an architecture do this though, only that when an > > > > architecture wants to support either feature and has NMIs (not all archs > > > > have NMI equivalents) it has to be safe. > > > > > > So we can make sure cmpxchg can be used in lock-less code on > > > architectures with perf, irq_work or ftrace enabled? > > > > It had better, otherwise stuff is broken. > > Take a look at superh architecture cmpxchg implementation. It seems that > cmpxchg is implemented with special instruction if CONFIG_GUSA_RB=y or > CONFIG_CPU_SH4A=y, otherwise it is implemented with local_irq_save. Is > it possible that superh has not PMU support if CONFIG_GUSA_RB=n and > CONFIG_CPU_SH4A=n, so that perf work properly but no NMI safe cmpxchg in > that situation?
Dunno, you forgot to CC the author of that code.. I've really no clue about SH. --
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 -v4 0/2] Lockless memory allocator and list
, Huang Ying
, (Mon Nov 15, 5:53 pm)
[PATCH -v4 1/2] lib, Make gen_pool memory allocator lockless
, Huang Ying
, (Mon Nov 15, 5:53 pm)
[PATCH -v4 2/2] lib, Add lock-less NULL terminated single list
, Huang Ying
, (Mon Nov 15, 5:53 pm)
Re: [PATCH -v4 0/2] Lockless memory allocator and list
, Peter Zijlstra
, (Tue Nov 16, 4:49 am)
Re: [PATCH -v4 2/2] lib, Add lock-less NULL terminated sin ...
, Peter Zijlstra
, (Tue Nov 16, 4:50 am)
Re: [PATCH -v4 2/2] lib, Add lock-less NULL terminated sin ...
, Linus Torvalds
, (Tue Nov 16, 9:33 am)
Re: [PATCH -v4 0/2] Lockless memory allocator and list
, Linus Torvalds
, (Tue Nov 16, 9:38 am)
Re: [PATCH -v4 0/2] Lockless memory allocator and list
, Peter Zijlstra
, (Tue Nov 16, 11:04 am)
Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lo ...
, Andrew Morton
, (Tue Nov 16, 2:50 pm)
Re: [PATCH -v4 0/2] Lockless memory allocator and list
, Huang Ying
, (Tue Nov 16, 6:03 pm)
Re: [PATCH -v4 0/2] Lockless memory allocator and list
, Huang Ying
, (Tue Nov 16, 6:45 pm)
Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lo ...
, Huang Ying
, (Tue Nov 16, 7:18 pm)
Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lo ...
, Andrew Morton
, (Tue Nov 16, 7:35 pm)
Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lo ...
, Huang Ying
, (Tue Nov 16, 8:03 pm)
Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lo ...
, Andrew Morton
, (Tue Nov 16, 8:57 pm)
Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lo ...
, Huang Ying
, (Tue Nov 16, 11:05 pm)
Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lo ...
, Peter Zijlstra
, (Wed Nov 17, 3:40 am)
Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lo ...
, Peter Zijlstra
, (Wed Nov 17, 3:49 am)
Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lo ...
, huang ying
, (Wed Nov 17, 4:16 am)
Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lo ...
, Peter Zijlstra
, (Wed Nov 17, 4:38 am)
Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lo ...
, huang ying
, (Wed Nov 17, 4:47 am)
Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lo ...
, Peter Zijlstra
, (Wed Nov 17, 4:53 am)
Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lo ...
, Huang Ying
, (Wed Nov 17, 6:14 pm)
Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lo ...
, Peter Zijlstra
, (Thu Nov 18, 1:34 am)
Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lo ...
, Paul Mundt
, (Thu Nov 18, 1:43 am)
Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lo ...
, Peter Zijlstra
, (Thu Nov 18, 1:57 am)
Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lo ...
, Paul Mundt
, (Thu Nov 18, 2:03 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 041/196] kobject: add kobject_init_and_add function
Lukas Hejtmanek
Re: Another libata error related to OCZ SSD
Greg Kroah-Hartman
[PATCH 023/196] MCP_UCB1200: Convert from class_device to device
Florian Fainelli
Re: System clock runs too fast after 2.6.27 -> 2.6.28.1 upgrade
Christoph Lameter
[patch 1/4] mmu_notifier: Core code
git
:
Johannes Schindelin
Re: [PATCH 1/2] Add strbuf_initf()
John Bito
[EGIT] Push to GitHub caused corruption
Jakub Narebski
Re: [PATCH 0/2] gitweb: patch view
Junio C Hamano
Re: [PATCH] When a remote is added but not fetched, tell the user.
Andy Parkins
Re: [RFC] Submodules in GIT
git-commits-head
:
Linux Kernel Mailing List
ahci: Workaround HW bug for SB600/700 SATA controller PMP support
Linux Kernel Mailing List
V4L/DVB (11086): au0828: rename macro for currently non-function VBI support
Linux Kernel Mailing List
ceph: client types
Linux Kernel Mailing List
ceph: on-wire types
Linux Kernel Mailing List
crypto: chainiv - Use kcrypto_wq instead of keventd_wq
linux-netdev
:
Andrew Morton
Re: [Bugme-new] [Bug 14969] New: b44: WOL does not work in suspended state
Giuseppe CAVALLARO
Re: [PATCH 03/13] stmmac: add the new Header file for stmmac platform data
Taku Izumi
[PATCH 3/3] ixgbe: add registers etc. printout code just before resetting adapters
Eric Dumazet
rps: some comments
Thomas Gleixner
Re: [RFC PATCH 02/12] On Tue, 23 Sep 2008, David Miller wrote:
openbsd-misc
:
Stephan Andreas
problems with login after xlock in OpenBSD release 4.7
pmc
Make A Change. Alcoholism and Drug Addiction Treatment
ropers
Re: what exactly is enc0?
Fuad NAHDI
Re: What does your environment look like?
Matthew Szudzik
Typo on OpenBSD 4.4 CD Set
Colocation donated by:
Syndicate