Re: crash in kmem_cache_init

2008-01-22 Thread Olaf Hering
On Tue, Jan 22, Christoph Lameter wrote: > > 0xc00fe018 is in setup_cpu_cache > > (/home/olaf/kernel/git/linux-2.6-numa/mm/slab.c:2111). > > 2106BUG_ON(!cachep->nodelists[node]); > > 2107 > >

Re: 24rc8: unregister_netdevice: waiting for ... to become free. Usage count = 1?

2008-01-22 Thread Soeren Sonnenburg
On Tue, 2008-01-22 at 22:44 -0800, David Miller wrote: > From: Soeren Sonnenburg <[EMAIL PROTECTED]> > Date: Wed, 23 Jan 2008 07:42:21 +0100 > > > Dear all, > > > > since some 2.6.24rc version I suddenly experience such messages on > > console when trying to shutdown a vpn connection: > > > >

Re: Could you please merge the x86_64 EFI boot support patchset?

2008-01-22 Thread Paul Jackson
Huang wrote: > This patchset has been merged into Linux 2.6.24. Excellent. > Unfortunately, the new EFI support patches do not use EFI memory map for > system boot up ... So, I think the resolution for your problem is the > "struct setup_data" mechanism proposed by H. Peter Anvin. So you're

Re: 2.6.24-rc8-mm1 : net tcp_input.c warnings

2008-01-22 Thread Dave Young
On Jan 23, 2008 3:41 PM, Ilpo Järvinen <[EMAIL PROTECTED]> wrote: > > On Tue, 22 Jan 2008, David Miller wrote: > > > From: "Dave Young" <[EMAIL PROTECTED]> > > Date: Wed, 23 Jan 2008 09:44:30 +0800 > > > > > On Jan 22, 2008 6:47 PM, Ilpo Järvinen <[EMAIL PROTECTED]> wrote: > > > > [PATCH] [TCP]:

Re: 2.6.24-rc8-mm1 : net tcp_input.c warnings

2008-01-22 Thread Ilpo Järvinen
On Tue, 22 Jan 2008, David Miller wrote: > From: "Dave Young" <[EMAIL PROTECTED]> > Date: Wed, 23 Jan 2008 09:44:30 +0800 > > > On Jan 22, 2008 6:47 PM, Ilpo Järvinen <[EMAIL PROTECTED]> wrote: > > > [PATCH] [TCP]: debug S+L > > > > Thanks, If there's new findings I will let you know. > >

Re: [PATCH] sound: fix opti9xx/miro section mismatch

2008-01-22 Thread Sam Ravnborg
On Tue, Jan 22, 2008 at 09:39:47PM -0800, Randy Dunlap wrote: > From: Randy Dunlap <[EMAIL PROTECTED]> > > snd_opti93x_mixer() is only called by __devinit snd_opti93x_probe(), > so the former can also be __devinit. > > snd_miro_mixer() is only called by __devinit snd_miro_probe(), > so the

Re: Could you please merge the x86_64 EFI boot support patchset?

2008-01-22 Thread Huang, Ying
On Wed, 2008-01-23 at 01:00 -0600, Paul Jackson wrote: > In Nov 2007, Huang Ying wrote: > > Could you please merge the following patchset: > > > > [PATCH 0/2 -v3] x86_64 EFI boot support > > [PATCH 1/2 -v3] x86_64 EFI boot support: EFI frame buffer driver > > [PATCH 2/2 -v3] x86_64 EFI boot

Re: [PATCH] sound: fix cs5535 section mismatch

2008-01-22 Thread Sam Ravnborg
On Tue, Jan 22, 2008 at 09:39:43PM -0800, Randy Dunlap wrote: > From: Randy Dunlap <[EMAIL PROTECTED]> > > snd_cs5535audio_mixer() is only called by __devinit snd_cs5535audio_probe(), > so the mixer function can also be __devinit. > > WARNING: vmlinux.o(.text+0xfdbba0): Section mismatch:

Re: [PATCH] radio: fix sf16fmi section mismatch

2008-01-22 Thread Sam Ravnborg
On Tue, Jan 22, 2008 at 09:39:39PM -0800, Randy Dunlap wrote: > From: Randy Dunlap <[EMAIL PROTECTED]> > > isapnp_fmi_probe() is only called by fmi_init(), which is __init, > so isapnp_fmi_probe() can also be __init. > > media/radio/radio-sf16fmi.c: > WARNING: vmlinux.o(.text+0x994e19): Section

Re: Could you please merge the x86_64 EFI boot support patchset?

2008-01-22 Thread Paul Jackson
In Nov 2007, Huang Ying wrote: > Could you please merge the following patchset: > > [PATCH 0/2 -v3] x86_64 EFI boot support > [PATCH 1/2 -v3] x86_64 EFI boot support: EFI frame buffer driver > [PATCH 2/2 -v3] x86_64 EFI boot support: EFI boot document Huang - what has become of this patchset?

Re: 24rc8: unregister_netdevice: waiting for ... to become free. Usage count = 1?

2008-01-22 Thread David Miller
From: Soeren Sonnenburg <[EMAIL PROTECTED]> Date: Wed, 23 Jan 2008 07:42:21 +0100 > Dear all, > > since some 2.6.24rc version I suddenly experience such messages on > console when trying to shutdown a vpn connection: > > unregister_netdevice: waiting for tun0 to become free. Usage count = 1 >

