Re: menuconfig idea: lift fs menu

2007-09-25 Thread Randy Dunlap
On Tue, 25 Sep 2007 10:10:26 +0200 (CEST) Jan Engelhardt wrote: > > Lift the FS menu a bit by moving filesystem-specific > parts into their own menu. > > This is an idea I had. Comments please, if any. > > Signed-off-by: Jan Engelhardt <[EMAIL PROTECTED]> Hi Jan, The current fs menu is too lo

Re: Linux 2.6.22.8, pata_ali issue

2007-09-25 Thread Jan Engelhardt
On Sep 25 2007 10:35, Greg KH wrote: >On Tue, Sep 25, 2007 at 07:03:24PM +0200, Jan Engelhardt wrote: >> So, here is something that I think should go into the next 2.6.22. >> A proper fix is already in 2.6.23-git-du-jour. > >Feel free to send the patch, with the git commit id of the upstream >com

Re: [patch 1/2] menuconfig: transform NLS and DLM menus

2007-09-25 Thread Randy Dunlap
On Tue, 25 Sep 2007 10:10:14 +0200 (CEST) Jan Engelhardt wrote: > > Changes NLS and DLM menus into a 'menuconfig' object > so that it can be disabled at once without having to enter > the menu first to disable the config option. > > Signed-off-by: Jan Engelhardt <[EMAIL PROTECTED]> Acked-by: Ra

Re: [patch 2/2] menuconfig: transform Network Filesystems menu

2007-09-25 Thread Randy Dunlap
On Tue, 25 Sep 2007 10:10:19 +0200 (CEST) Jan Engelhardt wrote: > > Turn Network File Systems into a menuconfig so that it can be > disabled at once. > > (Note: I added a "default y". If you do not like that, speak up.) > > Signed-off-by: Jan Engelhardt <[EMAIL PROTECTED]> Acked-by: Randy Dunl

Re: [patch 5/7] Use extended crashkernel command line on ppc64

2007-09-25 Thread Andrew Morton
On Tue, 25 Sep 2007 20:23:02 +0200 Bernhard Walle <[EMAIL PROTECTED]> wrote: > This patch adapts the ppc64 code to use the generic parse_crashkernel() > function introduced in the generic patch of that series. > > I really don't like to see patches get a wholesale replacement, especially when t

[git patches] additional net driver fixes

2007-09-25 Thread Jeff Garzik
These two wireless fixes are IN ADDITION to the previously submitted fixes. Same linear history. In other words, if you pull "upstream-linus", you will get both the changes below, _and_ the changes I submitted yesterday. If you have already pulled yesterday's fixes, then you will only receive t

Re: 2.6.23-rc4-mm1 and -rc6-mm1: boot failure on HP nx6325, related to clockevents

2007-09-25 Thread Rafael J. Wysocki
On Tuesday, 25 September 2007 15:17, Thomas Gleixner wrote: > On Tue, 2007-09-25 at 15:16 +0200, Rafael J. Wysocki wrote: [--snip--] > > I start to get desperate. Below is a patch, which moves the apic timer > disable check after the calibration routine. Can you please apply on top > of -hrt and a

Re: [PATCH] UML - time build fix

2007-09-25 Thread Thomas Gleixner
On Tue, 2007-09-25 at 13:37 -0400, Jeff Dike wrote: > Put back an implementation of timeval_to_ns in > arch/um/os-Linux/time.c. tglx pointed out in his review of tickless > support that there was a perfectly good implementation of it in > linux/time.h. The problem is that this is userspace code

NLM: Fix a circular lock dependency in lockd

2007-09-25 Thread Trond Myklebust
The problem is that the garbage collector for the 'host' structures nlm_gc_hosts(), holds nlm_host_mutex while calling down to nlmsvc_mark_resources, which, eventually takes the file->f_mutex. We cannot therefore call nlmsvc_lookup_host() from within nlmsvc_create_block, since the caller will alre

Re: 2.6.23-rc8-mm1 - powerpc memory hotplug link failure

2007-09-25 Thread Kamalesh Babulal
Hi Andrew, The 2.6.23-rc8-mm1 kernel linking fails on the powerpc (P5+) box CC init/version.o LD init/built-in.o LD .tmp_vmlinux1 drivers/built-in.o: In function `memory_block_action': /root/scrap/linux-2.6.23-rc8/drivers/base/memory.c:188: undefined reference to `.remove_me

[PATCH] fs/dcache.c: revamped to use a more straightforward and efficient way to operate

2007-09-25 Thread Denis Cheng
Signed-off-by: Denis Cheng <[EMAIL PROTECTED]> --- fs/dcache.c | 39 ++- 1 files changed, 18 insertions(+), 21 deletions(-) diff --git a/fs/dcache.c b/fs/dcache.c index 678d39d..05ed44a 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -1138,29 +1138,26 @@ struct

Re: [patch 3/5] Add samples subdir

2007-09-25 Thread Randy Dunlap
On Tue, 25 Sep 2007 21:00:36 +0200 Sam Ravnborg wrote: Hi Sam, Thanks for looking. I was hoping that you would find time to look/comment on it. > Hi Mathieu & Randy. > > On Tue, Sep 25, 2007 at 08:11:48AM -0400, Mathieu Desnoyers wrote: > > From: Randy Dunlap <[EMAIL PROTECTED]> > > > > Begin

