[2.6 patch] i386 asm-offsets.c: workaround for a -Wmissing-prototypes warning

2007-02-21 Thread Adrian Bunk
This patch works around a warning with -Wmissing-prototypes in arch/i386/kernel/asm-offsets.c The warning isn't gcc's fault - asm-offsets.c is simply a special file. Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> --- --- linux-2.6.20-mm2/arch/i386/kernel/asm-offsets.c.old 2007-02-20

Re: patch to use more symbolic constants in asm

2007-02-21 Thread Andi Kleen
On Wednesday 21 February 2007 12:10, Arjan van de Ven wrote: > From: Arjan van de Ven <[EMAIL PROTECTED]> > Subject: Use symbolic constants in inline assembly > > This patch replaces several of the %0/%1 uses in x86-64 inline assembly > with symbolic names (this is a new gcc 3.x feature, but

Re: SATA ahci Bug in 2.6.19.x

2007-02-21 Thread Tejun Heo
Does it work if you give 'irqpoll' kernel parameter? -- tejun - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

Re: [PATCH 3/4] coredump: ELF-FDPIC: enable to omit anonymous shared memory

2007-02-21 Thread Robin Holt
On Wed, Feb 21, 2007 at 11:33:31AM +, David Howells wrote: > Kawai, Hidehiro <[EMAIL PROTECTED]> wrote: > > > Is coredump_setting_sem a global semaphore? If so, it prevents concurrent > > core dumping. > > No, it doesn't. Look again: > > int do_coredump(long signr, int exit_code,

Re: [patch 00/18] 2.6.18-stable review

2007-02-21 Thread S.Çağlar Onur
21 Şub 2007 Çar tarihinde, Greg KH şunları yazmıştı: > Responses should be made by Friday February 23 00:00 UTC. Anything > received after that time might be too late. We have still some CVEish patches in our package which maybe you want to consider adding into -stable. *

Re: 2.6.13.4 - "lockd: weird return 1 for CANCEL call"

2007-02-21 Thread Jesper Juhl
On 21/02/07, Neil Brown <[EMAIL PROTECTED]> wrote: On Wednesday February 21, [EMAIL PROTECTED] wrote: > Greetings, > > I just got a unusual message from lockd on a webserver running a > custom compiled 2.6.13.4 (yes it is ancient, I know). > > # uname -a > Linux webserv.somedomain.example

Re: Sata_via problems in a Vintage2-AE1: Resume

2007-02-21 Thread Tejun Heo
Leopold Palomo-Avellaneda wrote: > A Dimarts 13 Febrer 2007 17:19, Jean Delvare va escriure: >> Le Mardi 13 Février 2007 17:11, Leopold Palomo-Avellaneda a écrit : >>> A Dimarts 13 Febrer 2007 12:20, Jean Delvare va escriure: >>> (...) >>> >> *If* the VT8251 needs the VIA IRQ quirk, then the

Re: [PATCH 0/2] use symbolic constants in generic lseek code

2007-02-21 Thread David Howells
Chris Snook <[EMAIL PROTECTED]> wrote: > Patch 1 fixes the case statements to use the symbolic constants in > include/linux/fs.h, and should not be at all controversial. > > Patch 2 adds a SEEK_MAX and uses it to validate user arguments. This makes > the code a little cleaner and also enables

Re: [git patches] libata ACPI support

2007-02-21 Thread Lukas Hejtmanek
On Tue, Feb 20, 2007 at 06:49:17PM -0500, Jeff Garzik wrote: > Can you narrow down the -gitX release further? i.e. does 2.6.20-git13 > perform at full speed? -git13 includes several libata changes, but does > not include the ACPI additions. > > Since this is an ACPI execution error in the

Re: current git crashes on bootup with pci_iounmap()

2007-02-21 Thread Tejun Heo
Kay Sievers wrote: > On 2/13/07, Kay Sievers <[EMAIL PROTECTED]> wrote: >> On Tue, 2007-02-13 at 17:04 +0100, Marcel Holtmann wrote: >> > > kernel BUG at lib/iomap.c:254! >> > > invalid opcode: [#1] >> > > ... >> > > >> > > The screen picture is here: >> > > http://vrfy.org/pci_iounmap.jpg

Re: all syscalls initially taking 4usec on a P4? Re: nonblocking UDPv4 recvfrom() taking 4usec @ 3GHz?

2007-02-21 Thread Andi Kleen
On Wed, Feb 21, 2007 at 02:06:34PM +0300, Evgeniy Polyakov wrote: > Here is data for 50 bytes reading for essentially idle machine > (core duo 2.4 ghz): > > delta for syscall: 3326961404-3326969261: 7857 cycles = 3.273750 us Can you oprofile it too? -Andi - To unsubscribe from this list: send

Re: [PATCH 3/4] coredump: ELF-FDPIC: enable to omit anonymous shared memory

2007-02-21 Thread David Howells
Kawai, Hidehiro <[EMAIL PROTECTED]> wrote: > Is coredump_setting_sem a global semaphore? If so, it prevents concurrent > core dumping. No, it doesn't. Look again: int do_coredump(long signr, int exit_code, struct pt_regs * regs) {

Re: 2.6.13.4 - "lockd: weird return 1 for CANCEL call"

2007-02-21 Thread Neil Brown
On Wednesday February 21, [EMAIL PROTECTED] wrote: > Greetings, > > I just got a unusual message from lockd on a webserver running a > custom compiled 2.6.13.4 (yes it is ancient, I know). > > # uname -a > Linux webserv.somedomain.example 2.6.13.4 #1 SMP Wed Nov 16 10:03:05 > CET 2005 i686

[PATCH] libata: test major version in ata_id_is_sata()

2007-02-21 Thread Tejun Heo
Test major version in ata_id_is_sata() not separately. Signed-off-by: Tejun Heo <[EMAIL PROTECTED]> diff --git a/include/linux/ata.h b/include/linux/ata.h index 272736e..c331da2 100644 --- a/include/linux/ata.h +++ b/include/linux/ata.h @@ -282,7 +282,6 @@ struct ata_taskfile { }; #define

2.6.20-rc1 build error on ARM with modular IPV6

2007-02-21 Thread M.L. Jones
NB: I'm not subscribed so please CC me in any reply! Thanks... Hi there, Just attempted a build of vanilla 2.6.20-rc1 and got a failure with our usual defconfig. Notably, we build IPV6 support as modular - this seems to be the source of the problem. If any other info is required, please

Re: [PATCH] UML utrace support, step 1

2007-02-21 Thread Roland McGrath
> Below is the first step in your Fix-Your-Broken-Arch-HOWTO for UML. Great! Thanks for tackling this. > Do you want incremental patches as I go along, or replacement ones? The way I've organized my patch series is with the arch support split up along with the separate infrastructure patches

[PATCH] slab: add __must_check to krealloc

2007-02-21 Thread Pekka J Enberg
From: Pekka Enberg <[EMAIL PROTECTED]> As suggested by Arjan, make GCC warn about classic misuse of the realloc API. Cc: Arjan van de Ven <[EMAIL PROTECTED]> Signed-off-by: Pekka Enberg <[EMAIL PROTECTED]> --- include/linux/slab.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index:

patch to use more symbolic constants in asm

2007-02-21 Thread Arjan van de Ven
From: Arjan van de Ven <[EMAIL PROTECTED]> Subject: Use symbolic constants in inline assembly This patch replaces several of the %0/%1 uses in x86-64 inline assembly with symbolic names (this is a new gcc 3.x feature, but that's ok now). This tends to, imo, make the inline assembly a lot more

Re: all syscalls initially taking 4usec on a P4? Re: nonblocking UDPv4 recvfrom() taking 4usec @ 3GHz?

2007-02-21 Thread Evgeniy Polyakov
Here is data for 50 bytes reading for essentially idle machine (core duo 2.4 ghz): delta for syscall: 3326961404-3326969261: 7857 cycles = 3.273750 us delta for syscall: 3326975687-3326980979: 5292 cycles = 2.205000 us delta for syscall: 3327199967-3327205583: 5616 cycles = 2.34 us delta for

Re: Need a little help with Software Raid 1

2007-02-21 Thread Sander
Marc Perkel wrote (ao): > I have a partition that used to be part of a software > raid 1 array. It is now loaded as /dev/sda3 but I'd > like to mirror it to /dev/sdb3 without losing the data > on the drive. I'm a little nervous about how to set it > up as I don't want to wipe out the data. > >

[2.6 patch] drivers/infiniband/hw/cxgb3/: cleanups

2007-02-21 Thread Adrian Bunk
On Tue, Feb 20, 2007 at 08:43:06AM -0600, Steve Wise wrote: > On Tue, 2007-02-20 at 01:02 +0100, Adrian Bunk wrote: > > This patch contains the following possible cleanups: > > - don't mark static functions in C files as inline - gcc should know > > best whether inlining makes sense > > - never

[-mm patch] MTD_UBI_DEBUG must depend on SYSFS

2007-02-21 Thread Adrian Bunk
On Sat, Feb 17, 2007 at 09:51:46PM -0800, Andrew Morton wrote: >... > Changes since 2.6.20-mm1: >... > git-ubi.patch >... > git trees >... If you select an option, you have to ensure that the dependencies of all options you are select'ing are fulfilled. This patch fixes the following compile

2.6.13.4 - "lockd: weird return 1 for CANCEL call"

2007-02-21 Thread Jesper Juhl
Greetings, I just got a unusual message from lockd on a webserver running a custom compiled 2.6.13.4 (yes it is ancient, I know). # uname -a Linux webserv.somedomain.example 2.6.13.4 #1 SMP Wed Nov 16 10:03:05 CET 2005 i686 unknown # dmesg | tail -n 3 do_vfs_lock: VFS is out of sync with lock

PROBLEM: kernel oops 2.6.20 (ubuntu feisty) when inserting compact flash card

2007-02-21 Thread Stef Epardaud
Hello, I got an oops when inserting my compact flash card in my laptop. The laptop is a Dell X1, using the builtin compact flash reader, which I understand works through PCMCIA. My kernel is stock ubuntu latest unstable: Linux version 2.6.20-8-386 ([EMAIL PROTECTED]) (gcc version 4.1.2 20070129

Please pull git390 'for-linus' branch

2007-02-21 Thread Martin Schwidefsky
Please pull from 'for-linus' branch of git://git390.osdl.marist.edu/pub/scm/linux-2.6.git for-linus to receive the following updates: arch/s390/Kconfig|4 +- arch/s390/Makefile | 12 ++-- arch/s390/defconfig | 21 +++--

Re: 2.6.20-mm1: PTRACE=y, PROC_FS=n compile error

2007-02-21 Thread Roland McGrath
> This causes the following compile error with CONFIG_PTRACE=y, > CONFIG_PROC_FS=n: Bah. I moved ptrace_may_attach to fs/proc/base.c so that CONFIG_PTRACE=n could just omit kernel/ptrace.c entirely and still get the function for fs/proc/base.c to use (and because that uses it many more times

[S390] nss: Free unused memory in kernel image.

2007-02-21 Thread Martin Schwidefsky
From: Heiko Carstens <[EMAIL PROTECTED]> [S390] nss: Free unused memory in kernel image. With CONFIG_SHARED_KERNEL the kernel text segment that might be in a read only memory sections starts at 1MB. Memory between 0x12000 and 0x10 is unused then. Free this, so we have appr. an extra MB of

[PATCH] ecryptfs lower_file largefile issue

2007-02-21 Thread Dmitriy Monakhov
Where is largefile issue in ecryptfs. Even if we want open file on ia32 with explicit O_LARGEFILE, lower_file will be opened without O_LARGEFILE flag this result in various errors in dmesg and data corruption. Testcase: write 'a' chars beyond 2Gb # strace ./writer_test root/file

[S390] bss section clearing.

2007-02-21 Thread Martin Schwidefsky
From: Heiko Carstens <[EMAIL PROTECTED]> [S390] bss section clearing. Clear only memory from __bss_start to __bss_stop when clearing the bss section. Not until _end, which currently happens to be the same. Signed-off-by: Heiko Carstens <[EMAIL PROTECTED]> Signed-off-by: Martin Schwidefsky

[S390] Remove BUG() statement

2007-02-21 Thread Martin Schwidefsky
From: Michael Holzheu <[EMAIL PROTECTED]> [S390] Remove BUG() statement To avoid ugly warings for older gccs, we replace BUG() with "return NULL", which is just as well. Signed-off-by: Michael Holzheu <[EMAIL PROTECTED]> Signed-off-by: Martin Schwidefsky <[EMAIL PROTECTED]> ---

[S390] Replace $(ARCH) macros in Makefile

2007-02-21 Thread Martin Schwidefsky
From: Michael Holzheu <[EMAIL PROTECTED]> [S390] Replace $(ARCH) macros in Makefile Since $(ARCH) is always "s390" we can replace it with "s390". Signed-off-by: Michael Holzheu <[EMAIL PROTECTED]> Signed-off-by: Martin Schwidefsky <[EMAIL PROTECTED]> --- arch/s390/Makefile | 12 ++--

[S390] Optional ZONE_DMA for s390.

2007-02-21 Thread Martin Schwidefsky
From: Heiko Carstens <[EMAIL PROTECTED]> [S390] Optional ZONE_DMA for s390. Disable ZONE_DMA on 31-bit. All memory is addressable by all devices and we do not need any special memory pool. Signed-off-by: Heiko Carstens <[EMAIL PROTECTED]> Signed-off-by: Martin Schwidefsky <[EMAIL

[S390] etr: Add barrier() to etr_sync_cpu_start().

2007-02-21 Thread Martin Schwidefsky
From: Heiko Carstens <[EMAIL PROTECTED]> [S390] etr: Add barrier() to etr_sync_cpu_start(). Force reading of *in_sync in while loop. Loops where the content that is checked for is changed by a different cpu always should have some sort of barrier() semantics. Otherwise this might lead to very

[S390] New header file ipl.h

2007-02-21 Thread Martin Schwidefsky
From: Michael Holzheu <[EMAIL PROTECTED]> [S390] New header file ipl.h Setup.h has been misused for ipl related stuff in the past. We now move everything, which has to do with ipl and reipl to a new header file named "ipl.h". Signed-off-by: Michael Holzheu <[EMAIL PROTECTED]> Signed-off-by:

[S390] New get_cpu_id() inline assembly

2007-02-21 Thread Martin Schwidefsky
From: Michael Holzheu <[EMAIL PROTECTED]> [S390] New get_cpu_id() inline assembly Replace two stidp inline assemblies with one global implementation. Signed-off-by: Michael Holzheu <[EMAIL PROTECTED]> Signed-off-by: Martin Schwidefsky <[EMAIL PROTECTED]> --- arch/s390/kernel/early.c |

[S390] prevent softirqs if delay is called disabled

2007-02-21 Thread Martin Schwidefsky
From: Martin Schwidefsky <[EMAIL PROTECTED]> [S390] prevent softirqs if delay is called disabled The new delay implementation uses the clock comparator and an external interrupt even if it is called disabled for interrupts. To do this all external interrupt source except clock comparator are

Re: [patch 03/18] Dont leak NT bit into next task

2007-02-21 Thread Giuseppe Bilotta
On Wednesday 21 February 2007 02:49, Greg KH wrote: > /* frame pointer must be last for get_wchan */ > -#define SAVE_CONTEXT"pushq %%rbp ; movq %%rsi,%%rbp\n\t" > -#define RESTORE_CONTEXT "movq %%rbp,%%rsi ; popq %%rbp\n\t" > +#define SAVE_CONTEXT"pushf ; pushq %%rbp ; movq

[S390] fix non-smp compile.

2007-02-21 Thread Martin Schwidefsky
From: Jan Glauber <[EMAIL PROTECTED]> [S390] fix non-smp compile. Fix compile of sclp_quiesce for CONFIG_SMP=n. Signed-off-by: Jan Glauber <[EMAIL PROTECTED]> Signed-off-by: Martin Schwidefsky <[EMAIL PROTECTED]> --- drivers/s390/char/sclp_quiesce.c |1 + 1 files changed, 1 insertion(+)

Re: [PATCH 3/4] coredump: ELF-FDPIC: enable to omit anonymous shared memory

2007-02-21 Thread Kawai, Hidehiro
Hi, Thank you for your reply. David Howells wrote: >>I think that locking makes codes complex and generates overhead. >>So I wouldn't like to use lock as far as possible. I think passing >>the flag as an extra argument is the simplest implementation to >>avoid the core file corruption. > >

[S390] smp_call_function cleanup

2007-02-21 Thread Martin Schwidefsky
From: Jan Glauber <[EMAIL PROTECTED]> [S390] smp_call_function cleanup Introduce __smp_call_function_map which calls a function on all cpus given with a cpumask_t. Use it to implement smp_call_function and smp_call_function_on. Replace smp_ext_bitcall_others with smp_ext_bitcall and a

[S390] update default configuration

2007-02-21 Thread Martin Schwidefsky
From: Martin Schwidefsky <[EMAIL PROTECTED]> [S390] update default configuration Signed-off-by: Martin Schwidefsky <[EMAIL PROTECTED]> --- arch/s390/defconfig | 21 +++-- 1 files changed, 15 insertions(+), 6 deletions(-) diff -urpN linux-2.6/arch/s390/defconfig

Re: [-mm patch] include/linux/ptrace.h must #include

2007-02-21 Thread Roland McGrath
Thanks for the fix. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 1/3] slab: introduce krealloc

2007-02-21 Thread Arjan van de Ven
On Wed, 2007-02-21 at 11:33 +0200, Pekka Enberg wrote: > On 2/21/07, Arjan van de Ven <[EMAIL PROTECTED]> wrote: > > please mark this one __must_check.. not storing realloc() return values > > is one of the more nasty types of bugs... but gcc can help us greatly > > here ;) > > So I guess we want

Re: [PATCH 1/3] slab: introduce krealloc

2007-02-21 Thread Pekka Enberg
On 2/21/07, Arjan van de Ven <[EMAIL PROTECTED]> wrote: please mark this one __must_check.. not storing realloc() return values is one of the more nasty types of bugs... but gcc can help us greatly here ;) So I guess we want the same thing for the other allocator functions (__kmalloc et al) as

Re: [PATCH] net/bridge/br_if.c: fix possible use-after-free in port_carrier_check()

2007-02-21 Thread Jarek Poplawski
On Wed, Feb 21, 2007 at 09:23:45AM +0100, Jarek Poplawski wrote: ... > I have known issues with RCU, but dare to disagree here. > It's done during call_rcu, so anything RCU friendly shouldn't > see this at the moment at all. It could be needed for those > with refcounting - than it should be

Re: PCI riser cards and PCI irq routing, etc

2007-02-21 Thread Udo van den Heuvel
Udo van den Heuvel wrote: > Any ideas about how to proceed? > What to test? I found some info on the VIA dual PCI extender card at http://www.itx-warehouse.co.uk/Product.aspx?ProductID=410. The text says: The EXT-PCI is a PCI riser card which expands a PCI slot into two PCI slots. EXT-PCI slot

Re: [PATCH 1/3] slab: introduce krealloc

2007-02-21 Thread Arjan van de Ven
On Wed, 2007-02-21 at 10:06 +0200, Pekka J Enberg wrote: > From: Pekka Enberg <[EMAIL PROTECTED]> > > Introduce krealloc() for reallocating memory while preserving contents. please mark this one __must_check.. not storing realloc() return values is one of the more nasty types of bugs... but gcc

Re: [PATCH 2/3] slab: export ksize to modules

2007-02-21 Thread Pekka J Enberg
On Wed, 21 Feb 2007, Arjan van de Ven wrote: > Please specify the use in the description of the patch! See [PATCH 3/3] unionfs: fix up slab abuses. Pekka - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL

Re: libata FUA revisited

2007-02-21 Thread Jens Axboe
On Wed, Feb 21 2007, Tejun Heo wrote: > Jens Axboe wrote: > > On Wed, Feb 21 2007, Tejun Heo wrote: > >> [cc'ing Ric, Hannes and Dongjun, Hello. Feel free to drag other people > >> in.] > >> > >> Robert Hancock wrote: > >>> Jens Axboe wrote: > But we can't really change that, since you need

Re: libata FUA revisited

2007-02-21 Thread Tejun Heo
Jens Axboe wrote: > On Wed, Feb 21 2007, Tejun Heo wrote: >> [cc'ing Ric, Hannes and Dongjun, Hello. Feel free to drag other people in.] >> >> Robert Hancock wrote: >>> Jens Axboe wrote: But we can't really change that, since you need the cache flushed before issuing the FUA write. I've

Re: [PATCH 2/3] slab: export ksize to modules

2007-02-21 Thread Arjan van de Ven
On Wed, 2007-02-21 at 10:06 +0200, Pekka J Enberg wrote: > From: Pekka Enberg <[EMAIL PROTECTED]> > > This exports ksize in slab and slob allocators to modules. what's the user of this? If none, don't export it please since every useless export does take up space. Please specify the use in the

Re: libata FUA revisited

2007-02-21 Thread Jens Axboe
On Mon, Feb 19 2007, Robert Hancock wrote: > Jens Axboe wrote: > >But we can't really change that, since you need the cache flushed before > >issuing the FUA write. I've been advocating for an ordered bit for > >years, so that we could just do: > > > >3. w/FUA+ORDERED > > > >normal operation ->

Re: libata FUA revisited

2007-02-21 Thread Jens Axboe
On Wed, Feb 21 2007, Tejun Heo wrote: > [cc'ing Ric, Hannes and Dongjun, Hello. Feel free to drag other people in.] > > Robert Hancock wrote: > > Jens Axboe wrote: > >> But we can't really change that, since you need the cache flushed before > >> issuing the FUA write. I've been advocating for

RE: [PATCH 2/2] aio: propogate post-EIOCBQUEUED errors to completion event

2007-02-21 Thread Ananiev, Leonid I
> where it returns zero I've wrote in the mail http://lkml.org/lkml/2007/2/8/337 invalidate_inode_pages2_range() reports BUG: warning at mm/truncate.c:398 occurs becouse of invalidate_complete_page2()returns 0; it returns 0 because of try_to_release_page() returns 0; it returns 0

Re: libata FUA revisited

2007-02-21 Thread Tejun Heo
[cc'ing Ric, Hannes and Dongjun, Hello. Feel free to drag other people in.] Robert Hancock wrote: > Jens Axboe wrote: >> But we can't really change that, since you need the cache flushed before >> issuing the FUA write. I've been advocating for an ordered bit for >> years, so that we could just

Re: [PATCH 2/2] aio: propogate post-EIOCBQUEUED errors to completion event

2007-02-21 Thread Ken Chen
On 2/20/07, Ananiev, Leonid <[EMAIL PROTECTED]> wrote: 1) mem=1G in kernel boot param if you have more 2) unmount; mk2fs; mount 3) dd if=/dev/zero of= bs=1M count=1200 4) aiostress -s 1200m -O -o 2 -i 1 -r 16k 5) if i++<50 goto 2). Would you please instrument the call chain of

[PATCH] slab: ensure cache_alloc_refill terminates

2007-02-21 Thread Pekka J Enberg
From: Pekka Enberg <[EMAIL PROTECTED]> If slab->inuse is corrupted, cache_alloc_refill can enter an infinite loop as detailed by Michael Richardson in the following post: . This adds a BUG_ON to catch those cases. Cc: Michael Richardson <[EMAIL PROTECTED]> Cc:

Need a little help with Software Raid 1

2007-02-21 Thread Marc Perkel
I have a partition that used to be part of a software raid 1 array. It is now loaded as /dev/sda3 but I'd like to mirror it to /dev/sdb3 without losing the data on the drive. I'm a little nervous about how to set it up as I don't want to wipe out the data. How do I do this? Using FC6 and up 2

Re: [PATCH 2/3] slab: export ksize to modules

2007-02-21 Thread Pekka J Enberg
Hi Muli, On Wed, Feb 21, 2007 at 10:06:52AM +0200, Pekka J Enberg wrote: > > This exports ksize in slab and slob allocators to modules. On Wed, 21 Feb 2007, Muli Ben-Yehuda wrote: > That's a pretty generic name... if it's going to be part of the module > API, it should be renamed to something a

Re: [PATCH] net/bridge/br_if.c: fix possible use-after-free in port_carrier_check()

2007-02-21 Thread Jarek Poplawski
On Tue, Feb 20, 2007 at 04:24:34PM -0800, Stephen Hemminger wrote: > On Wed, 21 Feb 2007 01:19:41 +0300 > Oleg Nesterov <[EMAIL PROTECTED]> wrote: > > > If del_nbp()->cancel_delayed_work(carrier_check) fails, port_carrier_check() > > may run later and access an already freed container (struct >

[PATCH] Fix trivial help text typos in Kconfig* files

2007-02-21 Thread David Sterba
(patch against 2.6.21-rc1) Fix several typos in help text in Kconfig* files. Signed-off-by: David Sterba <[EMAIL PROTECTED]> --- arch/cris/arch-v32/drivers/Kconfig |2 +- arch/h8300/Kconfig.debug |4 ++-- arch/i386/Kconfig.cpu |4 ++-- arch/ia64/Kconfig

Re: [PATCH 2/3] slab: export ksize to modules

2007-02-21 Thread Muli Ben-Yehuda
On Wed, Feb 21, 2007 at 10:06:52AM +0200, Pekka J Enberg wrote: > From: Pekka Enberg <[EMAIL PROTECTED]> > > This exports ksize in slab and slob allocators to modules. That's a pretty generic name... if it's going to be part of the module API, it should be renamed to something a bit more

[PATCH 3/3] unionfs: fix up slab abuses

2007-02-21 Thread Pekka J Enberg
From: Pekka Enberg <[EMAIL PROTECTED]> This changes unionfs to query the actual buffer size with ksize() instead of playing tricks with malloc_sizes. Also converts an open-coded reallocation to use the new krealloc API. Cc: Josef Sipek <[EMAIL PROTECTED]> Signed-off-by: Pekka Enberg <[EMAIL

[PATCH 2/3] slab: export ksize to modules

2007-02-21 Thread Pekka J Enberg
From: Pekka Enberg <[EMAIL PROTECTED]> This exports ksize in slab and slob allocators to modules. Cc: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Pekka Enberg <[EMAIL PROTECTED]> --- mm/slab.c |1 + mm/slob.c |2 ++ 2 files changed, 3 insertions(+) Index: 2.6/mm/slab.c

[PATCH 1/3] slab: introduce krealloc

2007-02-21 Thread Pekka J Enberg
From: Pekka Enberg <[EMAIL PROTECTED]> Introduce krealloc() for reallocating memory while preserving contents. Cc: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Pekka Enberg <[EMAIL PROTECTED]> --- include/linux/slab.h |1 + mm/util.c| 34

[PATCH 1/3] slab: introduce krealloc

2007-02-21 Thread Pekka J Enberg
From: Pekka Enberg [EMAIL PROTECTED] Introduce krealloc() for reallocating memory while preserving contents. Cc: Christoph Lameter [EMAIL PROTECTED] Signed-off-by: Pekka Enberg [EMAIL PROTECTED] --- include/linux/slab.h |1 + mm/util.c| 34 ++ 2

[PATCH 2/3] slab: export ksize to modules

2007-02-21 Thread Pekka J Enberg
From: Pekka Enberg [EMAIL PROTECTED] This exports ksize in slab and slob allocators to modules. Cc: Christoph Lameter [EMAIL PROTECTED] Signed-off-by: Pekka Enberg [EMAIL PROTECTED] --- mm/slab.c |1 + mm/slob.c |2 ++ 2 files changed, 3 insertions(+) Index: 2.6/mm/slab.c

[PATCH 3/3] unionfs: fix up slab abuses

2007-02-21 Thread Pekka J Enberg
From: Pekka Enberg [EMAIL PROTECTED] This changes unionfs to query the actual buffer size with ksize() instead of playing tricks with malloc_sizes. Also converts an open-coded reallocation to use the new krealloc API. Cc: Josef Sipek [EMAIL PROTECTED] Signed-off-by: Pekka Enberg [EMAIL

Re: [PATCH 2/3] slab: export ksize to modules

2007-02-21 Thread Muli Ben-Yehuda
On Wed, Feb 21, 2007 at 10:06:52AM +0200, Pekka J Enberg wrote: From: Pekka Enberg [EMAIL PROTECTED] This exports ksize in slab and slob allocators to modules. That's a pretty generic name... if it's going to be part of the module API, it should be renamed to something a bit more obvious.

[PATCH] Fix trivial help text typos in Kconfig* files

2007-02-21 Thread David Sterba
(patch against 2.6.21-rc1) Fix several typos in help text in Kconfig* files. Signed-off-by: David Sterba [EMAIL PROTECTED] --- arch/cris/arch-v32/drivers/Kconfig |2 +- arch/h8300/Kconfig.debug |4 ++-- arch/i386/Kconfig.cpu |4 ++-- arch/ia64/Kconfig

Re: [PATCH 2/3] slab: export ksize to modules

2007-02-21 Thread Pekka J Enberg
Hi Muli, On Wed, Feb 21, 2007 at 10:06:52AM +0200, Pekka J Enberg wrote: This exports ksize in slab and slob allocators to modules. On Wed, 21 Feb 2007, Muli Ben-Yehuda wrote: That's a pretty generic name... if it's going to be part of the module API, it should be renamed to something a bit

Need a little help with Software Raid 1

2007-02-21 Thread Marc Perkel
I have a partition that used to be part of a software raid 1 array. It is now loaded as /dev/sda3 but I'd like to mirror it to /dev/sdb3 without losing the data on the drive. I'm a little nervous about how to set it up as I don't want to wipe out the data. How do I do this? Using FC6 and up 2

[PATCH] slab: ensure cache_alloc_refill terminates

2007-02-21 Thread Pekka J Enberg
From: Pekka Enberg [EMAIL PROTECTED] If slab-inuse is corrupted, cache_alloc_refill can enter an infinite loop as detailed by Michael Richardson in the following post: http://lkml.org/lkml/2007/2/16/292. This adds a BUG_ON to catch those cases. Cc: Michael Richardson [EMAIL PROTECTED] Cc:

Re: [PATCH 2/2] aio: propogate post-EIOCBQUEUED errors to completion event

2007-02-21 Thread Ken Chen
On 2/20/07, Ananiev, Leonid [EMAIL PROTECTED] wrote: 1) mem=1G in kernel boot param if you have more 2) unmount; mk2fs; mount 3) dd if=/dev/zero of=test_file bs=1M count=1200 4) aiostress -s 1200m -O -o 2 -i 1 -r 16k test_file 5) if i++50 goto 2). Would you please instrument the call chain of

