Re: O_DIRECT question

2007-01-10 Thread Aubrey
On 1/11/07, Nick Piggin <[EMAIL PROTECTED]> wrote: Andrew Morton wrote: > On Thu, 11 Jan 2007 14:45:12 +0800 > Aubrey <[EMAIL PROTECTED]> wrote: > > >>>In the interim you could do the old "echo 3 > /proc/sys/vm/drop_caches" >>>thing, but that's terribly crude - drop_caches is really only for

[PATCH 2.6.19.y] ieee1394: sbp2: fix probing of some DVD-ROM/RWs

2007-01-10 Thread Stefan Richter
Since commit 98e238cd42be6c0852da519303cf0182690f8d9f in Linux 2.6.19, "ieee1394: sbp2: don't prefer MODE SENSE 10", some FireWire DVD-ROMs and DVD-RWs were mistaken as CD-ROM because sr_mod now sent MODE SENSE 6. The MMC command set includes only MODE SENSE 10.

Re: [linux-usb-devel] 2.6.20-rc4: null pointer deref in khubd

2007-01-10 Thread Oliver Neukum
Am Mittwoch, 10. Januar 2007 23:35 schrieb Alan Stern: > > Apparently here: drivers/base/core.c: > > > > void device_del(struct device * dev) > > { > >   struct device * parent = dev->parent; > >   struct class_interface *class_intf; > > > >   if (parent) > >   

Re: mprotect abuse in slim

2007-01-10 Thread Pekka Enberg
On 1/10/07, Serge E. Hallyn <[EMAIL PROTECTED]> wrote: But since it looks like you just munmap the region now, shouldn't a subsequent munmap by the app just return -EINVAL? that seems appropriate to me. Applications don't know about revoke and neither should they. Therefore close(2) and

2.6.20-rc4-git4, V4L - possible circular locking dependency detected

2007-01-10 Thread Rui Saraiva
When I run tvtime (or any other v4l userland application) I got this. Best regards. --- === [ INFO: possible circular locking dependency detected ] 2.6.20-rc4-git4 #1 --- tvtime/1356 is

Re: [kvm-devel] [RFC] Stable kvm userspace interface

2007-01-10 Thread Arnd Bergmann
On Tuesday 09 January 2007 14:47, Jeff Garzik wrote: > Can we please avoid adding a ton of new ioctls?  ioctls inevitably > require 64-bit compat code for certain architectures, whereas > sysfs/procfs does not. For performance reasons, an ascii string based interface is not desireable here,

Re: [kvm-devel] [RFC] Stable kvm userspace interface

2007-01-10 Thread Arnd Bergmann
On Tuesday 09 January 2007 14:37, Avi Kivity wrote: > struct kvm_vcpu_area { >     u32 vcpu_area_size; >     u32 exit_reason; > >     sigset_t sigmask;  // for use during vcpu execution Since Jeff brought up the point of 32 bit compatibility: When this structure is shared between 64 bit kernel

Re: [PATCH 2.6.20-rc4 1/4] futex priority based wakeup

2007-01-10 Thread Ulrich Drepper
Pierre Peiffer wrote: > Here are the average latencies after 5000 measures. > [...] Use something more realistic. I suggest using the Volano benchmark under your favorite JVM. I found it to be quite representative and you get a nice number you can show. -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧

Re: O_DIRECT question

2007-01-10 Thread Nick Piggin
Andrew Morton wrote: On Thu, 11 Jan 2007 14:45:12 +0800 Aubrey <[EMAIL PROTECTED]> wrote: In the interim you could do the old "echo 3 > /proc/sys/vm/drop_caches" thing, but that's terribly crude - drop_caches is really only for debugging and benchmarking. Yes. This method can drop caches,

x86_64: up to 255 or 256 CPUs?

2007-01-10 Thread Adrian Bunk
Quoting arch/x86_64/Kconfig: <-- snip --> ... config NR_CPUS int "Maximum number of CPUs (2-256)" range 2 255 ... <-- snip --> cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many

Re: O_DIRECT question

2007-01-10 Thread Aubrey
On 1/11/07, Alexander Shishkin <[EMAIL PROTECTED]> wrote: On 1/11/07, Aubrey <[EMAIL PROTECTED]> wrote: > Firstly I want to say I'm working on no-mmu arch and uClinux. > After much of file operations VFS cache eat up all of the memory. > At this time, if an application request memory which order

Re: O_DIRECT question

2007-01-10 Thread Andrew Morton
On Thu, 11 Jan 2007 14:45:12 +0800 Aubrey <[EMAIL PROTECTED]> wrote: > > > > In the interim you could do the old "echo 3 > /proc/sys/vm/drop_caches" > > thing, but that's terribly crude - drop_caches is really only for debugging > > and benchmarking. > > > Yes. This method can drop caches, but

Re: [PATCH 2.6.16.29 1/1] MM: enhance Linux swap subsystem

2007-01-10 Thread Rik van Riel
yunfeng zhang wrote: My patch is based on my new idea to Linux swap subsystem, you can find more in Documentation/vm_pps.txt which isn't only patch illustration but also file changelog. In brief, SwapDaemon should scan and reclaim pages on UserSpace::vmalist other than current

Re: O_DIRECT question

2007-01-10 Thread Aubrey
On 1/11/07, Andrew Morton <[EMAIL PROTECTED]> wrote: On Thu, 11 Jan 2007 13:50:53 +0800 Aubrey <[EMAIL PROTECTED]> wrote: > Firstly I want to say I'm working on no-mmu arch and uClinux. > After much of file operations VFS cache eat up all of the memory. > At this time, if an application request

Re: 2.6.20-rc4: known unfixed regressions (v3)

2007-01-10 Thread Nick Piggin
Adrian Bunk wrote: Subject: BUG: at fs/inotify.c:172 set_dentry_child_flags() References : http://bugzilla.kernel.org/show_bug.cgi?id=7785 Submitter : Cijoml Cijomlovic Cijomlov <[EMAIL PROTECTED]> Handled-By : John McCutchan <[EMAIL PROTECTED]> Status : problem is being debugged I'm

Re: O_DIRECT question

2007-01-10 Thread Alexander Shishkin
On 1/11/07, Aubrey <[EMAIL PROTECTED]> wrote: Firstly I want to say I'm working on no-mmu arch and uClinux. After much of file operations VFS cache eat up all of the memory. At this time, if an application request memory which order > 3, the kernel will report failure. uClinux use a memory

Re: O_DIRECT question

2007-01-10 Thread Nick Piggin
Linus Torvalds wrote: On Wed, 10 Jan 2007, Linus Torvalds wrote: So don't use O_DIRECT. Use things like madvise() and posix_fadvise() instead. Side note: the only reason O_DIRECT exists is because database people are too used to it, because other OS's haven't had enough taste to tell

[PATCH 2.6.19 1/1] input: Atlas button driver

2007-01-10 Thread jayakumar . acpi
This patch adds support for the buttons on the Atlas wallmount touchscreen. Signed-off-by: Jaya Kumar <[EMAIL PROTECTED]> --- Kconfig | 10 +++ Makefile |1 atlas_btns.c | 170 +++ 3 files changed, 181 insertions(+) ---

Re: O_DIRECT question

2007-01-10 Thread Andrew Morton
On Thu, 11 Jan 2007 13:50:53 +0800 Aubrey <[EMAIL PROTECTED]> wrote: > Firstly I want to say I'm working on no-mmu arch and uClinux. > After much of file operations VFS cache eat up all of the memory. > At this time, if an application request memory which order > 3, the > kernel will report

Re: O_DIRECT question

2007-01-10 Thread Aubrey
Firstly I want to say I'm working on no-mmu arch and uClinux. After much of file operations VFS cache eat up all of the memory. At this time, if an application request memory which order > 3, the kernel will report failure. uClinux use a memory mapped MTD driver to store rootfs, of course it's

2.6.20-rc4: known regressions with patches (v3)

2007-01-10 Thread Adrian Bunk
This email lists some known regressions in 2.6.20-rc4 compared to 2.6.19 with patches available. If you find your name in the Cc header, you are either submitter of one of the bugs, maintainer of an affectected subsystem or driver, a patch of you caused a breakage or I'm considering you in any

2.6.20-rc4: known unfixed regressions (v3)

2007-01-10 Thread Adrian Bunk
This email lists some known regressions in 2.6.20-rc4 compared to 2.6.19 that are not yet fixed in Linus' tree. If you find your name in the Cc header, you are either submitter of one of the bugs, maintainer of an affectected subsystem or driver, a patch of you caused a breakage or I'm

Re: [PATCHSET 1][PATCH 0/6] Filesystem AIO read/write

2007-01-10 Thread Andrew Morton
On Thu, 11 Jan 2007 08:43:36 +0530 Suparna Bhattacharya <[EMAIL PROTECTED]> wrote: > > The s/lock_page_slow/lock_page_blocking/ got lost. I redid it. > > I thought the lock_page_blocking was an alternative you had suggested > to the __lock_page vs lock_page_async discussion which got resolved

Re: O_DIRECT question

2007-01-10 Thread Andrew Morton
On Thu, 11 Jan 2007 10:57:06 +0800 Aubrey <[EMAIL PROTECTED]> wrote: > Hi all, > > Opening file with O_DIRECT flag can do the un-buffered read/write access. > So if I need un-buffered access, I have to change all of my > applications to add this flag. What's more, Some scripts like "cp > oldfile

Re: PATCH - x86-64 signed-compare bug, was Re: select() setting ERESTARTNOHAND (514).

2007-01-10 Thread Sean Reifschneider
On Thu, Jan 11, 2007 at 12:02:53PM +1100, Neil Brown wrote: >On Thursday January 11, [EMAIL PROTECTED] wrote: >> Normally it should be only visible in strace. Did you see it without >> strace? > >No, only in strace. I am absolutely seeing it outside of strace. It is showing up as an errno to the

Re: "svc: unknown version (3)" when CONFIG_NFSD_V4=y

2007-01-10 Thread Neil Brown
On Wednesday January 10, [EMAIL PROTECTED] wrote: > > root ~# mount localhost:/suse /mnt > [ 132.678204] svc: unknown version (3 for prog 100227, nfsd) > > I've confirmed that 2.6.20-rc2-mm1, 2.6.20-rc3-mm1, 2.6.19-rc6-mm1 all > have this warning, while 2.6.17-2-amd64 is good. Thanks. That

[PATCH 2.6.16.29 1/1] MM: enhance Linux swap subsystem

2007-01-10 Thread yunfeng zhang
My patch is based on my new idea to Linux swap subsystem, you can find more in Documentation/vm_pps.txt which isn't only patch illustration but also file changelog. In brief, SwapDaemon should scan and reclaim pages on UserSpace::vmalist other than current zone::active/inactive. The change will

Re: xfslogd-spinlock bug?

2007-01-10 Thread David Chinner
On Wed, Jan 10, 2007 at 06:18:08PM +0100, Janos Haar wrote: > From: "David Chinner" <[EMAIL PROTECTED]> > > Different corruption in RBX here. Looks like semi-random garbage there. > > I wonder - what's the mac and ip address(es) of your machine and nbd > > servers? > > dy-base: no matches. Oh

Re: O_DIRECT question

2007-01-10 Thread Linus Torvalds
On Wed, 10 Jan 2007, Linus Torvalds wrote: > > So don't use O_DIRECT. Use things like madvise() and posix_fadvise() > instead. Side note: the only reason O_DIRECT exists is because database people are too used to it, because other OS's haven't had enough taste to tell them to do it right,

Re: [PATCHSET 1][PATCH 0/6] Filesystem AIO read/write

2007-01-10 Thread Suparna Bhattacharya
On Wed, Jan 10, 2007 at 05:08:29PM -0800, Andrew Morton wrote: > On Wed, 10 Jan 2007 11:14:19 +0530 > Suparna Bhattacharya <[EMAIL PROTECTED]> wrote: > > > On Thu, Jan 04, 2007 at 09:02:42AM -0800, Andrew Morton wrote: > > > On Thu, 4 Jan 2007 10:26:21 +0530 > > > Suparna Bhattacharya <[EMAIL

Re: O_DIRECT question

2007-01-10 Thread Linus Torvalds
On Thu, 11 Jan 2007, Aubrey wrote: > > Now, my question is, is there a existing way to mount a filesystem > with O_DIRECT flag? so that I don't need to change anything in my > system. If there is no option so far, What is the right way to achieve > my purpose? The right way to do it is to just

Re: [REGRESSION] 2.6.19/2.6.20-rc3 buffered write slowdown

2007-01-10 Thread David Chinner
On Wed, Jan 10, 2007 at 05:40:26PM -0800, Christoph Lameter wrote: > On Thu, 11 Jan 2007, David Chinner wrote: > > > On Wed, Jan 10, 2007 at 04:43:36PM -0800, Christoph Lameter wrote: > > > You are comparing a debian 2.6.18 standard kernel with your tuned version > > > of 2.6.20-rc3. There may

[PATCH] PCI mmconfig support for Intel 915 bridges

2007-01-10 Thread Jesse Barnes
This is a resend of the patch I sent earlier to Oliver. It adds support for Intel 915 bridge chips to the new PCI MMConfig detection code. Tested and works on my sole 915 based platform (a Toshiba laptop). I added register masking per Oliver's suggestion, and moved the __init qualifier to after

O_DIRECT question

2007-01-10 Thread Aubrey
Hi all, Opening file with O_DIRECT flag can do the un-buffered read/write access. So if I need un-buffered access, I have to change all of my applications to add this flag. What's more, Some scripts like "cp oldfile newfile" still use pagecache and buffer. Now, my question is, is there a

Re: [patch -mm] slab: use CPU_LOCK_[ACQUIRE|RELEASE]

2007-01-10 Thread Srivatsa Vaddagiri
On Wed, Jan 10, 2007 at 10:20:28AM -0800, Christoph Lameter wrote: > I have got a bad feeling about upcoming deadlock problems when looking at > the mutex_lock / unlock code in cpuup_callback in slab.c. Branches > that just obtain a lock or release a lock? I hope there is some > control of what

Re: DMA problems in ide-scsi

2007-01-10 Thread Bartlomiej Zolnierkiewicz
Hi, On 1/11/07, meaty biscuit <[EMAIL PROTECTED]> wrote: I know there are lots of people that are glad to be done with ide-scsi, but I'm hoping there is someone out there that has some experience with this driver that my be able to help. I would happily switch modules and start using ide-cd,

Re: [REGRESSION] 2.6.19/2.6.20-rc3 buffered write slowdown

2007-01-10 Thread Christoph Lameter
On Thu, 11 Jan 2007, David Chinner wrote: > On Wed, Jan 10, 2007 at 04:43:36PM -0800, Christoph Lameter wrote: > > You are comparing a debian 2.6.18 standard kernel with your tuned version > > of 2.6.20-rc3. There may be a lot of differences. Could you get us the > > config? Or use the same

Re: PATCH - x86-64 signed-compare bug, was Re: select() setting ERESTARTNOHAND (514).

2007-01-10 Thread Andi Kleen
On Thursday 11 January 2007 02:02, Neil Brown wrote: > On Thursday January 11, [EMAIL PROTECTED] wrote: > > > Just a 'me too' at this point. > > > The X server on my shiny new notebook (Core 2 Duo) occasionally dies > > > with 'select' repeatedly returning ERESTARTNOHAND. It is most > > >

[PATCH 0/4] atl1: Attansic L1 ethernet driver

2007-01-10 Thread Jay Cliburn
This is the latest submittal of the patchset providing support for the Attansic L1 gigabit ethernet adapter. This patchset is built against kernel version 2.6.20-rc4 current git as of 20070109. The monolithic version of this patchset may be found at:

[PATCH 4/4] atl1: Ancillary C files for Attansic L1 driver

2007-01-10 Thread Jay Cliburn
From: Jay Cliburn <[EMAIL PROTECTED]> From: Chris Snook <[EMAIL PROTECTED]> This patch contains auxiliary C files for the Attansic L1 gigabit ethernet adapter driver. Signed-off-by: Jay Cliburn <[EMAIL PROTECTED]> Signed-off-by: Chris Snook <[EMAIL PROTECTED]> --- atl1_ethtool.c | 528

[PATCH 1/4] atl1: Build files for Attansic L1 driver

2007-01-10 Thread Jay Cliburn
From: Jay Cliburn <[EMAIL PROTECTED]> From: Chris Snook <[EMAIL PROTECTED]> This patch contains the build files for the Attansic L1 gigabit ethernet adapter driver. Signed-off-by: Jay Cliburn <[EMAIL PROTECTED]> Signed-off-by: Chris Snook <[EMAIL PROTECTED]> --- Kconfig | 11

[PATCH 2/4] atl1: Header files for Attansic L1 driver

2007-01-10 Thread Jay Cliburn
From: Jay Cliburn <[EMAIL PROTECTED]> From: Chris Snook <[EMAIL PROTECTED]> This patch contains the header files needed by the Attansic L1 gigabit ethernet adapter driver. Signed-off-by: Jay Cliburn <[EMAIL PROTECTED]> Signed-off-by: Chris Snook <[EMAIL PROTECTED]> --- atl1.h| 266

Re: [REGRESSION] 2.6.19/2.6.20-rc3 buffered write slowdown

2007-01-10 Thread David Chinner
On Thu, Jan 11, 2007 at 12:08:10PM +1100, Nick Piggin wrote: > David Chinner wrote: > >Sure, but that doesn't really show the how erratic the per-filesystem > >throughput is because the test I'm running is PCI-X bus limited in > >it's throughput at about 750MB/s. Each dm device is capable of about

[PATCH] ext2: skip pages past number of blocks in ext2_find_entry (CVE-2006-6054)

2007-01-10 Thread Chris Wright
This one looks like it fell through the cracks, it's in 2.6.19.2 but not upstream yet. thanks, -chris -- Subject: [PATCH] ext2: skip pages past number of blocks in ext2_find_entry (CVE-2006-6054) From: Eric Sandeen <[EMAIL PROTECTED]> This one was pointed out on the MOKB site:

Re: select() setting ERESTARTNOHAND (514).

2007-01-10 Thread David Miller
From: Sean Reifschneider <[EMAIL PROTECTED]> Date: Wed, 10 Jan 2007 18:04:29 -0700 > On Wed, Jan 10, 2007 at 04:27:47PM -0800, David Miller wrote: > >It gets caught by the return into userspace code. > > Ok, so somehow it is leaking. I have a system in the lab that is the same > hardware as

Re: [REGRESSION] 2.6.19/2.6.20-rc3 buffered write slowdown

2007-01-10 Thread David Chinner
On Thu, Jan 11, 2007 at 10:08:55AM +1100, David Chinner wrote: > On Wed, Jan 10, 2007 at 03:04:15PM -0800, Christoph Lameter wrote: > > On Thu, 11 Jan 2007, David Chinner wrote: > > > > > The performance and smoothness is fully restored on 2.6.20-rc3 > > > by setting dirty_ratio down to 10 (from

Re: [PATCHSET 1][PATCH 0/6] Filesystem AIO read/write

2007-01-10 Thread Andrew Morton
On Wed, 10 Jan 2007 11:14:19 +0530 Suparna Bhattacharya <[EMAIL PROTECTED]> wrote: > On Thu, Jan 04, 2007 at 09:02:42AM -0800, Andrew Morton wrote: > > On Thu, 4 Jan 2007 10:26:21 +0530 > > Suparna Bhattacharya <[EMAIL PROTECTED]> wrote: > > > > > On Wed, Jan 03, 2007 at 02:15:56PM -0800, Andrew

Re: [REGRESSION] 2.6.19/2.6.20-rc3 buffered write slowdown

2007-01-10 Thread Nick Piggin
David Chinner wrote: On Thu, Jan 11, 2007 at 10:13:55AM +1100, Nick Piggin wrote: David Chinner wrote: On Wed, Jan 10, 2007 at 03:04:15PM -0800, Christoph Lameter wrote: On Thu, 11 Jan 2007, David Chinner wrote: The performance and smoothness is fully restored on 2.6.20-rc3 by setting

Re: [REGRESSION] 2.6.19/2.6.20-rc3 buffered write slowdown

2007-01-10 Thread David Chinner
On Wed, Jan 10, 2007 at 04:43:36PM -0800, Christoph Lameter wrote: > You are comparing a debian 2.6.18 standard kernel with your tuned version > of 2.6.20-rc3. There may be a lot of differences. Could you get us the > config? Or use the same config file and build 2.6.20/18 the same way. I took

Re: select() setting ERESTARTNOHAND (514).

2007-01-10 Thread Sean Reifschneider
On Wed, Jan 10, 2007 at 04:27:47PM -0800, David Miller wrote: >It gets caught by the return into userspace code. Ok, so somehow it is leaking. I have a system in the lab that is the same hardware as production, but it currently has no, you know, hard drives in it, so some assembly is required.

Re: PATCH - x86-64 signed-compare bug, was Re: select() setting ERESTARTNOHAND (514).

2007-01-10 Thread Neil Brown
On Thursday January 11, [EMAIL PROTECTED] wrote: > > Just a 'me too' at this point. > > The X server on my shiny new notebook (Core 2 Duo) occasionally dies > > with 'select' repeatedly returning ERESTARTNOHAND. It is most > > annoying! > > Normally it should be only visible in strace. Did you

Re: 2.6.20-rc4: known unfixed regressions (v2)

2007-01-10 Thread Nick Piggin
Vladimir V. Saveliev wrote: Hello On Tuesday 09 January 2007 21:30, Linus Torvalds wrote: On Tue, 9 Jan 2007, Malte Schröder wrote: So something interesting is definitely going on, but I don't know exactly what it is. Why does reiserfs do the truncate as part of a close, if the same inode

Fwd: DMA problems in ide-scsi

2007-01-10 Thread meaty biscuit
I know there are lots of people that are glad to be done with ide-scsi, but I'm hoping there is someone out there that has some experience with this driver that my be able to help. I would happily switch modules and start using ide-cd, but I have a few pieces of software that rely on ide-scsi to

Re: Regression in kernel linux-2.6.20-rc1/2: Problems with poweroff

2007-01-10 Thread Berthold Cogel
Alexey Starikovskiy schrieb: > Berthold Cogel wrote: >> Alexey Starikovskiy schrieb: >> >>> Berthold Cogel wrote: >>> Alexey Starikovskiy schrieb: >> Hello Alex, >> >> I still get the same diffs. Except the yenta part of course. And the >> system

Re: PATCH - x86-64 signed-compare bug, was Re: select() setting ERESTARTNOHAND (514).

2007-01-10 Thread David Miller
From: Neil Brown <[EMAIL PROTECTED]> Date: Thu, 11 Jan 2007 11:37:05 +1100 > On x86-64, regs->rax is "unsigned long", so the following is > needed > > I haven't tried it yet. Doesn't type promotion take care of that? Did you verify that assember? I checked the assembler on sparc64 for

Re: [REGRESSION] 2.6.19/2.6.20-rc3 buffered write slowdown

2007-01-10 Thread Christoph Lameter
You are comparing a debian 2.6.18 standard kernel with your tuned version of 2.6.20-rc3. There may be a lot of differences. Could you get us the config? Or use the same config file and build 2.6.20/18 the same way. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: PATCH - x86-64 signed-compare bug, was Re: select() setting ERESTARTNOHAND (514).

2007-01-10 Thread Andi Kleen
On Thursday 11 January 2007 01:37, Neil Brown wrote: > On Wednesday January 10, [EMAIL PROTECTED] wrote: > > > > In looking at the Linux code for ERESTARTNOHAND, I see that > > include/linux/errno.h says this errno should never make it to the user. > > However, in this instance we ARE seeing it.

PATCH - x86-64 signed-compare bug, was Re: select() setting ERESTARTNOHAND (514).

2007-01-10 Thread Neil Brown
On Wednesday January 10, [EMAIL PROTECTED] wrote: > > In looking at the Linux code for ERESTARTNOHAND, I see that > include/linux/errno.h says this errno should never make it to the user. > However, in this instance we ARE seeing it. Looking around on google shows > others are seeing it as well,

Re: [REGRESSION] 2.6.19/2.6.20-rc3 buffered write slowdown

2007-01-10 Thread David Chinner
On Thu, Jan 11, 2007 at 10:13:55AM +1100, Nick Piggin wrote: > David Chinner wrote: > >On Wed, Jan 10, 2007 at 03:04:15PM -0800, Christoph Lameter wrote: > > > >>On Thu, 11 Jan 2007, David Chinner wrote: > >> > >> > >>>The performance and smoothness is fully restored on 2.6.20-rc3 > >>>by setting

Re: select() setting ERESTARTNOHAND (514).

2007-01-10 Thread David Miller
From: Sean Reifschneider <[EMAIL PROTECTED]> Date: Wed, 10 Jan 2007 16:42:38 -0700 > In looking at the select() code, I see that there are definitely cases > where sys_select() or sys_pselect7() can return -ERESTARTNOHAND. However, > I don't know if this is expected to be caught elsewhere, or if

Re: 2.6.20-rc4: known unfixed regressions (v2)

2007-01-10 Thread Vladimir V. Saveliev
Hello On Tuesday 09 January 2007 21:30, Linus Torvalds wrote: > > On Tue, 9 Jan 2007, Malte Schröder wrote: > > > > > So something interesting is definitely going on, but I don't know exactly > > > what it is. Why does reiserfs do the truncate as part of a close, if the > > > same inode is

select() setting ERESTARTNOHAND (514).

2007-01-10 Thread Sean Reifschneider
I've been looking at an issue in Python where a "time.sleep(1)" will sporadically raise an IOError exception with errno=514. time.sleep() is implemented with select(), to get sub-second resolution. In looking at the Linux code for ERESTARTNOHAND, I see that include/linux/errno.h says this errno

Re: page_mapcount(page) went negative

2007-01-10 Thread Nick Piggin
Dave Jones wrote: On Tue, Dec 19, 2006 at 04:20:37PM +1100, Nick Piggin wrote: > IMO the pattern is much too consistent to be able to attribute > them all to hardware problems. And considering it takes so long > for these things to appear, can we get something like the attached > patch

Re: [PATCH 0/4] Improve swap page error handling

2007-01-10 Thread Richard Purdie
On Thu, 2007-01-11 at 09:32 +1100, Nick Piggin wrote: > Richard Purdie wrote: > > I think you were cc'd on some of it but you never commented. Anyhow, > > I've reworked this patch series based on your comments. The hints were > > appreciated, thanks. This was the way I'd originally hoped to be

Re: [patch] Fix bttv and friends on 64bit machines with lots of memory.

2007-01-10 Thread hermann pitton
Am Mittwoch, den 10.01.2007, 09:58 +0100 schrieb Gerd Hoffmann: > Hi, > > We have a DMA32 zone now, lets use it to make sure the card > can reach the memory we have allocated for the video frame > buffers. > > please apply, > > Gerd Hi, did anybody already pick up, comment, review Gerd's

Re: .version keeps being updated

2007-01-10 Thread Segher Boessenkool
With such a change, you would not need to grep for it. You could use binutils on it. `objdump -sj .rodata.uts vmlinux` would be a start. Maybe not the prettiest output, but guaranteed to contain only the banner. objcopy -j .rodata.uts -O binary vmlinux >(the-checker-script) Segher - To

[PATCH] Revert nmi_known_cpu() check during boot option parsing

2007-01-10 Thread Venkatesh Pallipadi
The patch http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f2802e7f571c05f9a901b1f5bd144aa730ccc88e and another subsequent patch adds nmi_known_cpu() check while parsing boot options in x86_64 and i386. With that, "nmi_watchdog=2" stops working for me on Intel Core

Re: [PATCH 01/24] Unionfs: Documentation

2007-01-10 Thread Shaya Potter
Josef Sipek wrote: On Wed, Jan 10, 2007 at 05:12:15PM +0100, Jan Kara wrote: I see :). To me it just sounds as if you want to do remount-read-only for source filesystems, which is operation we support perfectly fine, and after that create union mount. But I agree you cannot do quite that

Re: [PATCH 01/24] Unionfs: Documentation

2007-01-10 Thread Josef Sipek
On Wed, Jan 10, 2007 at 05:12:15PM +0100, Jan Kara wrote: > I see :). To me it just sounds as if you want to do remount-read-only > for source filesystems, which is operation we support perfectly fine, > and after that create union mount. But I agree you cannot do quite that > since you need to

Re: [REGRESSION] 2.6.19/2.6.20-rc3 buffered write slowdown

2007-01-10 Thread David Chinner
On Wed, Jan 10, 2007 at 03:12:02PM -0800, Christoph Lameter wrote: > On Thu, 11 Jan 2007, David Chinner wrote: > > > Well, pdflush appears to be doing very little on both 2.6.18 and > > 2.6.20-rc3. In both cases kswapd is consuming 10-20% of a CPU and > > all of the pdflush threads combined (I've

Re: [REGRESSION] 2.6.19/2.6.20-rc3 buffered write slowdown

2007-01-10 Thread Nick Piggin
David Chinner wrote: On Wed, Jan 10, 2007 at 03:04:15PM -0800, Christoph Lameter wrote: On Thu, 11 Jan 2007, David Chinner wrote: The performance and smoothness is fully restored on 2.6.20-rc3 by setting dirty_ratio down to 10 (from the default 40), so something in the VM is not working as

Re: [REGRESSION] 2.6.19/2.6.20-rc3 buffered write slowdown

2007-01-10 Thread Christoph Lameter
On Thu, 11 Jan 2007, David Chinner wrote: > Well, pdflush appears to be doing very little on both 2.6.18 and > 2.6.20-rc3. In both cases kswapd is consuming 10-20% of a CPU and > all of the pdflush threads combined (I've seen up to 7 active at > once) use maybe 1-2% of cpu time. This occurs

Re: [REGRESSION] 2.6.19/2.6.20-rc3 buffered write slowdown

2007-01-10 Thread David Chinner
On Wed, Jan 10, 2007 at 03:04:15PM -0800, Christoph Lameter wrote: > On Thu, 11 Jan 2007, David Chinner wrote: > > > The performance and smoothness is fully restored on 2.6.20-rc3 > > by setting dirty_ratio down to 10 (from the default 40), so > > something in the VM is not working as well as it

2.6.19: BUG: soft lockup detected on CPU#0!

2007-01-10 Thread Alistair John Strachan
Hi, After a few days uptime on a 2.6.19 kernel, I see this: http://devzero.co.uk/~alistair/2.6.19-softlockup.jpg At which point magic sysrq doesn't work and the machine requires a hard reboot. Is there anything that can be done to produce a more verbose message when such a soft lockup occurs?

Re: .version keeps being updated

2007-01-10 Thread Jan Engelhardt
On Jan 10 2007 21:02, Olaf Hering wrote: >On Wed, Jan 10, Olaf Hering wrote: > >with such a change, it will always be first. Tested on powerpc. >I could even add an ELF parser and look for the first bytes in the >.rodata section. With such a change, you would not need to grep for it. You could

Re: [REGRESSION] 2.6.19/2.6.20-rc3 buffered write slowdown

2007-01-10 Thread Christoph Lameter
On Thu, 11 Jan 2007, David Chinner wrote: > The performance and smoothness is fully restored on 2.6.20-rc3 > by setting dirty_ratio down to 10 (from the default 40), so > something in the VM is not working as well as it used to dirty_background_ratio is left as is at 10? So you gain

Re: installing only the newly (re)built modules

2007-01-10 Thread Bill Davidsen
Alexy Khrabrov wrote: Well, fast -- it depends! :) My Crusoe tablet, Compaq TC1000, can use any break it gets... And generally, the beauty of a make system is not to do any extra moves. Since it already knows what to build, why not let it install just that? The answer just came to me,

Re: [linux-usb-devel] 2.6.20-rc4: null pointer deref in khubd

2007-01-10 Thread Pavel Machek
Hi! > > The obvious change with this device is that usb_set_configuration() is never > > called, but that should not matter. > > No, I think you're barking up the wrong tree. > > Pavel, did you have CONFIG_USB_MULTITHREAD_PROBE turned on? I bet you did > -- there's no other way to generate

[RFC PATCH 3/3] blk_end_request: caller change

2007-01-10 Thread Kiyoshi Ueda
This patch replaces caller's end_that_request_* to blk_end_request. Signed-off-by: Kiyoshi Ueda <[EMAIL PROTECTED]> Signed-off-by: Jun'ichi Nomura <[EMAIL PROTECTED]> --- block/elevator.c|3 - block/ll_rw_blk.c | 26 +++- drivers/block/DAC960.c

Re: SATA/IDE Dual Mode w/Intel 945 Chipset or HOW TO LIQUIFY a flash IDE chip under 2.6.18

2007-01-10 Thread Robert Hancock
Lennart Sorensen wrote: On Wed, Jan 10, 2007 at 09:58:21AM -0500, Jeff Garzik wrote: Enhanced mode means separate SATA and PATA. (I recommend avoiding the "IDE" acronym, it is largely meaningless and confusing these days) Good idea. We're talking about Linux here. Linux regularly supports

[RFC PATCH 2/3] blk_end_request: full completion handler implementation

2007-01-10 Thread Kiyoshi Ueda
Adding blk_end_io() as a full completion handler for I/Os other than sync/barrier. Completion handlers for sync/barrier I/Os are also updated to full completion handler. Signed-off-by: Kiyoshi Ueda <[EMAIL PROTECTED]> Signed-off-by: Jun'ichi Nomura <[EMAIL PROTECTED]> --- block/ll_rw_blk.c

[RFC PATCH 1/3] blk_end_request: helper interface for end_that_request_* callers

2007-01-10 Thread Kiyoshi Ueda
Changing the role of ->end_io() of struct request to a full I/O completion handler. blk_end_request() is added as a helper function to call the full completion handler from drivers and others. Signed-off-by: Kiyoshi Ueda <[EMAIL PROTECTED]> Signed-off-by: Jun'ichi Nomura <[EMAIL PROTECTED]> ---

[RFC PATCH 0/3] blk_end_request: full I/O completion handler

2007-01-10 Thread Kiyoshi Ueda
Hi Jens and device driver maintainers, I would like to make block interface to hook in before completing each chunk of request (for errors) to allow request-based multipath. The first approach was to add a new hook in __end_that_request_first(). -

Re: D-Link DFE-580TX adapter problems

2007-01-10 Thread Anders Karlsson
On Wed, 2007-01-10 at 00:09 +0100, Francois Romieu wrote: > Anders Karlsson <[EMAIL PROTECTED]> : > [...] > > PCI ID's in there, so this driver *should* work. In the past, it *has* > > worked, but that was on a older kernel (2.6.8 or thereabouts). > > No datapoint beyond 2.6.12 ? It would make

Re: [PATCH] mm: pagefault_{disable,enable}()

2007-01-10 Thread Linus Torvalds
On Wed, 10 Jan 2007, Geert Uytterhoeven wrote: > > > The REAL problem seems to be that the m68k preempt.h (or rather, to be > > exact, asm/thread_info.h) doesn't do things right, and while it exposes > > "inc_preempt_count()", it doesn't expose enough information to actually > > use it. > >

[REGRESSION] 2.6.19/2.6.20-rc3 buffered write slowdown

2007-01-10 Thread David Chinner
Discussion thread: http://oss.sgi.com/archives/xfs/2007-01/msg00052.html Short story is that buffered writes slowed down by 20-30% between 2.6.18 and 2.6.19 and became a lot more erratic. Writing a single file to a single filesystem doesn't appear to have major problems, but when writing a file

Re: [linux-usb-devel] 2.6.20-rc4: null pointer deref in khubd

2007-01-10 Thread Alan Stern
On Wed, 10 Jan 2007, Oliver Neukum wrote: > Am Mittwoch, 10. Januar 2007 18:31 schrieb Alan Stern: > > > Regarding the bug this device uncovers, it seems to me that this in > > > drivers/base/core.c > > >   if (parent) > > >   klist_add_tail(>knode_parent, >klist_children); > > >

Re: [PATCH 0/4] Improve swap page error handling

2007-01-10 Thread Nick Piggin
Richard Purdie wrote: No, not this way, I'm afraid. Sorry, I don't remember the prior discussion on LKML, must have flooded past when my attention was elsewhere. I think you were cc'd on some of it but you never commented. Anyhow, I've reworked this patch series based on your comments. The

Re: [PATCH] mm: pagefault_{disable,enable}()

2007-01-10 Thread Geert Uytterhoeven
On Wed, 10 Jan 2007, Linus Torvalds wrote: > On Wed, 10 Jan 2007, Geert Uytterhoeven wrote: > > This change causes lots of compile errors of the following form on m68k: > > > > | linux-2.6.20-rc4/include/linux/uaccess.h: In function `pagefault_disable': > > |

Re: [PATCH] mm: pagefault_{disable,enable}()

2007-01-10 Thread Linus Torvalds
On Wed, 10 Jan 2007, Geert Uytterhoeven wrote: > > This change causes lots of compile errors of the following form on m68k: > > | linux-2.6.20-rc4/include/linux/uaccess.h: In function `pagefault_disable': > | linux-2.6.20-rc4/include/linux/uaccess.h:18: error: dereferencing pointer > to

Re: 2.6.20-rc4: regression: iptables failed to load rules

2007-01-10 Thread Bill Davidsen
Linus Torvalds wrote: On Tue, 9 Jan 2007, Tomasz Kvarsin wrote: During boot into 2.6.20-rc4 iptables says iptables-restore: line 15 failed. And works fine with my default kernel: 2.6.18.x I bet you enabled the new transport-agnostic netfilter, and didn't enable some of the actual rules

Re: macros: "do-while" versus "({ })" and a compile-time error

2007-01-10 Thread Andreas Schwab
"J.A. Magallón" <[EMAIL PROTECTED]> writes: > {} is a compund command and ({ }) is a compund expression > (or block expression, do not know which is the good name in engelish). gcc calls it a statement expression. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products

Re: installing only the newly (re)built modules

2007-01-10 Thread Alexy Khrabrov
Well, fast -- it depends! :) My Crusoe tablet, Compaq TC1000, can use any break it gets... And generally, the beauty of a make system is not to do any extra moves. Since it already knows what to build, why not let it install just that? Cheers, Alexy On 1/10/07, Bill Davidsen <[EMAIL

Re: [PATCH] mm: pagefault_{disable,enable}()

2007-01-10 Thread Geert Uytterhoeven
On Thu, 7 Dec 2006, Linux Kernel Mailing List wrote: > Gitweb: > http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a866374aecc90c7d90619727ccd851ac096b2fc7 > Commit: a866374aecc90c7d90619727ccd851ac096b2fc7 > Parent:

Re: compiling linux kernels with gcc 4.x

2007-01-10 Thread Bill Davidsen
Ram wrote: Hi, Im unable to compile linux 2.6.14 with gcc 4.x, but new versions of kernel i can compile. with gcc 4.x. It gives errors - that seem to disappear when compiled with gcc - 3.4.x I really dont understand why?. There were changes to the kernel to get rid of 4.x problems,

Re: installing only the newly (re)built modules

2007-01-10 Thread Bill Davidsen
Alexy Khrabrov wrote: The 2.6 build system compiles only those modules whose config changed. However, the install still installs all modules. Is there a way to entice make modules_install to install only those new modules we've actually just changed/built? Out of curiosity, why? I've noticed

Re: [PATCH 2/3] change libfs sb creation routines to avoid collisions with their root inodes

2007-01-10 Thread Eric Sandeen
Christoph Hellwig wrote: > >> return -ENOMEM; >> +/* set to high value to try and avoid collisions with loop below */ >> +inode->i_ino = 0x; >> +insert_inode_hash(inode); > > This is odd. Can't we just add some constant base to the loop below? > I thought the

Re: macros: "do-while" versus "({ })" and a compile-time error

2007-01-10 Thread J.A. Magallón
On Wed, 10 Jan 2007 07:16:55 -0500, "linux-os \(Dick Johnson\)" <[EMAIL PROTECTED]> wrote: > > On Wed, 10 Jan 2007, Robert P. J. Day wrote: > > > On Tue, 9 Jan 2007, linux-os (Dick Johnson) wrote: > > > >> > >> On Tue, 9 Jan 2007, Stefan Richter wrote: > >> > >>> Robert P. J. Day wrote: >

Re: [PATCH] severing module.h->sched.h

2007-01-10 Thread Geert Uytterhoeven
On Mon, 4 Dec 2006, Linux Kernel Mailing List wrote: > Gitweb: > http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f6a570333e554b48ad589e7137c77c57809eee81 > Commit: f6a570333e554b48ad589e7137c77c57809eee81 > Parent:

Re: .version keeps being updated

2007-01-10 Thread Linus Torvalds
On Wed, 10 Jan 2007, Olaf Hering wrote: > > On Wed, Jan 10, Linus Torvalds wrote: > > > Grr. > > It did work for me for some reason, but I was wondering why it did work. Because you didn't have CIFS compiled in? Right now that's the only other module that would trigger that particular string

  1   2   3   4   5   >