[RFC Patch] Trace - Samples

2007-09-25 Thread David J. Wilder
This patch Moves the trace example into the new samples/ infrastructure Requires: [patch 3/5] Add samples subdir (http://lkml.org/lkml/2007/9/25/157) and create samples/Makefile or apply: [patch 4/5] Linux Kernel Markers - Samples (http://lkml.org/lkml/2007/9/25/166) Signed-off-by: David Wilde

Re: [patch 1/7] Extended crashkernel command line

2007-09-25 Thread Oleg Verych
* Tue, 25 Sep 2007 20:22:58 +0200 > > This is the generic part of the patch. It adds a parse_crashkernel() function > in kernel/kexec.c that is called by the architecture specific code that > actually reserves the memory. That function takes the whole command line and > looks itself for "crashkerne

Re: [patch 3/5] Add samples subdir

2007-09-25 Thread Mathieu Desnoyers
* Randy Dunlap ([EMAIL PROTECTED]) wrote: > On Tue, 25 Sep 2007 21:00:36 +0200 Sam Ravnborg wrote: > > Hi Sam, > > Thanks for looking. I was hoping that you would find time to > look/comment on it. > > > Hi Mathieu & Randy. > > > > On Tue, Sep 25, 2007 at 08:11:48AM -0400, Mathieu Desnoyers wr

Re: [PATCH] x86-64: Disable local APIC timer use on AMD systems with C1E

2007-09-25 Thread Rafael J. Wysocki
On Tuesday, 25 September 2007 21:37, Thomas Gleixner wrote: > commit 3556ddfa9284a86a59a9b78fe5894430f6ab4eef titled > > [PATCH] x86-64: Disable local APIC timer use on AMD systems with C1E > > solves a problem with AMD dual core laptops e.g. HP nx6325 (Turion 64 > X2) with C1E enabled: > > Whe

Re: 2.6.23-rc7-mm1 AHCI ATA errors -- won't boot

2007-09-25 Thread Jeff Garzik
Berck E. Nash wrote: Jeff Garzik wrote: Once the blame has been squared fixed upon me :) you can use git-bisect to locate the precise change that broke your setup. Okay, here's the problem: 268fe6f9f15551be9abedd44a237392675d529d5 is first bad commit commit 268fe6f9f15551be9abedd44a237392675d

Re: 2.6.23 /proc/bus/input/devices content question

2007-09-25 Thread Dmitry Torokhov
On 9/25/07, Michael Guntsche <[EMAIL PROTECTED]> wrote: > > On Sep 25, 2007, at 19:51, Dmitry Torokhov wrote: > > > Hi Michael, > > > >> ... > >> I this a "wanted" change or should I still see the same with 2.6.23? > >> > > > > Is this with CONFIG_SYSFS_DEPRECATED=y? > > No, CONFIG_SYSFS_DEPRECATED

Re: libata not working for sis5533

2007-09-25 Thread Patrizio Bassi
Chuck Ebbert ha scritto: > On 08/31/2007 06:20 PM, Patrizio Bassi wrote: > >> Patrizio Bassi ha scritto: >> >>> Michal Piotrowski ha scritto: >>> Hi, [Adding IDE wizards to CC] On 26/08/07, Patrizio Bassi <[EMAIL PROTECTED]> wrote: >

Re: 2.6.23-rc4-mm1 and -rc6-mm1: boot failure on HP nx6325, related to clockevents

2007-09-25 Thread Thomas Gleixner
Rafael, On Tue, 2007-09-25 at 22:07 +0200, Rafael J. Wysocki wrote: > On Tuesday, 25 September 2007 15:17, Thomas Gleixner wrote: > > On Tue, 2007-09-25 at 15:16 +0200, Rafael J. Wysocki wrote: > [--snip--] > > > > I start to get desperate. Below is a patch, which moves the apic timer > > disable

Re: [PATCH 1/3] Fix coding style

2007-09-25 Thread Kyle Moffett
On Sep 25, 2007, at 15:16:20, Ingo Oeser wrote: On Tuesday 25 September 2007, Srivatsa Vaddagiri wrote: @@ -297,7 +293,7 @@ static int __init init_sched_debug_procf pe->proc_fops = &sched_debug_fops; #ifdef CONFIG_FAIR_USER_SCHED - pe = create_proc_entry("root_user_share", 0644,

2.6.23-rc8-mm1: somewhat broken forced HPET on ICH5

2007-09-25 Thread Alexey Dobriyan
ich-force-hpet-ich5-quirk-to-force-detect-enable.patch is causing the following on Etch boot: [initscripts as usual] Setting system clock: [nothing happens for several seconds] select to /dev/rtc to wait for clock tick timed out [initscripts as usual] Then

Re: [patch 3/5] Add samples subdir (updated)

2007-09-25 Thread Mathieu Desnoyers
Randy, since I did big changes to the patch, I removed your Signed-off-by. Tell me if you want me to add it back... (Is the From: still valid ?) Mathieu Add samples subdir (updated) From: Randy Dunlap <[EMAIL PROTECTED]> Begin infrastructure for kernel code samples in the samples/ directory. A

Re: Chroot bug