RE: [PATCH 2/2] aio: propogate post-EIOCBQUEUED errors to completion event

2007-02-21 Thread Ananiev, Leonid I
where it returns zero I've wrote in the mail http://lkml.org/lkml/2007/2/8/337 invalidate_inode_pages2_range() reports BUG: warning at mm/truncate.c:398 occurs becouse of invalidate_complete_page2()returns 0; it returns 0 because of try_to_release_page() returns 0; it returns 0

Re: [PATCH 2/3] slab: export ksize to modules

2007-02-21 Thread Arjan van de Ven
On Wed, 2007-02-21 at 10:06 +0200, Pekka J Enberg wrote: From: Pekka Enberg [EMAIL PROTECTED] This exports ksize in slab and slob allocators to modules. what's the user of this? If none, don't export it please since every useless export does take up space. Please specify the use in the

Re: [PATCH 2/3] slab: export ksize to modules

2007-02-21 Thread Pekka J Enberg
On Wed, 21 Feb 2007, Arjan van de Ven wrote: Please specify the use in the description of the patch! See [PATCH 3/3] unionfs: fix up slab abuses. Pekka - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED]

Re: PCI riser cards and PCI irq routing, etc

2007-02-21 Thread Udo van den Heuvel
Udo van den Heuvel wrote: Any ideas about how to proceed? What to test? I found some info on the VIA dual PCI extender card at http://www.itx-warehouse.co.uk/Product.aspx?ProductID=410. The text says: The EXT-PCI is a PCI riser card which expands a PCI slot into two PCI slots. EXT-PCI slot 1