24rc8: unregister_netdevice: waiting for ... to become free. Usage count = 1?

2008-01-22 Thread Soeren Sonnenburg
Dear all, since some 2.6.24rc version I suddenly experience such messages on console when trying to shutdown a vpn connection: unregister_netdevice: waiting for tun0 to become free. Usage count = 1 or when removing an usb wlan dongle (although it was ifconfig wlan0 down'd before)

[RFC] some page can't be migrated

2008-01-22 Thread Shaohua Li
Anonymous page might have fs-private metadata, the page is truncated. As the page hasn't mapping, page migration refuse to migrate the page. It appears the page is only freed in page reclaim and if zone watermark is low, the page is never freed, as a result migration always fail. I thought we

Re: do_remount_sb(RDONLY) race? (was: XFS oops under 2.6.23.9)

2008-01-22 Thread David Chinner
On Wed, Jan 23, 2008 at 04:24:33PM +1030, Jonathan Woithe wrote: > > On Wed, Jan 23, 2008 at 03:00:48PM +1030, Jonathan Woithe wrote: > > > Last night my laptop suffered an oops during closedown. The full oops > > > reports can be downloaded from > > > > > >

Re: 2.6.24-rc8-mm1: sparc64 warning at fs/file_table.c:49 __fput+0x1a8/0x1e0()

2008-01-22 Thread Christoph Hellwig
On Tue, Jan 22, 2008 at 03:13:58PM -0800, Dave Hansen wrote: > The emergency remount code forcibly removes FMODE_WRITE from > filps. The r/o bind mount code notices that this was done > without a proper mnt_drop_write() and properly gives a > warning. > > This patch does a mnt_drop_write() and

Re: do_remount_sb(RDONLY) race? (was: XFS oops under 2.6.23.9)

2008-01-22 Thread Jonathan Woithe
Hi Dave > On Wed, Jan 23, 2008 at 03:00:48PM +1030, Jonathan Woithe wrote: > > Last night my laptop suffered an oops during closedown. The full oops > > reports can be downloaded from > > > > http://www.atrad.com.au/~jwoithe/xfs_oops/ > > Assertion failed: atomic_read(>m_active_trans) == 0,

Re: InfiniBand/RDMA merge plans for 2.6.25

2008-01-22 Thread Christoph Hellwig
On Tue, Jan 22, 2008 at 01:56:00PM -0800, Roland Dreier wrote: > be improved (sparse endianness annotation, that's a blocker for sure. No new code that's not sparse clean, please. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL

[PATCH] sound: fix opti9xx/miro section mismatch

2008-01-22 Thread Randy Dunlap
From: Randy Dunlap <[EMAIL PROTECTED]> snd_opti93x_mixer() is only called by __devinit snd_opti93x_probe(), so the former can also be __devinit. snd_miro_mixer() is only called by __devinit snd_miro_probe(), so the former can also be __devinit. sound/isa/opti9xx/opti92x-ad1848.c: WARNING:

[PATCH] radio: fix sf16fmi section mismatch

2008-01-22 Thread Randy Dunlap
From: Randy Dunlap <[EMAIL PROTECTED]> isapnp_fmi_probe() is only called by fmi_init(), which is __init, so isapnp_fmi_probe() can also be __init. media/radio/radio-sf16fmi.c: WARNING: vmlinux.o(.text+0x994e19): Section mismatch: reference to .init.data: (between 'isapnp_fmi_probe' and

[PATCH] sound: fix cs5535 section mismatch

2008-01-22 Thread Randy Dunlap
From: Randy Dunlap <[EMAIL PROTECTED]> snd_cs5535audio_mixer() is only called by __devinit snd_cs5535audio_probe(), so the mixer function can also be __devinit. WARNING: vmlinux.o(.text+0xfdbba0): Section mismatch: reference to .init.data:ac97_quirks (between 'snd_cs5535audio_mixer' and

do_remount_sb(RDONLY) race? (was: XFS oops under 2.6.23.9)

2008-01-22 Thread David Chinner
On Wed, Jan 23, 2008 at 03:00:48PM +1030, Jonathan Woithe wrote: > Last night my laptop suffered an oops during closedown. The full oops > reports can be downloaded from > > http://www.atrad.com.au/~jwoithe/xfs_oops/ Assertion failed: atomic_read(>m_active_trans) == 0, file:

Re: [patch] x86: test case for the RODATA config option

2008-01-22 Thread Arjan van de Ven
On Wed, 23 Jan 2008 12:11:41 +1100 Nick Piggin <[EMAIL PROTECTED]> wrote: > > #ifdef CONFIG_DEBUG_RODATA > > > > +const int rodata_test_data = 5; > > I guess this should match the 32-bit case, and be zero instead of > 5? actually it should have been 5 for both (well any non-zero number) > >

Re: [RFC/PATCH] dma: dma_{un}map_{single|sg}_attrs() interface

2008-01-22 Thread Roland Dreier
> --- a/include/linux/dma-attrs.h > +++ b/include/linux/dma-attrs.h > @@ -0,0 +1,33 @@ > +#ifndef _DMA_ATTR_H > +#define _DMA_ATTR_H > + > +#include > + > +enum { > +DMA_ATTR_INVALID, > +DMA_ATTR_BARRIER, > +DMA_ATTR_FOO, > +DMA_ATTR_GOO, > +DMA_ATTR_MAX, > +};

[PATCH 1/3] generic: Percpu infrastructure to rebase the per cpu area to zero

2008-01-22 Thread travis
* Support an option CONFIG_HAVE_ZERO_BASED_PER_CPU that makes offsets for per cpu variables to start at zero. If a percpu area starts at zero then: - We do not need RELOC_HIDE anymore - Provides for the future capability of architectures providing

[PATCH 2/3] x86_64: Fold pda into per cpu area

2008-01-22 Thread travis
* Declare the pda as a per cpu variable. This will move the pda area to an address accessible by the x86_64 per cpu macros. Subtraction of __per_cpu_start will make the offset based from the beginning of the per cpu area. Since %gs is pointing to the pda, it will then also

[PATCH 0/3] percpu: Optimize percpu accesses

2008-01-22 Thread travis
This patchset provides the following: * Generic: Percpu infrastructure to rebase the per cpu area to zero This provides for the capability of accessing the percpu variables using a local register instead of having to go through a table on node 0 to find the cpu-specific offsets.

[PATCH 3/3] x86_64: Rebase per cpu variables to zero

2008-01-22 Thread travis
* Relocate the x86_64 percpu variables to begin at zero. Then we can directly use the x86_32 percpu operations. x86_32 offsets %fs by __per_cpu_start. x86_64 has %gs pointing directly to the pda and the per cpu area thereby allowing access to the pda with the x86_64 pda

XFS oops under 2.6.23.9

2008-01-22 Thread Jonathan Woithe
Last night my laptop suffered an oops during closedown. The full oops reports can be downloaded from http://www.atrad.com.au/~jwoithe/xfs_oops/ as photos of the screen. Since the laptop was unusable at this point I wasn't able to cut and paste the details, and they weren't in the logs when

Re: W1: w1_slave units, standardize 1C or .001C? Break API

2008-01-22 Thread H. Peter Anvin
David Fries wrote: On Mon, Jan 21, 2008 at 07:11:07PM -0800, H. Peter Anvin wrote: H. Peter Anvin wrote: Millikelvins would have the nice property of never being negative. :) True, but the sensor returns the value as a signed integer in C. That is where the earlier negative number problem

Re: CONFIG_MARKERS

2008-01-22 Thread Jon Masters
On Tue, 2008-01-22 at 22:10 -0500, Mathieu Desnoyers wrote: > * Frank Ch. Eigler ([EMAIL PROTECTED]) wrote: > > > > Jon Masters <[EMAIL PROTECTED]> writes: > > > > > I notice in module.c: > > > > > > #ifdef CONFIG_MARKERS > > > if (!mod->taints) > > >

Re: [PATCH] procfs: constify function pointer tables

2008-01-22 Thread Bryan Wu
On Jan 23, 2008 4:00 AM, Jan Engelhardt <[EMAIL PROTECTED]> wrote: > Hi, > > > This touches so many different places that I did not feel like creating > a miniscule patch for each architecture. I hope that is ok. > > ===Patch begins=== > [PATCH] procfs: constify function pointer tables > >

Re: [PATCH] ppc: fix #ifdef-s in mediabay driver

2008-01-22 Thread Benjamin Herrenschmidt
On Wed, 2008-01-23 at 01:58 +0100, Bartlomiej Zolnierkiewicz wrote: > I'm more worried about breaking automatic build checking (make randconfig) > than a few extra bytes so if you remove all #ifdefs you'll have to either > make BLK_DEV_IDE_PMAC select PMAC_MEDIABAY or make PMAC_MEDIABAY depend >

Re: W1: w1_slave units, standardize 1C or .001C? Break API

2008-01-22 Thread David Fries
On Wed, Jan 23, 2008 at 12:06:27AM +0300, Evgeniy Polyakov wrote: > > What about instead of breaking application just add new sysfs file, > which will only return temperature instead of full rom content. > It can be millidegrees Centigrade, another one can be millikelvins :) If someone wrote

Re: W1: w1_slave units, standardize 1C or .001C? Break API

2008-01-22 Thread David Fries
On Mon, Jan 21, 2008 at 07:11:07PM -0800, H. Peter Anvin wrote: > H. Peter Anvin wrote: > >Millikelvins would have the nice property of never being negative. :) True, but the sensor returns the value as a signed integer in C. That is where the earlier negative number problem was, it would have

Re: [PATCH 0/6] IO context sharing

2008-01-22 Thread David Chinner
On Tue, Jan 22, 2008 at 10:49:15AM +0100, Jens Axboe wrote: > Hi, > > Today io contexts are per-process and define the (surprise) io context > of that process. In some situations it would be handy if several > processes share an IO context. I think that the nfsd threads should probably share as

Re: [PATCH] x86_32: trim memory by updating e820 v2

2008-01-22 Thread Yinghai Lu
On Monday 21 January 2008 01:37:09 pm Justin Piszcz wrote: > > On Mon, 21 Jan 2008, Yinghai Lu wrote: > > > On Monday 21 January 2008 11:14:02 am Justin Piszcz wrote: > > please get x86.git > > > > git clone > > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git > > cd

Re: CONFIG_MARKERS

2008-01-22 Thread Mathieu Desnoyers
* Frank Ch. Eigler ([EMAIL PROTECTED]) wrote: > > Jon Masters <[EMAIL PROTECTED]> writes: > > > I notice in module.c: > > > > #ifdef CONFIG_MARKERS > > if (!mod->taints) > > marker_update_probe_range(mod->markers, > > mod->markers + mod->num_markers, NULL,

Re: CONFIG_MARKERS

2008-01-22 Thread Frank Ch. Eigler
Jon Masters <[EMAIL PROTECTED]> writes: > I notice in module.c: > > #ifdef CONFIG_MARKERS > if (!mod->taints) > marker_update_probe_range(mod->markers, > mod->markers + mod->num_markers, NULL, NULL); > #endif > > Is this an attempt to not set a marker

Re: 2.6.24-rc8-mm1 : net tcp_input.c warnings

2008-01-22 Thread David Miller
From: "Dave Young" <[EMAIL PROTECTED]> Date: Wed, 23 Jan 2008 09:44:30 +0800 > On Jan 22, 2008 6:47 PM, Ilpo Järvinen <[EMAIL PROTECTED]> wrote: > > [PATCH] [TCP]: debug S+L > > Thanks, If there's new findings I will let you know. Thanks for helping with this bug Dave. -- To unsubscribe from

Re: [PATCH 06/26] atl1: update initialization parameters

2008-01-22 Thread Chris Snook
Jay Cliburn wrote: On Tue, 22 Jan 2008 04:56:11 -0500 Jeff Garzik <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: From: Jay Cliburn <[EMAIL PROTECTED]> Update initialization parameters to match the current vendor driver version 1.2.40.2. [...] ACK without any better knowledge... but

Re: [PATCH 06/26] atl1: update initialization parameters

2008-01-22 Thread Jay Cliburn
On Tue, 22 Jan 2008 04:56:11 -0500 Jeff Garzik <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > From: Jay Cliburn <[EMAIL PROTECTED]> > > > > Update initialization parameters to match the current vendor driver > > version 1.2.40.2. [...] > ACK without any better knowledge... but is

Re: [PATCH]PCIE ASPM support - takes 3

2008-01-22 Thread Shaohua Li
On Tue, 2008-01-22 at 14:58 -0800, Greg KH wrote: > On Fri, Jan 18, 2008 at 09:56:28AM +0800, Shaohua Li wrote: > > v3->v2, fixed the issues Matthew Wilcox raised. > > > > PCI Express ASPM defines a protocol for PCI Express components in the D0 > > state to reduce Link power by placing their

Re: [PATCH 06/26] atl1: update initialization parameters

2008-01-22 Thread Jeff Garzik
Jay Cliburn wrote: On Tue, 22 Jan 2008 04:56:11 -0500 Jeff Garzik <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: From: Jay Cliburn <[EMAIL PROTECTED]> Update initialization parameters to match the current vendor driver version 1.2.40.2. [...] ACK without any better knowledge... but

Re: [PATCH 0/2] Relax restrictions on setting CONFIG_NUMA on x86

2008-01-22 Thread KOSAKI Motohiro
Hi mel > Hi > > > A fix[1] was merged to the x86.git tree that allowed NUMA kernels to boot > > on normal x86 machines (and not just NUMA-Q, Summit etc.). I took a look > > at the restrictions on setting NUMA on x86 to see if they could be lifted. > > Interesting! > > I will test tomorrow.

Re: 2.6.24-rc8: iwl3945 gets stuck

2008-01-22 Thread Daniel Hazelton
On Tuesday 22 January 2008 17:15:42 John W. Linville wrote: > On Tue, Jan 22, 2008 at 09:54:11PM +0100, Harald Dunkel wrote: > > If I put some heavy load on the iwl3945, then the network connection > > gets stuck after a some time. To fix it I have to reload the module. > > Can you quantify this a

Re: [PATCH] kernel/params.c: fix the module name length in param_sysfs_builtin

2008-01-22 Thread Rusty Russell
On Wednesday 23 January 2008 10:13:37 Jan Engelhardt wrote: > On Jan 21 2008 22:16, Rusty Russell wrote: > >On Monday 21 January 2008 20:08:25 Denis Cheng wrote: > >> the original code use KOBJ_NAME_LEN for built-in module name length, > >> that's defined to 20 in linux/kobject.h, but this is not

Re: [PATCH] kernel/params.c: fix the module name length in param_sysfs_builtin

2008-01-22 Thread rae l
On Jan 23, 2008 7:13 AM, Jan Engelhardt <[EMAIL PROTECTED]> wrote: > But nf..dada_compat.c gets linked into nf_conntrack_ipv4.ko, > and that is what is used in /sys/module - and it fits the 20. > Any place where nf_conntrack_l3proto_ipv4_compat would still be used? there is a module named

Re: 2.6.24-rc8-mm1 : net tcp_input.c warnings

2008-01-22 Thread Dave Young
On Jan 22, 2008 6:47 PM, Ilpo Järvinen <[EMAIL PROTECTED]> wrote: > > On Tue, 22 Jan 2008, Dave Young wrote: > > > On Jan 22, 2008 12:37 PM, Dave Young <[EMAIL PROTECTED]> wrote: > > > > > > On Jan 22, 2008 5:14 AM, Ilpo Järvinen <[EMAIL PROTECTED]> wrote: > > > > > > > > On Mon, 21 Jan 2008, Dave

[PATCH] x86: left over fix for leak of early_ioremp in dmi_scan

2008-01-22 Thread Yinghai Lu
[PATCH] x86: left over fix for leak of early_ioremp in dmi_scan Signed-off-by: Yinghai Lu <[EMAIL PROTECTED]> Index: linux-2.6/drivers/firmware/dmi_scan.c === --- linux-2.6.orig/drivers/firmware/dmi_scan.c +++

Re: [kvm-devel] [PATCH] export notifier #1

2008-01-22 Thread Robin Holt
On Tue, Jan 22, 2008 at 04:40:50PM -0800, Christoph Lameter wrote: > On Wed, 23 Jan 2008, Benjamin Herrenschmidt wrote: > > > > - anon_vma/inode and pte locks are held during callbacks. > > > > So how does that fix the problem of sleeping then ? > > The locks are taken in the mmu_ops patch.

Re: [PATCH] cgroup: limit block I/O bandwidth

2008-01-22 Thread Naveen Gupta
On 22/01/2008, Andrea Righi <[EMAIL PROTECTED]> wrote: > Naveen Gupta wrote: > > See if using priority levels to have per level bandwidth limit can > > solve the priority inversion problem you were seeing earlier. I have a > > priority scheduling patch for anticipatory scheduler, if you want to >

Re: [PATCH 1/6] driver-core : add class iteration api

2008-01-22 Thread Dave Young
On Jan 23, 2008 6:25 AM, Greg KH <[EMAIL PROTECTED]> wrote: > On Tue, Jan 22, 2008 at 03:27:08PM +0800, Dave Young wrote: > > > > Add the following class iteration functions for driver use: > > class_for_each_device > > class_find_device > > class_for_each_child > > class_find_child > > As

Re: [patch] x86: test case for the RODATA config option

2008-01-22 Thread Nick Piggin
On Wednesday 23 January 2008 09:44, Arjan van de Ven wrote: > From: Arjan van de Ven <[EMAIL PROTECTED]> > Subject: x86: test case for the RODATA config option > > This patch adds a test module for the DEBUG_RODATA config > option to make sure change_page_attr() did indeed make > "const" data read

Re: 2.6.24 regression: pan hanging unkilleable and un-straceable

2008-01-22 Thread Nick Piggin
On Tuesday 22 January 2008 21:37, Ingo Molnar wrote: > * Nick Piggin <[EMAIL PROTECTED]> wrote: > > Well I've twice tried to submit a patch to print stacks for running > > tasks as well, but nobody seems interested. It would at least give a > > chance to see something. > > i definitely remembering

Re: [PATCH RESEND] Minimal fix for private_list handling races

2008-01-22 Thread Nick Piggin
On Wednesday 23 January 2008 04:10, Jan Kara wrote: > Hi, > > as I got no answer for a week, I'm resending this fix for races in > private_list handling. Andrew, do you like them more than the previous > version? FWIW, I reviewed this, and it looks OK although I think some comments would be

Re: [PATCH] ppc: fix #ifdef-s in mediabay driver

2008-01-22 Thread Bartlomiej Zolnierkiewicz
Hi, On Wednesday 23 January 2008, Benjamin Herrenschmidt wrote: > > On Wed, 2008-01-23 at 00:12 +0100, Bartlomiej Zolnierkiewicz wrote: > > * Replace incorrect CONFIG_BLK_DEV_IDE #ifdef in > > check_media_bay() by CONFIG_MAC_FLOPPY one. > > > > * Replace incorrect CONFIG_BLK_DEV_IDE #ifdef-s

[PATCH 27/27] NFS: Separate caching by superblock, explicitly if necessary

2008-01-22 Thread David Howells
Separate caching by superblock, explicitly if necessary. This means mounts of the same remote data with different parameters do not share cache objects for common files. The administrator may also provide a uniquifier to further enhance the uniqueness. Where it is otherwise impossible to

[PATCH 26/27] NFS: Display local caching state

2008-01-22 Thread David Howells
Display the local caching state in /proc/fs/nfsfs/volumes. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/nfs/client.c |7 --- fs/nfs/fscache.h | 15 +++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/fs/nfs/client.c b/fs/nfs/client.c index

[PATCH 25/27] NFS: Configuration and mount option changes to enable local caching on NFS

2008-01-22 Thread David Howells
Changes to the kernel configuration defintions and to the NFS mount options to allow the local caching support added by the previous patch to be enabled. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/Kconfig|8 fs/nfs/client.c |2 ++ fs/nfs/internal.h |1

[PATCH 24/27] NFS: Use local caching

2008-01-22 Thread David Howells
The attached patch makes it possible for the NFS filesystem to make use of the network filesystem local caching service (FS-Cache). To be able to use this, an updated mount program is required. This can be obtained from: http://people.redhat.com/steved/fscache/util-linux/ To mount an

[PATCH 23/27] NFS: Fix memory leak

2008-01-22 Thread David Howells
Fix a memory leak whereby multiple clientaddr=xxx mount options just overwrite the duplicated client_address option pointer, without freeing the old memory. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/nfs/super.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff

[PATCH 21/27] CacheFiles: Export things for CacheFiles

2008-01-22 Thread David Howells
Export a number of functions for CacheFiles's use. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/super.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/super.c b/fs/super.c index ceaf2e3..cd199ae 100644 --- a/fs/super.c +++ b/fs/super.c @@ -266,6 +266,7

[PATCH 20/27] CacheFiles: Permit the page lock state to be monitored

2008-01-22 Thread David Howells
Add a function to install a monitor on the page lock waitqueue for a particular page, thus allowing the page being unlocked to be detected. This is used by CacheFiles to detect read completion on a page in the backing filesystem so that it can then copy the data to the waiting netfs page.

[PATCH 19/27] CacheFiles: Add a hook to write a single page of data to an inode

2008-01-22 Thread David Howells
Add an address space operation to write one single page of data to an inode at a page-aligned location (thus permitting the implementation to be highly optimised). The data source is a single page. This is used by CacheFiles to store the contents of netfs pages into their backing file pages.

[PATCH 18/27] CacheFiles: Be consistent about the use of mapping vs file->f_mapping in Ext3

2008-01-22 Thread David Howells
Change all the usages of file->f_mapping in ext3_*write_end() functions to use the mapping argument directly. This has two consequences: (*) Consistency. Without this patch sometimes one is used and sometimes the other is. (*) A NULL file pointer can be passed. This feature is then

[PATCH 17/27] CacheFiles: Add missing copy_page export for ia64

2008-01-22 Thread David Howells
This one-line patch fixes the missing export of copy_page introduced by the cachefile patches. This patch is not yet upstream, but is required for cachefile on ia64. It will be pushed upstream when cachefile goes upstream. Signed-off-by: Prarit Bhargava <[EMAIL PROTECTED]> Signed-off-by: David

[PATCH 15/27] FS-Cache: Provide an add_wait_queue_tail() function

2008-01-22 Thread David Howells
Provide an add_wait_queue_tail() function to add a waiter to the back of a wait queue instead of the front. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- include/linux/wait.h |2 ++ kernel/wait.c| 18 ++ 2 files changed, 20 insertions(+), 0 deletions(-)

[PATCH 14/27] FS-Cache: Recruit a couple of page flags for cache management

2008-01-22 Thread David Howells
Recruit a couple of page flags to aid in cache management. The following extra flags are defined: (1) PG_fscache (PG_private_2) The marked page is backed by a local cache and is pinning resources in the cache driver. (2) PG_fscache_write (PG_owner_priv_2) The marked page is

[PATCH 13/27] FS-Cache: Release page->private after failed readahead

2008-01-22 Thread David Howells
The attached patch causes read_cache_pages() to release page-private data on a page for which add_to_page_cache() fails or the filler function fails. This permits pages with caching references associated with them to be cleaned up. The invalidatepage() address space op is called (indirectly) to

[PATCH 12/27] Security: Make NFSD work with detached security

2008-01-22 Thread David Howells
Make NFSD work with detached security, using the patches that excise the security information from task_struct to struct task_security as a base. Each time NFSD wants a new security descriptor (to do NFS4 recovery or just to do NFS operations), a task_security record is derived from NFSD's

[PATCH 11/27] Security: Allow kernel services to override LSM settings for task actions

2008-01-22 Thread David Howells
Allow kernel services to override LSM settings appropriate to the actions performed by a task by duplicating a security record, modifying it and then using task_struct::act_as to point to it when performing operations on behalf of a task. This is used, for example, by CacheFiles which has to

[PATCH 10/27] Security: Add a kernel_service object class to SELinux

2008-01-22 Thread David Howells
Add a 'kernel_service' object class to SELinux and give this object class two access vectors: 'use_as_override' and 'create_files_as'. The first vector is used to grant a process the right to nominate an alternate process security ID for the kernel to use as an override for the SELinux subjective

[PATCH 09/27] Security: Pre-add additional non-caching classes

2008-01-22 Thread David Howells
Pre-add additional non-caching classes that are in the SELinux upstream repository, but not in the upstream kernel so they don't get in the fscache class patch. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- security/selinux/include/av_perm_to_string.h |5 +

[PATCH 04/27] KEYS: Add keyctl function to get a security label

2008-01-22 Thread David Howells
Add a keyctl() function to get the security label of a key. The following is added to Documentation/keys.txt: (*) Get the LSM security context attached to a key. long keyctl(KEYCTL_GET_SECURITY, key_serial_t key, char *buffer, size_t buflen) This function

[PATCH 08/27] Add a secctx_to_secid() LSM hook to go along with the existing

2008-01-22 Thread David Howells
secid_to_secctx() LSM hook. This patch also includes the SELinux implementation for this hook. Signed-off-by: Paul Moore <[EMAIL PROTECTED]> Acked-by: Stephen Smalley <[EMAIL PROTECTED]> --- include/linux/security.h | 13 + security/dummy.c |6 ++

[PATCH 05/27] Security: Change current->fs[ug]id to current_fs[ug]id()

2008-01-22 Thread David Howells
Change current->fs[ug]id to current_fs[ug]id() so that fsgid and fsuid can be separated from the task_struct. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- arch/ia64/kernel/perfmon.c|4 ++-- arch/powerpc/platforms/cell/spufs/inode.c |4 ++--

[PATCH 02/27] KEYS: Check starting keyring as part of search

2008-01-22 Thread David Howells
Check the starting keyring as part of the search to (a) see if that is what we're searching for, and (b) to check it is still valid for searching. The scenario: User in process A does things that cause things to be created in its process session keyring. The user then does an su to another user

[PATCH 03/27] KEYS: Allow the callout data to be passed as a blob rather than a string

2008-01-22 Thread David Howells
Allow the callout data to be passed as a blob rather than a string for internal kernel services that call any request_key_*() interface other than request_key(). request_key() itself still takes a NUL-terminated string. The functions that change are: request_key_with_auxdata()

[PATCH 01/27] KEYS: Increase the payload size when instantiating a key

2008-01-22 Thread David Howells
Increase the size of a payload that can be used to instantiate a key in add_key() and keyctl_instantiate_key(). This permits huge CIFS SPNEGO blobs to be passed around. The limit is raised to 1MB. If kmalloc() can't allocate a buffer of sufficient size, vmalloc() will be tried instead.

[PATCH 00/27] Permit filesystem local caching

2008-01-22 Thread David Howells
These patches add local caching for network filesystems such as NFS. The patches can roughly be broken down into a number of sets: (*) 01-keys-inc-payload.diff (*) 02-keys-search-keyring.diff (*) 03-keys-callout-blob.diff Three patches to the keyring code made to help the CIFS

Re: [kvm-devel] [PATCH] export notifier #1

2008-01-22 Thread Christoph Lameter
On Wed, 23 Jan 2008, Benjamin Herrenschmidt wrote: > > - anon_vma/inode and pte locks are held during callbacks. > > So how does that fix the problem of sleeping then ? The locks are taken in the mmu_ops patch. This patch does not hold them while performing the callbacks. -- To unsubscribe

Re: Massive IDE problems. Who leaves data here?

2008-01-22 Thread Bill Davidsen
Manuel Reimer wrote: Hello, anything started with a try to burn Slackware 12.0 from the original DVD to an new medium with different boot settings. I always got corrupted results and didn't know why. So I started with an "md5sum -c CHECKSUMS.md5" directly on the original media. This

Re: CPA boot crash (was: [PATCH] [0/36] Great change_page_attr patch series v3)

2008-01-22 Thread Thomas Gleixner
On Tue, 22 Jan 2008, Andi Kleen wrote: > According to you and Ingo "the global perspective" is to get > simple stuff first in. But in this case you're doing the complicated > (and worse the unfinished) stuff first which seems to be against > your own principles. No, the global perspective is to

Re: [PATCH 09/26] atl1: refactor tx processing

2008-01-22 Thread Jay Cliburn
On Tue, 22 Jan 2008 04:58:17 -0500 Jeff Garzik <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > From: Jay Cliburn <[EMAIL PROTECTED]> > > > > Refactor tx processing to use a less convoluted tx packet > > descriptor and to conform generally with the vendor's current > > version 1.2.40.2.

Re: PROBLEM: SECCOMP documentation outdated in some arch/*/Kconfig

2008-01-22 Thread Randy Dunlap
On Tue, 22 Jan 2008 15:41:58 +0100 Helmut Grohne wrote: > Hi, > > I didn't find out whom to report this bug to and thus report to > linux-kernel@vger.kernel.org as described in > http://kernel.org/pub/linux/docs/lkml/reporting-bugs.html. Andrea cc-ed. Helmut, would you care to make a patch

[PATCH 4/4] PCI: Run ACPI _OSC method on root bridges only

2008-01-22 Thread Andrew Patterson
From: Andrew Patterson <[EMAIL PROTECTED]> According to the PCI Firmware Specification Revision 3.0 section 4.5, _OSC should only be called on a root brdige. Here is the relevant passage: "The _OSC interface defined in this section applies only to Host Bridge ACPI devices that originate PCI,

[PATCH 2/4] PCI ACPI: AER driver should only register PCIe devices with _OSC.

2008-01-22 Thread Andrew Patterson
From: Andrew Patterson <[EMAIL PROTECTED]> AER is only used with PCIe devices so we should only check PCIe devices for _OSC support. Signed-off-by: Andrew Patterson <[EMAIL PROTECTED]> --- drivers/pci/pcie/aer/aerdrv_acpi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[PATCH 1/4] PCI ACPI: Added a function to register _OSC with only PCIe devices.

2008-01-22 Thread Andrew Patterson
From: Andrew Patterson <[EMAIL PROTECTED]> The function pci_osc_support_set() traverses every root bridge when checking for _OSC support for a capability. It quits as soon as it finds a device/bridge that doesn't support the requested capability. This won't work for systems that have mixed PCI

[PATCH 3/4] ACPI: Check for any matching CID when walking namespace.

2008-01-22 Thread Andrew Patterson
From: Andrew Patterson <[EMAIL PROTECTED]> The callback function acpi_ns_get_device_callback called from acpi_get_devices() will check CID's if the HID does not match. This code has a bug where it requires that all CIDs match the HID. Changed the code so that any CID match will do.

[PATCH 0/4] ACPI fixes for PCIe AER

2008-01-22 Thread Andrew Patterson
The following patch series fixes some bugs in how Linux determines whether PCIe Advance Error Reporting (AER) is supported on a platform. It is currently broken on at least HP IA-64 systems. - PCI: Run ACPI _OSC method on root bridges only - ACPI: Check for any matching CID when walking

[PATCH] x86_32: trim memory by updating e820 v3

2008-01-22 Thread Yinghai Lu
[PATCH] x86_32: trim memory by updating e820 v3 when mtrr is not covering all e820 table, need to trim the ram, need to update e820 reuse some code for x86_64 here need to add early_get_cap and use it in early_cpu_detect, and move mtrr_bp_init early need Justine to test with his special

AACRAID driver broken in 2.6.22.x (and beyond?) [WAS: Re: 2.6.22.16 MD raid1 doesn't mark removed disk faulty, MD thread goes UN]

2008-01-22 Thread Mike Snitzer
On Jan 22, 2008 12:29 AM, Mike Snitzer <[EMAIL PROTECTED]> wrote: > cc'ing Tanaka-san given his recent raid1 BUG report: > http://lkml.org/lkml/2008/1/14/515 > > > On Jan 21, 2008 6:04 PM, Mike Snitzer <[EMAIL PROTECTED]> wrote: > > Under 2.6.22.16, I physically pulled a SATA disk (/dev/sdac,

[PATCH 2/3] x86: Unify fault_32|64.c with ifdefs

2008-01-22 Thread Harvey Harrison
Elimination of these ifdefs can be done in a unified file. Signed-off-by: Harvey Harrison <[EMAIL PROTECTED]> --- arch/x86/mm/fault_32.c | 100 +-- arch/x86/mm/fault_64.c | 93 +++- 2 files changed, 177

RE: [ofa-general] Re: InfiniBand/RDMA merge plans for 2.6.25

2008-01-22 Thread Glenn Streiff
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > Roland Dreier > Sent: Tuesday, January 22, 2008 3:56 PM > To: Christoph Hellwig > Cc: linux-kernel@vger.kernel.org; [EMAIL PROTECTED] > Subject: [ofa-general] Re: InfiniBand/RDMA merge plans for 2.6.25 > > > > > - Neteffect

[PATCH 1/3] x86: Unify fault_32|64.c by ifdef'd function bodies

2008-01-22 Thread Harvey Harrison
It's about time to get on with unifying these files, elimination of the ugly ifdefs can occur in the unified file. Signed-off-by: Harvey Harrison <[EMAIL PROTECTED]> --- OK, time to bite the bullet, it's ugly, but we can now do the cleanups once in the unified files. arch/x86/mm/fault_32.c |

Re: [patch] x86: test case for the RODATA config option

2008-01-22 Thread Ingo Molnar
cool! could you perhaps also do an add-on: > + /* test 1: read the value */ > + /* test 2: write to the variable; this should fault */ > + /* test 3: check the value hasn't changed */ test 4: make it writable again test 5: make it NX -> check that it's not

Re: [PATCHSET] printk: implement printk_header() and merging printk, take #2

2008-01-22 Thread Tejun Heo
Jan Engelhardt wrote: > On Jan 23 2008 08:51, Tejun Heo wrote: >> What do you think about the second suggestion then? >> >> ata1.00: line0 >> ata1.00 line1 >> ata1.00 line2 >> >> It allows you to grab for the header && has indication for message >> boundaries. > > Then again, why not "[ata1.00]

Re: [patch 07/10] unprivileged mounts: add sysctl tunable for "safe" property

2008-01-22 Thread Serge E. Hallyn
Quoting Miklos Szeredi ([EMAIL PROTECTED]): > > > > What do you think about doing this only if FS_SAFE is also set, > > > > so for instance at first only FUSE would allow itself to be > > > > made user-mountable? > > > > > > > > A safe thing to do, or overly intrusive? > > > > > > It goes

Re: CPA boot crash (was: [PATCH] [0/36] Great change_page_attr patch series v3)

2008-01-22 Thread Ingo Molnar
* Andi Kleen <[EMAIL PROTECTED]> wrote: > > because it interferes/interacts with CPA and the page table code. So > > No that is not its main problem I believe. Main problem are all the > driver and other subsystem interactions (it is a little bit similar to > power management where you have

Re: [PATCH] ppc: fix #ifdef-s in mediabay driver

2008-01-22 Thread Benjamin Herrenschmidt
On Wed, 2008-01-23 at 00:12 +0100, Bartlomiej Zolnierkiewicz wrote: > * Replace incorrect CONFIG_BLK_DEV_IDE #ifdef in > check_media_bay() by CONFIG_MAC_FLOPPY one. > > * Replace incorrect CONFIG_BLK_DEV_IDE #ifdef-s by > CONFIG_BLK_DEV_IDE_PMAC ones. > > * check_media_bay() is used only by

  1   2   3   4   5   6   7   8   9   >