2007-09-25 Thread David Newall
Jan Engelhardt wrote: On Sep 26 2007 01:11, David Newall wrote: Jan Engelhardt wrote: On Sep 26 2007 00:40, David Newall wrote: Miloslav Semler pointed out that a root process can chdir("..") out of its chroot. So what? Just do this: chdir into the root after chroot

Re: sys_chroot+sys_fchdir Fix

2007-09-25 Thread Phillip Susi
Alan Cox wrote: On Fri, 21 Sep 2007 13:39:34 -0400 Phillip Susi <[EMAIL PROTECTED]> wrote: David Newall wrote: * In particular, the superuser can escape from a =91chroot jail=92 by d= oing=20 =91mkdir foo; chroot foo; cd ..=92. No, he can not. The superuser can escape that way - its expecte

Re: [PATCH] x86-64: Disable local APIC timer use on AMD systems with C1E

2007-09-25 Thread Thomas Gleixner
On Tue, 2007-09-25 at 22:55 +0200, Rafael J. Wysocki wrote: > I have reworked the patch a bit so that it applies on top of 2.6.23-rc8-mm1 > and compiles (my version is attached). > > With this patch applied, the kernel boots correctly on the nx6325. I know. It's basically enforced "noapictimer".

Re: 2.6.23-rc8-mm1: drivers/kvm/ioapic.o build failure

2007-09-25 Thread Mariusz Kozlowski
Hello, Similar (the same?) as in 2.6.23-rc6-mm1? http://www.mail-archive.com/linux-kernel%40vger.kernel.org/msg208812.html CC [M] drivers/kvm/ioapic.o drivers/kvm/ioapic.c: In function 'ioapic_deliver': drivers/kvm/ioapic.c:208: error: 'dest_LowestPrio' undeclared (first use i

Re: [patch 3/5] Add samples subdir (updated)

2007-09-25 Thread Randy Dunlap
On Tue, 25 Sep 2007 16:50:21 -0400 Mathieu Desnoyers wrote: > Randy, since I did big changes to the patch, I removed your > Signed-off-by. Tell me if you want me to add it back... (Is the From: > still valid ?) > > Mathieu Heck, I dunno. Just make it from you and SOB by me, if that works_for_you

Re: 2.6.23 /proc/bus/input/devices content question

2007-09-25 Thread Michael Guntsche
On Sep 25, 2007, at 22:41, Dmitry Torokhov wrote: Ok, this is expected. Input devices were converted form class devices into standard devices. Unless SYSFS_DEPRECTAED is set to Y sysfs changes are expected. Ah ok, so this is a known change. I thought about enabling it for testing but did

Re: [patch 3/5] Add samples subdir

2007-09-25 Thread Oleg Verych
* Tue, 25 Sep 2007 21:00:36 +0200 > > Hi Mathieu & Randy. > > On Tue, Sep 25, 2007 at 08:11:48AM -0400, Mathieu Desnoyers wrote: >> From: Randy Dunlap <[EMAIL PROTECTED]> >> >> Begin infrastructure for kernel code samples in the samples/ directory. >> Add its Kconfig and Kbuild files. >> Source it

Re: 2.6.23-rc4-mm1 and -rc6-mm1: boot failure on HP nx6325, related to clockevents

2007-09-25 Thread Rafael J. Wysocki
Thomas, On Tuesday, 25 September 2007 22:46, Thomas Gleixner wrote: > Rafael, > > On Tue, 2007-09-25 at 22:07 +0200, Rafael J. Wysocki wrote: > > On Tuesday, 25 September 2007 15:17, Thomas Gleixner wrote: > > > On Tue, 2007-09-25 at 15:16 +0200, Rafael J. Wysocki wrote: > > [--snip--] > > > > >

Re: [RFC Patch] Trace - Samples

