login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
August
»
23
Re: [RFC 3/3] SGI Altix cross partition memory (XPMEM)
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Andy Whitcroft
Subject:
Re: [RFC 3/3] SGI Altix cross partition memory (XPMEM)
Date: Thursday, August 23, 2007 - 6:58 am
Andrew Morton wrote:
quoted text
> On Wed, 22 Aug 2007 14:15:16 -0500 > Dean Nelson <dcn@sgi.com> wrote: > >> On Wed, Aug 22, 2007 at 11:04:22AM -0700, Andrew Morton wrote: >>> On Wed, 22 Aug 2007 12:00:11 -0500 >>> Dean Nelson <dcn@sgi.com> wrote: >>> >>>> 3) WARNING: declaring multiple variables together should be avoided >>>> >>>> checkpatch.pl is erroneously commplaining about the following found in five >>>> different functions in arch/ia64/sn/kernel/xpmem_pfn.c. >>>> >>>> int n_pgs = xpmem_num_of_pages(vaddr, size); >>> What warning does it generate here? >> The WARNING #3 above "declaring multiple variables together should be avoided". >> There is only one variable being declared, which happens to be initialized by >> the function xpmem_num_of_pages(). > > Ah, I think I recall seeing a report of that earlier. Maybe it's been fixed?
Yep that got fixed. Though the consensus was there were too many good uses for the multiple define form that it got put on ice after that too.
quoted text
>> ... >>>> I've switched from using nopage to using fault. I read that it is intended >>>> that nopfn also goes away. If this is the case, then the BUG_ON if VM_PFNMAP >>>> is set would make __do_fault() a rather unfriendly replacement for do_no_pfn(). >>>> >>>>> - xpmem_attach() does smp_processor_id() in preemptible code. Lucky that >>>>> ia64 doesn't do preempt? >>>> Actually, the code is fine as is even with preemption configured on. All it's >>>> doing is ensuring that the thread was previously pinned to the CPU it's >>>> currently running on. If it is, it can't be moved to another CPU via >>>> preemption, and if it isn't, the check will fail and we'll return -EINVAL >>>> and all is well. >>> OK. Running smp_processor_id() from within preemptible code will generate >>> a warning, but the code is sneaky enough to prevent that warning if the >>> calling task happens to be pinned to a single CPU. >> Would it make more sense in this particular case to replace the call to >> smp_processor_id() in xpmem_attach() with a call to raw_smp_processor_id() >> instead, and add a comment explaining why? > > Your call ;) Either will be OK, I expect.
-
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:
[RFC 0/3] SGI Altix cross partition memory (XPMEM)
, Dean Nelson
, (Thu Aug 9, 6:06 pm)
Re: [RFC 1/3] SGI Altix cross partition memory (XPMEM)
, Dean Nelson
, (Thu Aug 9, 6:11 pm)
[RFC 2/3] SGI Altix cross partition memory (XPMEM)
, Dean Nelson
, (Thu Aug 9, 6:12 pm)
[RFC 3/3] SGI Altix cross partition memory (XPMEM)
, Dean Nelson
, (Thu Aug 9, 6:14 pm)
Re: [RFC 3/3] SGI Altix cross partition memory (XPMEM)
, Andrew Morton
, (Thu Aug 9, 11:15 pm)
Re: [RFC 3/3] SGI Altix cross partition memory (XPMEM)
, Dean Nelson
, (Wed Aug 22, 10:00 am)
Re: [RFC 3/3] SGI Altix cross partition memory (XPMEM)
, Andrew Morton
, (Wed Aug 22, 11:04 am)
Re: [RFC 3/3] SGI Altix cross partition memory (XPMEM)
, Dean Nelson
, (Wed Aug 22, 12:15 pm)
Re: [RFC 3/3] SGI Altix cross partition memory (XPMEM)
, Andrew Morton
, (Wed Aug 22, 12:49 pm)
Re: [RFC 3/3] SGI Altix cross partition memory (XPMEM)
, Andy Whitcroft
, (Thu Aug 23, 6:58 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Francis Moreau
Re: Disk geometry from /sys
Rafael J. Wysocki
[Bug #11407] suspend: unable to handle kernel paging request
Christoph Lameter
Re: [bug] SLUB + mm/slab.c boot crash in -rc9
Jeremy Fitzhardinge
Re: [2.6.25] compat VDSO option not disabling
Rafael J. Wysocki
[Bug #11551] Semi-repeatable hard lockup on 2.6.27-rc6
git
:
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Tait
Re: [PATCH] Replace hard-coded path with one from <paths.h>
Frans Pop
'git gc --aggressive' effectively unusable
Stephan Beyer
Re: git sequencer prototype
Lynn Lin
Re: clearcase migration to git
linux-netdev
:
William Allen Simpson
[net-next-2.6 PATCH v8 0/7] TCPCT part 1: cookie option exchange
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
David Miller
Re: [PATCH] IPv6: preferred lifetime of address not getting updated
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
Mark McLoughlin
Re: [PATCH 2/3] virtio: fix delayed xmit of packet and freeing of old packets.
git-commits-head
:
Linux Kernel Mailing List
.gitignore: ignore *.lzo files
Linux Kernel Mailing List
init: Open /dev/console from rootfs
Linux Kernel Mailing List
imxfb: Fix margin settings
Linux Kernel Mailing List
udp: fix for unicast RX path optimization
Linux Kernel Mailing List
V4L/DVB (10826): cx88: Add IR support to pcHDTV HD3000 & HD5500
openbsd-misc
:
Robert
disklabel - cylinder rounding
nixlists
Re: Which laptops do the developers use?
admin
Drive a 2009 car from R799p/m
L. V. Lammert
OT, .. but has anyone seen a crontab editor
Darrin Chandler
Re: That whole "Linux stealing our code" thing
Colocation donated by:
Syndicate