Re: [PATCH 1/3] slab: introduce krealloc

2007-02-21 Thread Arjan van de Ven
On Wed, 2007-02-21 at 10:06 +0200, Pekka J Enberg wrote: From: Pekka Enberg [EMAIL PROTECTED] Introduce krealloc() for reallocating memory while preserving contents. please mark this one __must_check.. not storing realloc() return values is one of the more nasty types of bugs... but gcc can

Re: [PATCH 1/3] slab: introduce krealloc

2007-02-21 Thread Pekka Enberg
On 2/21/07, Arjan van de Ven [EMAIL PROTECTED] wrote: please mark this one __must_check.. not storing realloc() return values is one of the more nasty types of bugs... but gcc can help us greatly here ;) So I guess we want the same thing for the other allocator functions (__kmalloc et al) as

Re: [PATCH 1/3] slab: introduce krealloc

2007-02-21 Thread Arjan van de Ven
On Wed, 2007-02-21 at 11:33 +0200, Pekka Enberg wrote: On 2/21/07, Arjan van de Ven [EMAIL PROTECTED] wrote: please mark this one __must_check.. not storing realloc() return values is one of the more nasty types of bugs... but gcc can help us greatly here ;) So I guess we want the same

Re: [-mm patch] include/linux/ptrace.h must #include linux/errno.h