2007-09-25 Thread Randy Dunlap
On Tue, 25 Sep 2007 13:35:47 -0700 David J. Wilder wrote: > This patch Moves the trace example into the new samples/ infrastructure > > Requires: [patch 3/5] Add samples subdir (http://lkml.org/lkml/2007/9/25/157) > and create samples/Makefile or apply: > [patch 4/5] Linux Kernel Markers - Samp

Re: [PATCH] x86-64: Disable local APIC timer use on AMD systems with C1E

2007-09-25 Thread Rafael J. Wysocki
On Tuesday, 25 September 2007 22:55, Thomas Gleixner wrote: > On Tue, 2007-09-25 at 22:55 +0200, Rafael J. Wysocki wrote: > > I have reworked the patch a bit so that it applies on top of 2.6.23-rc8-mm1 > > and compiles (my version is attached). > > > > With this patch applied, the kernel boots cor

Re: [-mm patch] unexport sys_{open,read}

2007-09-25 Thread Dave Jones
On Mon, Sep 10, 2007 at 04:14:56PM +0100, Arjan van de Ven wrote: > Maybe I'm too pessimistic in my assumption that external open module > writers don't actually follow mainline closely; and maybe part of me > would love for them to follow it closer, so close that they would even > consider s

Re: [PATCH] Uninline kcalloc()

2007-09-25 Thread Christoph Lameter
On Mon, 24 Sep 2007, [EMAIL PROTECTED] wrote: > I think I looked at that, and it wasn't as easy as it looked, because there > were ugly corner cases for what __builtin_return_address() returned depending > on exactly what did or didn't get inlined. Basically, it's ugly stuff - if you > try to use

Re: [patch 3/5] Add samples subdir (updated)

2007-09-25 Thread Randy Dunlap
Mathieu Desnoyers wrote: Randy, since I did big changes to the patch, I removed your Signed-off-by. Tell me if you want me to add it back... (Is the From: still valid ?) Mathieu How about from: you and add Signed-off-by: Randy Dunlap <[EMAIL PROTECTED]> Thanks. Add samples subdir (updated)

Re: 2.6.23-rc4-mm1 and -rc6-mm1: boot failure on HP nx6325, related to clockevents

2007-09-25 Thread Thomas Gleixner
Rafael, On Tue, 2007-09-25 at 23:28 +0200, Rafael J. Wysocki wrote: > > I'm a bit confused by your earlier confirmation, that mainline w/o the > > -hrt patches boots fine, when you add "apicmaintimer" to the kernel > > command line. "apicmaintimer" stops the PIT like we do in -hrt and we > > just

Re: [PATCH 01/15] sysfs: kill SYSFS_FLAG_REMOVED

2007-09-25 Thread Greg KH
On Thu, Sep 20, 2007 at 04:05:09PM +0900, Tejun Heo wrote: > With sysfs_get_dentry() simplified, there's no user of > SYSFS_FLAG_REMOVED left. Kill it. > > Signed-off-by: Tejun Heo <[EMAIL PROTECTED]> > --- > This patch reverts driver/sysfs-kill-sysfs_flag_removed.patch and thus > can be removed

Re: [git] CFS-devel, latest code

2007-09-25 Thread Dmitry Adamushko
humm... I think, it'd be safer to have something like the following change in place. The thing is that __pick_next_entity() must never be called when first_fair(cfs_rq) == NULL. It wouldn't be a problem, should 'run_node' be the very first field of 'struct sched_entity' (and it's the second). Th

ACPI suspend/hibernate tests (was: ACPI power off regression in 2.6.23-rc8)

2007-09-25 Thread Frans Pop
On Tuesday 25 September 2007, Rafael J. Wysocki wrote: > On Tuesday, 25 September 2007 17:40, Linus Torvalds wrote: > > Len - why are you guys moving stuff into CONFIG_PM_SLEEP? I know you > > seem to think that absolutely *everybody* should always support suspend > > and hibernation, but the fact

Re: 2.6.23-rc8-mm1: somewhat broken forced HPET on ICH5

2007-09-25 Thread Thomas Gleixner
Alexey, On Wed, 2007-09-26 at 00:50 +0400, Alexey Dobriyan wrote: > ich-force-hpet-ich5-quirk-to-force-detect-enable.patch > is causing the following on Etch boot: > > [initscripts as usual] > Setting system clock: > [nothing happens for several seconds] > select to /dev/r

Re: [PATCH] UML - time build fix

2007-09-25 Thread Jeff Dike
On Tue, Sep 25, 2007 at 09:54:15PM +0200, Thomas Gleixner wrote: > On Tue, 2007-09-25 at 13:37 -0400, Jeff Dike wrote: > > Put back an implementation of timeval_to_ns in > > arch/um/os-Linux/time.c. tglx pointed out in his review of tickless > > support that there was a perfectly good implementati

Re: 2.6.23-rc8-mm1 - powerpc memory hotplug link failure

2007-09-25 Thread Badari Pulavarty
On Wed, 2007-09-26 at 01:30 +0530, Kamalesh Babulal wrote: > Hi Andrew, > > The 2.6.23-rc8-mm1 kernel linking fails on the powerpc (P5+) box > > CC init/version.o > LD init/built-in.o > LD .tmp_vmlinux1 > drivers/built-in.o: In function `memory_block_action': > /root/scrap/li

Re: 2.6.23-rc8-mm1

2007-09-25 Thread Badari Pulavarty
Hi Andy, One the patch you created in -mm is causing compile warning. Here is the fix. Please verify. Thanks, Badari arch/powerpc/mm/init_64.c: In function `vmemmap_populated': arch/powerpc/mm/init_64.c:211: warning: passing arg 1 of `vmemmap_section_start' makes pointer from integer without a

Re: ACPI suspend/hibernate tests (was: ACPI power off regression in 2.6.23-rc8)

2007-09-25 Thread Rafael J. Wysocki
On Tuesday, 25 September 2007 23:44, Frans Pop wrote: > On Tuesday 25 September 2007, Rafael J. Wysocki wrote: > > On Tuesday, 25 September 2007 17:40, Linus Torvalds wrote: > > > Len - why are you guys moving stuff into CONFIG_PM_SLEEP? I know you > > > seem to think that absolutely *everybody* sh

[GIT PATCH] ACPI patches for 2.6.23-rc8

2007-09-25 Thread Len Brown
Hi Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6.git release This will update the files shown below. thanks! -Len ps. individual patches are available on [EMAIL PROTECTED] and a consolidated plain patch is available here: ftp://ftp.kernel.org/pub/

Re: 2.6.23-rc7-mm1 AHCI ATA errors -- won't boot

2007-09-25 Thread Berck E. Nash
Jeff Garzik wrote: > Can you tell me something about this device? > > [ 49.045635] ata2.00: ATA-6: Config Disk, RGL10364, max UDMA/133 > [ 49.051677] ata2.00: 640 sectors, multi 1: LBA > [ 49.056321] ata2.00: configured for UDMA/133 > > It seems like it does not support the 'check power mo

Re: [PATCH] UML - time build fix

2007-09-25 Thread Thomas Gleixner
Jeff, On Tue, 2007-09-25 at 17:56 -0400, Jeff Dike wrote: > On Tue, Sep 25, 2007 at 09:54:15PM +0200, Thomas Gleixner wrote: > > On Tue, 2007-09-25 at 13:37 -0400, Jeff Dike wrote: > > > Put back an implementation of timeval_to_ns in > > > arch/um/os-Linux/time.c. tglx pointed out in his review o

Re: [PATCHSET 2/4] sysfs: allow suicide

2007-09-25 Thread Greg KH
On Thu, Sep 20, 2007 at 04:26:15PM +0900, Tejun Heo wrote: > Hello, all. > > This is the second patchset of four sysfs update patchset series[1] > and to be applied on top of the first patchset[1]. I have no specific objection to this patchset, but it seems that others still do, so I'll hold off

KPROBES: Instrumenting a function's call site

2007-09-25 Thread Avishay Traeger
Hello, I am trying to use kprobes to measure the latency of a function by instrumenting its call site. Basically, I find the call instruction, and insert a kprobe with a pre-handler and post-handler at that point. The pre-handler measures the latency (reads the TSC counter). The post-handler meas

Re: [PATCHSET 3/4] sysfs: divorce sysfs from kobject and driver model

2007-09-25 Thread Greg KH
On Thu, Sep 20, 2007 at 05:05:39PM +0900, Tejun Heo wrote: > Subject: [PATCHSET 3/4] sysfs: divorce sysfs from kobject and driver model > > Hello, all. > > This is the third patchset of four sysfs update patchset series[1] and > to be applied on top of the second patchset[2]. > > Currently, sysf

Re: 2.6.23-rc8-mm1 : wgt634u.c

2007-09-25 Thread trem
Hi I've applied the 2.6.23-rc8-mm1 patch, and I've got a new directory "mips" at root of my linux source. This directory only contain : "bcm947xx/wgt634u.c" I think that this directory "bcm947xx" should be added in "arch/mips" subdirectory. regards, trem - To unsubscribe from this list: send t

subsystem_unregister() breakage in -mm

2007-09-25 Thread Miklos Szeredi
I get "BUG: failure at mm/slab.c:591/page_get_cache()!" in latest -mm when removing the fuse module. This patch titled "kobject: remove the static array for the name" looks like it's responsible. Reverting it cures the problem. The root of the problem seems to be, that decl_subsys() initializes

Re: ACPI suspend/hibernate tests (was: ACPI power off regression in 2.6.23-rc8)

2007-09-25 Thread Frans Pop
On Wednesday 26 September 2007, Rafael J. Wysocki wrote: > > I compiled kernels (i386) for my laptop (Toshiba Satellite A40) with: > > A) PM + SUSPEND + HIBERNATION + ACPI > > B) PM + SUSPEND + ACPI > > C) PM + HIBERNATION + ACPI > > D) PM + ACPI > > E) PM + SUSPEND + HIBERNATION but _without_ ACPI

