login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
9
Re: [PATCH 4/9] v4 Add mutex for add/remove of memory blocks
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Nathan Fontenot
Subject:
Re: [PATCH 4/9] v4 Add mutex for add/remove of memory blocks
Date: Monday, August 9, 2010 - 6:55 am
On 08/04/2010 11:53 PM, KAMEZAWA Hiroyuki wrote:
quoted text
> On Tue, 03 Aug 2010 08:39:50 -0500 > Nathan Fontenot <nfont@austin.ibm.com> wrote: > >> Add a new mutex for use in adding and removing of memory blocks. This >> is needed to avoid any race conditions in which the same memory block could >> be added and removed at the same time. >> >> Signed-off-by: Nathan Fontenot <nfont@austin.ibm.com> > > Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> > > But a nitpick (see below) > >> --- >> drivers/base/memory.c | 9 +++++++++ >> 1 file changed, 9 insertions(+) >> >> Index: linux-2.6/drivers/base/memory.c >> =================================================================== >> --- linux-2.6.orig/drivers/base/memory.c 2010-08-02 13:35:00.000000000 -0500 >> +++ linux-2.6/drivers/base/memory.c 2010-08-02 13:45:34.000000000 -0500 >> @@ -27,6 +27,8 @@ >> #include <asm/atomic.h> >> #include <asm/uaccess.h> >> >> +static struct mutex mem_sysfs_mutex; >> + > > For static symbol of mutex, we usually do > static DEFINE_MUTEX(mem_sysfs_mutex); > > Then, extra calls of mutex_init() is not required. >
ok, fixed in the next version of the patches. -Nathan --
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 0/9] v4 De-couple sysfs memory directories from me ...
, Nathan Fontenot
, (Tue Aug 3, 6:32 am)
[PATCH 1/9] v4 Move the find_memory_block() routine up
, Nathan Fontenot
, (Tue Aug 3, 6:36 am)
[PATCH 2/9] v4 Add new phys_index properties
, Nathan Fontenot
, (Tue Aug 3, 6:37 am)
[PATCH 3/9] v4 Add section count to memory_block
, Nathan Fontenot
, (Tue Aug 3, 6:38 am)
[PATCH 4/9] v4 Add mutex for add/remove of memory blocks
, Nathan Fontenot
, (Tue Aug 3, 6:39 am)
[PATCH 5/9] v4 Allow memory_block to span multiple memory ...
, Nathan Fontenot
, (Tue Aug 3, 6:40 am)
[PATCH 6/9] v4 Update the find_memory_block declaration
, Nathan Fontenot
, (Tue Aug 3, 6:41 am)
[PATCH 7/9] v4 Update the node sysfs code
, Nathan Fontenot
, (Tue Aug 3, 6:42 am)
[PATCH 8/9] v4 Define memory_block_size_bytes() for ppc/p ...
, Nathan Fontenot
, (Tue Aug 3, 6:43 am)
[PATCH 9/9] v4 Update memory-hotplug documentation
, Nathan Fontenot
, (Tue Aug 3, 6:44 am)
Re: [PATCH 1/9] v4 Move the find_memory_block() routine up
, KAMEZAWA Hiroyuki
, (Wed Aug 4, 9:45 pm)
Re: [PATCH 2/9] v4 Add new phys_index properties
, KAMEZAWA Hiroyuki
, (Wed Aug 4, 9:49 pm)
Re: [PATCH 3/9] v4 Add section count to memory_block
, KAMEZAWA Hiroyuki
, (Wed Aug 4, 9:50 pm)
Re: [PATCH 4/9] v4 Add mutex for add/remove of memory blocks
, KAMEZAWA Hiroyuki
, (Wed Aug 4, 9:53 pm)
Re: [PATCH 5/9] v4 Allow memory_block to span multiple me ...
, KAMEZAWA Hiroyuki
, (Wed Aug 4, 9:55 pm)
Re: [PATCH 6/9] v4 Update the find_memory_block declaration
, KAMEZAWA Hiroyuki
, (Wed Aug 4, 9:59 pm)
Re: [PATCH 7/9] v4 Update the node sysfs code
, KAMEZAWA Hiroyuki
, (Wed Aug 4, 10:01 pm)
Re: [PATCH 9/9] v4 Update memory-hotplug documentation
, KAMEZAWA Hiroyuki
, (Wed Aug 4, 10:04 pm)
Re: [PATCH 4/9] v4 Add mutex for add/remove of memory blocks
, Nathan Fontenot
, (Mon Aug 9, 6:55 am)
Re: [PATCH 6/9] v4 Update the find_memory_block declaration
, Nathan Fontenot
, (Mon Aug 9, 6:56 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Robin Lee Powell
NFS hang + umount -f: better behaviour requested.
Linus Torvalds
Linux 2.6.34-rc4
Nick Piggin
Re: dealing with barriers (was Re: [PATCH] firewire: fw-core: enforce write order ...
git
:
Fredrik Kuivinen
Re: fatal: unable to create '.git/index': File exists
Wink Saville
How-to combine several separate git repos?
Emily Ren
How to pull remote branch with specified commit id?
Denis Bueno
Git clone error
pradeep singh
git-update-server-info may be required,cannot clone and pull from a remote reposit...
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
frantisek holop
Re: splassert: vwakeup: and friends
linux-netdev
:
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Timo Teräs
ip xfrm policy semantics
Ron Mercer
[net-next PATCH 2/2] qlge: Version change to v1.00.00.27
Maciej W. Rozycki
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
git-commits-head
:
Linux Kernel Mailing List
powerpc/fsl_msi: enable msi allocation in all banks
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
[ARM] mmp: add dma support to mmp2
Linux Kernel Mailing List
bnx2x: Moving includes
Colocation donated by:
Syndicate