2007-02-21 Thread Roland McGrath
Thanks for the fix. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[S390] update default configuration

2007-02-21 Thread Martin Schwidefsky
From: Martin Schwidefsky [EMAIL PROTECTED] [S390] update default configuration Signed-off-by: Martin Schwidefsky [EMAIL PROTECTED] --- arch/s390/defconfig | 21 +++-- 1 files changed, 15 insertions(+), 6 deletions(-) diff -urpN linux-2.6/arch/s390/defconfig

[S390] prevent softirqs if delay is called disabled

2007-02-21 Thread Martin Schwidefsky
From: Martin Schwidefsky [EMAIL PROTECTED] [S390] prevent softirqs if delay is called disabled The new delay implementation uses the clock comparator and an external interrupt even if it is called disabled for interrupts. To do this all external interrupt source except clock comparator are

Re: [patch 03/18] Dont leak NT bit into next task

2007-02-21 Thread Giuseppe Bilotta
On Wednesday 21 February 2007 02:49, Greg KH wrote: /* frame pointer must be last for get_wchan */ -#define SAVE_CONTEXTpushq %%rbp ; movq %%rsi,%%rbp\n\t -#define RESTORE_CONTEXT movq %%rbp,%%rsi ; popq %%rbp\n\t +#define SAVE_CONTEXTpushf ; pushq %%rbp ; movq %%rsi,%%rbp\n\t