Re: 2.6.23-rc7-mm1 AHCI ATA errors -- won't boot

2007-09-25 Thread Robert Hancock
Jeff Garzik wrote: Berck E. Nash wrote: Jeff Garzik wrote: Once the blame has been squared fixed upon me :) you can use git-bisect to locate the precise change that broke your setup. Okay, here's the problem: 268fe6f9f15551be9abedd44a237392675d529d5 is first bad commit commit 268fe6f9f15551b

Re: 2.6.23-rc7-mm1 AHCI ATA errors -- won't boot

2007-09-25 Thread Berck E. Nash
Berck E. Nash wrote: > hdparm output attached. Whoops, it really is this time. /dev/sde: 427a 3fff 0010 e100 0258 003f 000e 5744 2d57 4d41 4b48 3131 3235 3131 3700 0003 4000 004a 3331 2e30 3846 3331 5744 4320 5744 3336 3047 442d 3030 464c 4132 2020 2020 2020 2020 2020 20

Re: [PATCHSET 4/4] sysfs: implement new features

2007-09-25 Thread Greg KH
On Thu, Sep 20, 2007 at 05:31:37PM +0900, Tejun Heo wrote: > Hello, all. > > This is the fourth patchset of four sysfs update patchset series[1] > and to be applied on top of the third patchset[2]. > > This patchset implements the following new features. > > * Notify pollers on file deactivation

Re: subsystem_unregister() breakage in -mm

2007-09-25 Thread Greg KH
On Wed, Sep 26, 2007 at 12:27:14AM +0200, Miklos Szeredi wrote: > I get "BUG: failure at mm/slab.c:591/page_get_cache()!" in latest -mm > when removing the fuse module. > > This patch titled "kobject: remove the static array for the name" > looks like it's responsible. Reverting it cures the prob

[patch] fix sys_mknodat breakage from r/o bind mounts

2007-09-25 Thread Miklos Szeredi
From: Miklos Szeredi <[EMAIL PROTECTED]> mknod("foo", 0644) returns EINVAL, even though it should succeed. The responsible patch is this: r-o-bind-mounts-sys_mknodat-elevate-write-count-for-vfs_mknod-create.patch Signed-off-by: Miklos Szeredi <[EMAIL PROTECTED]> --- Index: linux/fs/namei.c ===

Re: subsystem_unregister() breakage in -mm

2007-09-25 Thread Miklos Szeredi
> On Wed, Sep 26, 2007 at 12:27:14AM +0200, Miklos Szeredi wrote: > > I get "BUG: failure at mm/slab.c:591/page_get_cache()!" in latest -mm > > when removing the fuse module. > > > > This patch titled "kobject: remove the static array for the name" > > looks like it's responsible. Reverting it cu

Re: [patch] fix sys_mknodat breakage from r/o bind mounts

2007-09-25 Thread Dave Hansen
On Wed, 2007-09-26 at 00:58 +0200, Miklos Szeredi wrote: > From: Miklos Szeredi <[EMAIL PROTECTED]> > > mknod("foo", 0644) returns EINVAL, even though it should succeed. Just to clarify, this is for when we use mknod to create normal, non-device files, right? Your fix looks very correct to me.

missing mnt_drop_write() on open error

2007-09-25 Thread Miklos Szeredi
I get this at umount, if there was a failed open(): WARNING: at fs/namespace.c:586 __mntput() I think the problem is that may_open() calls mnt_want_write(), but if open doesn't succeed, mnt_drop_write() will not be called. Miklos - To unsubscribe from this list: send the line "unsubscribe linux-

Re: [PATCH 1/4] module: implement module_inhibit_unload()

2007-09-25 Thread Tejun Heo
Alan Stern wrote: > On Tue, 25 Sep 2007, Tejun Heo wrote: > >> Alan Stern wrote: The unloading can proceed once module_unload_inhibit_cnt reaches zero. An unloading thread only has to care about inhibition put in effect before unloading has started, so there's no need to check again

Re: [patch] fix sys_mknodat breakage from r/o bind mounts

2007-09-25 Thread Miklos Szeredi
> > From: Miklos Szeredi <[EMAIL PROTECTED]> > > > > mknod("foo", 0644) returns EINVAL, even though it should succeed. > > Just to clarify, this is for when we use mknod to create normal, > non-device files, right? Yes. > I'm curious, do you have a normal program that uses mknod(2) this way? >

Re: missing mnt_drop_write() on open error

2007-09-25 Thread Dave Hansen
On Wed, 2007-09-26 at 01:14 +0200, Miklos Szeredi wrote: > I get this at umount, if there was a failed open(): > > WARNING: at fs/namespace.c:586 __mntput() > > I think the problem is that may_open() calls mnt_want_write(), but if > open doesn't succeed, mnt_drop_write() will not be called. I se

[PATCH -mm] swap: fix function declaration

2007-09-25 Thread Randy Dunlap
From: Randy Dunlap <[EMAIL PROTECTED]> Fix function declaration: mm/swap.c:130:22: warning: non-ANSI function declaration of function 'move_tail_pages' Signed-off-by: Randy Dunlap <[EMAIL PROTECTED]> --- mm/swap.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-2.6.23-rc8-mm

[PATCH -mm] ecryptfs: fix printk format warning

2007-09-25 Thread Randy Dunlap
From: Randy Dunlap <[EMAIL PROTECTED]> Fix printk format warning: fs/ecryptfs/crypto.c:1443: warning: format '%d' expects type 'int', but argument 2 has type 'size_t' Signed-off-by: Randy Dunlap <[EMAIL PROTECTED]> --- fs/ecryptfs/crypto.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-

Re: [RFC Patch] Trace - Samples