[S390] fix non-smp compile.

2007-02-21 Thread Martin Schwidefsky
From: Jan Glauber [EMAIL PROTECTED] [S390] fix non-smp compile. Fix compile of sclp_quiesce for CONFIG_SMP=n. Signed-off-by: Jan Glauber [EMAIL PROTECTED] Signed-off-by: Martin Schwidefsky [EMAIL PROTECTED] --- drivers/s390/char/sclp_quiesce.c |1 + 1 files changed, 1 insertion(+) diff

Re: [PATCH 3/4] coredump: ELF-FDPIC: enable to omit anonymous shared memory

2007-02-21 Thread Kawai, Hidehiro
Hi, Thank you for your reply. David Howells wrote: I think that locking makes codes complex and generates overhead. So I wouldn't like to use lock as far as possible. I think passing the flag as an extra argument is the simplest implementation to avoid the core file corruption. Actually, I

[S390] smp_call_function cleanup

2007-02-21 Thread Martin Schwidefsky
From: Jan Glauber [EMAIL PROTECTED] [S390] smp_call_function cleanup Introduce __smp_call_function_map which calls a function on all cpus given with a cpumask_t. Use it to implement smp_call_function and smp_call_function_on. Replace smp_ext_bitcall_others with smp_ext_bitcall and a

[S390] Optional ZONE_DMA for s390.

2007-02-21 Thread Martin Schwidefsky
From: Heiko Carstens [EMAIL PROTECTED] [S390] Optional ZONE_DMA for s390. Disable ZONE_DMA on 31-bit. All memory is addressable by all devices and we do not need any special memory pool. Signed-off-by: Heiko Carstens [EMAIL PROTECTED] Signed-off-by: Martin Schwidefsky [EMAIL PROTECTED] ---

[S390] etr: Add barrier() to etr_sync_cpu_start().

2007-02-21 Thread Martin Schwidefsky
From: Heiko Carstens [EMAIL PROTECTED] [S390] etr: Add barrier() to etr_sync_cpu_start(). Force reading of *in_sync in while loop. Loops where the content that is checked for is changed by a different cpu always should have some sort of barrier() semantics. Otherwise this might lead to very

[S390] New header file ipl.h

2007-02-21 Thread Martin Schwidefsky
From: Michael Holzheu [EMAIL PROTECTED] [S390] New header file ipl.h Setup.h has been misused for ipl related stuff in the past. We now move everything, which has to do with ipl and reipl to a new header file named ipl.h. Signed-off-by: Michael Holzheu [EMAIL PROTECTED] Signed-off-by: Martin

[S390] New get_cpu_id() inline assembly