2007-09-25 Thread Mathieu Desnoyers
* Randy Dunlap ([EMAIL PROTECTED]) wrote: > On Tue, 25 Sep 2007 13:35:47 -0700 David J. Wilder wrote: > > > This patch Moves the trace example into the new samples/ infrastructure > > > > Requires: [patch 3/5] Add samples subdir > > (http://lkml.org/lkml/2007/9/25/157) > > and create samples/Ma

Re: [RFC Patch] Trace - Samples

2007-09-25 Thread Randy Dunlap
Mathieu Desnoyers wrote: * Randy Dunlap ([EMAIL PROTECTED]) wrote: On Tue, 25 Sep 2007 13:35:47 -0700 David J. Wilder wrote: This patch Moves the trace example into the new samples/ infrastructure Requires: [patch 3/5] Add samples subdir (http://lkml.org/lkml/2007/9/25/157) and create sample

Re: [PATCH 1/4] module: implement module_inhibit_unload()

2007-09-25 Thread Rusty Russell
On Wed, 2007-09-26 at 08:15 +0900, Tejun Heo wrote: > I have no problem with changing the condition check to loop but it would > be great if someone can point me to a code where this unexpected wake up > is used. This is one of those areas where we're conservative. Historically there have been ra

[00/17] Virtual Compound Page Support V1

2007-09-25 Thread Christoph Lameter
RFC->V1 - Support for all compound functions for virtual compound pages (including the compound_nth_page() necessary for LBS mmap support) - Fix various bugs - Fix i386 build Currently there is a strong tendency to avoid larger page allocations in the kernel because of past fragmentation issues

[01/17] Vmalloc: Move vmalloc_to_page to mm/vmalloc.

2007-09-25 Thread Christoph Lameter
We already have page table manipulation for vmalloc in vmalloc.c. Move the vmalloc_to_page() function there as well. Move the definitions for vmalloc related functions in mm.h to before the functions dealing with compound pages because they will soon need to use them. Signed-off-by: Christoph Lam

[02/17] vmalloc: add const

2007-09-25 Thread Christoph Lameter
Make vmalloc functions work the same way as kfree() and friends that take a const void * argument. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- include/linux/mm.h |4 ++-- include/linux/vmalloc.h |6 +++--- mm/vmalloc.c| 16 3 files changed

[03/17] i386: Resolve dependency of asm-i386/pgtable.h on highmem.h

2007-09-25 Thread Christoph Lameter
pgtable.h does not include highmem.h but uses various constants from highmem.h. We cannot include highmem.h because highmem.h will in turn include many other include files that also depend on pgtable.h So move the definitions from highmem.h into pgtable.h. Signed-off-by: Christoph Lameter <[EMAIL

[04/17] is_vmalloc_addr(): Check if an address is within the vmalloc boundaries

2007-09-25 Thread Christoph Lameter
is_vmalloc_addr() is used in a couple of places. Add a version to vmalloc.h and replace the other checks. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- drivers/net/cxgb3/cxgb3_offload.c |4 +--- fs/ntfs/malloc.h |3 +-- fs/proc/kcore.c |2

[05/17] vmalloc: clean up page array indexing

2007-09-25 Thread Christoph Lameter
The page array is repeatedly indexed both in vunmap and vmalloc_area_node(). Add a temporary variable to make it easier to read (and easier to patch later). Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- mm/vmalloc.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletion

[06/17] vunmap: return page array passed on vmap()

2007-09-25 Thread Christoph Lameter
Make vunmap return the page array that was used at vmap. This is useful if one has no structures to track the page array but simply stores the virtual address somewhere. The disposition of the page array can be decided upon after vunmap. vfree() may now also be used instead of vunmap which will rel

[07/17] vmalloc_address(): Determine vmalloc address from page struct

2007-09-25 Thread Christoph Lameter
Sometimes we need to figure out which vmalloc address is in use for a certain page struct. There is no easy way to figure out the vmalloc address from the page struct. So simply search through the kernel page tables to find the address. This is a fairly expensive process. Use sparingly (or provide

[11/17] GFP_VFALLBACK for zone wait table.

2007-09-25 Thread Christoph Lameter
Currently vmalloc is used for the zone wait table possibly generating the need to generate lots of TLBs to access the tables. We can now use GFP_VFALLBACK to attempt the use of a physically contiguous page that can then use the large kernel TLBs. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]

[16/17] Allow virtual fallback for buffer_heads

2007-09-25 Thread Christoph Lameter
This is in particular useful for large I/Os because it will allow > 100 allocs from the SLUB fast path without having to go to the page allocator. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- fs/buffer.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: linux-2.6/fs/

[17/17] Allow virtual fallback for dentries

2007-09-25 Thread Christoph Lameter
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- fs/dcache.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: linux-2.6/fs/dcache.c === --- linux-2.6.orig/fs/dcache.c 2007-09-24 16:47:43.0 -0700 +++

[15/17] SLUB: Support virtual fallback via SLAB_VFALLBACK

2007-09-25 Thread Christoph Lameter
SLAB_VFALLBACK can be specified for selected slab caches. If fallback is available then the conservative settings for higher order allocations are overridden. We then request an order that can accomodate at mininum 100 objects. The size of an individual slab allocation is allowed to reach up to 256

[13/17] Virtual compound page freeing in interrupt context

2007-09-25 Thread Christoph Lameter
If we are in an interrupt context then simply defer the free via a workqueue. Removing a virtual mappping *must* be done with interrupts enabled since tlb_xx functions are called that rely on interrupts for processor to processor communications. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]

[12/17] Virtual Compound page allocation from interrupt context.

2007-09-25 Thread Christoph Lameter
In an interrupt context we cannot wait for the vmlist_lock in __get_vm_area_node(). So use a trylock instead. If the trylock fails then the atomic allocation will fail and subsequently be retried. This only works because the flush_cache_vunmap in use for allocation is never performing any IPIs in

[09/17] VFALLBACK: Debugging aid

2007-09-25 Thread Christoph Lameter
Virtual fallbacks are rare and thus subtle bugs may creep in if we do not test the fallbacks. CONFIG_VFALLBACK_ALWAYS makes all GFP_VFALLBACK allocations fall back to virtual mapping. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- lib/Kconfig.debug | 11 +++ mm/page_alloc.c

[10/17] Use GFP_VFALLBACK for sparsemem.

2007-09-25 Thread Christoph Lameter
Sparsemem currently attempts first to do a physically contiguous mapping and then falls back to vmalloc. The same thing can now be accomplished using GFP_VFALLBACK. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- mm/sparse.c | 23 +++ 1 file changed, 3 insertions(+

[14/17] Allow bit_waitqueue to wait on a bit in a vmalloc area

2007-09-25 Thread Christoph Lameter
If bit waitqueue is passed a virtual address then it must use vmalloc_to_page instead of virt_to_page to get to the page struct. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- kernel/wait.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6/kernel/wait.c ===

[08/17] GFP_VFALLBACK: Allow fallback of compound pages to virtual mappings

2007-09-25 Thread Christoph Lameter
Add a new gfp flag __GFP_VFALLBACK If specified during a higher order allocation then the system will fall back to vmap and attempt to create a virtually contiguous area instead of a physically contiguous area. In many cases the virtually contiguous area can stand in for the physically co

Re: Chroot bug

2007-09-25 Thread David Newall
Alan Cox wrote: On Wed, 26 Sep 2007 01:05:07 +0930 David Newall <[EMAIL PROTECTED]> wrote: Alan Cox wrote: Marek's loading dynamic libraries, it seems clear that the prime purpose of chroot is to aid security. Being able to cd your way out is handy Does it - I can't find a

Re: vm86.c audit_syscall_exit() call trashes registers

2007-09-25 Thread William Cattey
Andi, Sorry to have taken so long to take another step with this problem. Once my customers had a work-around, other priorities crowded out this project. Today Chuck and I did a little more work. We'd heard that a more recent kernel alleged to fix this stuff. Doing some digging, we ca

[PATCH 0/4] allow drivers to flush in-flight DMA

2007-09-25 Thread akepner
This is a followup to http://lkml.org/lkml/2007/8/24/280 Despite Grant's desire for a more elegant solution, there's not much new here. I moved the API change from pci.h to dma-mapping.h and removed the pci_ prefix from the name. Problem Description --- On Altix, DMA may be r

[PATCH 1/4] dma: add dma_flags_set_dmaflush() to dma interface

2007-09-25 Thread akepner
Introduce the dma_flags_set_dmaflush() interface and give it a default no-op implementation. Signed-off-by: Arthur Kepner <[EMAIL PROTECTED]> -- dma-mapping.h |7 +++ 1 file changed, 7 insertions(+) diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index 2dc21cb..

[PATCH 2/4] dma: redefine dma_flags_set_dmaflush() for sn-ia64

2007-09-25 Thread akepner
define dma_flags_set_dmaflush() for sn-ia64 - it "borrows" bits from the direction argument (renamed "flags") to the dma_map_* routines to pass an additional "dmaflush" attribute. Also define routines to retrieve the original direction and attribute from "flags". Signed-off-by: Arthur Kepner <[EM

[PATCH 3/4] dma: document dma_flags_set_dmaflush()

2007-09-25 Thread akepner
Document dma_flags_set_dmaflush(). Signed-off-by: Arthur Kepner <[EMAIL PROTECTED]> -- DMA-mapping.txt | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/Documentation/DMA-mapping.txt b/Documentation/DMA-mapping.txt index e07f253..31e3234 100644 --- a

[PATCH 4/4] mthca: allow setting "dmaflush" attribute on user-allocated memory

2007-09-25 Thread akepner
Use the dma_flags_set_dmaflush() interface to allow a "dmaflush" attribute to be associated with user-allocated memory. (For now, it's only implemented for mthca.) Signed-off-by: Arthur Kepner <[EMAIL PROTECTED]> -- drivers/infiniband/core/umem.c |7 +-- drivers/infiniban

Re: Chroot bug

2007-09-25 Thread Alan Cox
> Good call. Though I suppose, since it's used 24x7 to aid security on > countless production servers, that security dwarfs testing. Still, > debugging, yes that's valid. > > I don't suppose it makes and difference; whatever the purpose, a chroot > that doesn't change the root is buggy. It d

Re: sys_chroot+sys_fchdir Fix

2007-09-25 Thread Al Viro
On Tue, Sep 25, 2007 at 04:53:00PM -0400, Phillip Susi wrote: > Alan Cox wrote: > >On Fri, 21 Sep 2007 13:39:34 -0400 > >Phillip Susi <[EMAIL PROTECTED]> wrote: > > > >>David Newall wrote: > >>>* In particular, the superuser can escape from a =91chroot jail=92 by d= > >>>oing=20 > >>>=91mkdir foo;

Re: subsystem_unregister() breakage in -mm

2007-09-25 Thread Greg KH
On Wed, Sep 26, 2007 at 01:02:37AM +0200, Miklos Szeredi wrote: > > On Wed, Sep 26, 2007 at 12:27:14AM +0200, Miklos Szeredi wrote: > > > I get "BUG: failure at mm/slab.c:591/page_get_cache()!" in latest -mm > > > when removing the fuse module. > > > > > > This patch titled "kobject: remove the st

[PATCH] usbvision-video: buggered method tables

2007-09-25 Thread Al Viro
duplicated .mmap in one, .vidioc_s_audio misspelled as .vidioc_g_audio in other Signed-off-by: Al Viro <[EMAIL PROTECTED]> --- drivers/media/video/usbvision/usbvision-video.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/video/usbvision/usbvision-vide

[PATCH] mv643xx_eth: duplicate methods in initializer

2007-09-25 Thread Al Viro
Signed-off-by: Al Viro <[EMAIL PROTECTED]> --- drivers/net/mv643xx_eth.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c index 6a117e9..456d1e1 100644 --- a/drivers/net/mv643xx_eth.c +++ b/drivers/net/mv643xx_eth.c @@

<    1   2   3   4   5   6   >