2007-02-21 Thread Martin Schwidefsky
From: Michael Holzheu [EMAIL PROTECTED] [S390] New get_cpu_id() inline assembly Replace two stidp inline assemblies with one global implementation. Signed-off-by: Michael Holzheu [EMAIL PROTECTED] Signed-off-by: Martin Schwidefsky [EMAIL PROTECTED] --- arch/s390/kernel/early.c |2 +-

[S390] bss section clearing.

2007-02-21 Thread Martin Schwidefsky
From: Heiko Carstens [EMAIL PROTECTED] [S390] bss section clearing. Clear only memory from __bss_start to __bss_stop when clearing the bss section. Not until _end, which currently happens to be the same. Signed-off-by: Heiko Carstens [EMAIL PROTECTED] Signed-off-by: Martin Schwidefsky [EMAIL

[S390] Remove BUG() statement

2007-02-21 Thread Martin Schwidefsky
From: Michael Holzheu [EMAIL PROTECTED] [S390] Remove BUG() statement To avoid ugly warings for older gccs, we replace BUG() with return NULL, which is just as well. Signed-off-by: Michael Holzheu [EMAIL PROTECTED] Signed-off-by: Martin Schwidefsky [EMAIL PROTECTED] --- arch/s390/kernel/ipl.c

[S390] Replace $(ARCH) macros in Makefile

2007-02-21 Thread Martin Schwidefsky
From: Michael Holzheu [EMAIL PROTECTED] [S390] Replace $(ARCH) macros in Makefile Since $(ARCH) is always s390 we can replace it with s390. Signed-off-by: Michael Holzheu [EMAIL PROTECTED] Signed-off-by: Martin Schwidefsky [EMAIL PROTECTED] --- arch/s390/Makefile | 12 ++-- 1 files

[S390] nss: Free unused memory in kernel image.

2007-02-21 Thread Martin Schwidefsky
From: Heiko Carstens [EMAIL PROTECTED] [S390] nss: Free unused memory in kernel image. With CONFIG_SHARED_KERNEL the kernel text segment that might be in a read only memory sections starts at 1MB. Memory between 0x12000 and 0x10 is unused then. Free this, so we have appr. an extra MB of

Please pull git390 'for-linus' branch

2007-02-21 Thread Martin Schwidefsky
Please pull from 'for-linus' branch of git://git390.osdl.marist.edu/pub/scm/linux-2.6.git for-linus to receive the following updates: arch/s390/Kconfig|4 +- arch/s390/Makefile | 12 ++-- arch/s390/defconfig | 21 +++--

Re: 2.6.20-mm1: PTRACE=y, PROC_FS=n compile error

2007-02-21 Thread Roland McGrath
This causes the following compile error with CONFIG_PTRACE=y, CONFIG_PROC_FS=n: Bah. I moved ptrace_may_attach to fs/proc/base.c so that CONFIG_PTRACE=n could just omit kernel/ptrace.c entirely and still get the function for fs/proc/base.c to use (and because that uses it many more times than

PROBLEM: kernel oops 2.6.20 (ubuntu feisty) when inserting compact flash card

2007-02-21 Thread Stef Epardaud
Hello, I got an oops when inserting my compact flash card in my laptop. The laptop is a Dell X1, using the builtin compact flash reader, which I understand works through PCMCIA. My kernel is stock ubuntu latest unstable: Linux version 2.6.20-8-386 ([EMAIL PROTECTED]) (gcc version 4.1.2 20070129

2.6.13.4 - lockd: weird return 1 for CANCEL call

2007-02-21 Thread Jesper Juhl
Greetings, I just got a unusual message from lockd on a webserver running a custom compiled 2.6.13.4 (yes it is ancient, I know). # uname -a Linux webserv.somedomain.example 2.6.13.4 #1 SMP Wed Nov 16 10:03:05 CET 2005 i686 unknown # dmesg | tail -n 3 do_vfs_lock: VFS is out of sync with lock

<    1   2   3   4   5   6   7   8   9   10   >