kernel/kernel-generic.git
18 years agoMerge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
Linus Torvalds [Wed, 8 Feb 2006 17:58:27 +0000 (09:58 -0800)]
Merge branch 'upstream' of git://ftp.linux-mips.org/upstream-linus

18 years ago[MIPS] Add 'const' to readb and friends
Atsushi Nemoto [Wed, 8 Feb 2006 15:57:44 +0000 (00:57 +0900)]
[MIPS] Add 'const' to readb and friends

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
---

18 years ago[MIPS] Sparse: Add __user tags to syscall.c
Atsushi Nemoto [Wed, 8 Feb 2006 14:39:49 +0000 (23:39 +0900)]
[MIPS] Sparse: Add __user tags to syscall.c

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
---

18 years ago[MIPS] Wire up new syscalls.
Ralf Baechle [Wed, 8 Feb 2006 13:38:50 +0000 (13:38 +0000)]
[MIPS] Wire up new syscalls.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
---

18 years ago[MIPS] Make do_signal return void.
Ralf Baechle [Wed, 8 Feb 2006 13:38:18 +0000 (13:38 +0000)]
[MIPS] Make do_signal return void.

It's return value is ignored everywhere.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
---

18 years ago[MIPS] Add support for TIF_RESTORE_SIGMASK.
Ralf Baechle [Wed, 8 Feb 2006 12:58:41 +0000 (12:58 +0000)]
[MIPS] Add support for TIF_RESTORE_SIGMASK.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
---

18 years agoMerge branch 'for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/bird
Linus Torvalds [Wed, 8 Feb 2006 16:06:09 +0000 (08:06 -0800)]
Merge branch 'for-linus2' of git://git./linux/kernel/git/viro/bird

18 years agoMerge branch 'for-linus' of git://brick.kernel.dk/data/git/linux-2.6-block
Linus Torvalds [Wed, 8 Feb 2006 15:58:18 +0000 (07:58 -0800)]
Merge branch 'for-linus' of git://brick.kernel.dk/data/git/linux-2.6-block

18 years ago[PATCH] alpha: set cpu_possible_map much earlier
Ivan Kokshaysky [Wed, 8 Feb 2006 08:55:06 +0000 (11:55 +0300)]
[PATCH] alpha: set cpu_possible_map much earlier

All the percpu data structure walkers want cpu_possible_map to be
initialized early, but alpha instead populated "hwrpb_cpu_present_mask"
early in setup_smp(), and then initialized cpu_possible_map only much
later.

Thanks go to Heiko Carstens and Dipankar Sarma for noticing.

This fixes it and we can get rid of hwrpb_cpu_present_mask entirely.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] SLOB=y && SMP=y fix
Ingo Molnar [Wed, 8 Feb 2006 09:11:56 +0000 (10:11 +0100)]
[PATCH] SLOB=y && SMP=y fix

fix CONFIG_SLOB=y (when CONFIG_SMP=y): get rid of the 'align' parameter
from its __alloc_percpu() implementation. Boot-tested on x86.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] block: implement elv_insert and use it (fix ordcolor flipping bug)
Tejun Heo [Wed, 8 Feb 2006 09:01:31 +0000 (01:01 -0800)]
[PATCH] block: implement elv_insert and use it (fix ordcolor flipping bug)

q->ordcolor must only be flipped on initial queueing of a hardbarrier
request.

Constructing ordered sequence and requeueing used to pass through
__elv_add_request() which flips q->ordcolor when it sees a barrier
request.

This patch separates out elv_insert() from __elv_add_request() and uses
elv_insert() when constructing ordered sequence and requeueing.
elv_insert() inserts the given request at the specified position and
does nothing else.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Acked-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years agoppc: fix up trivial Kconfig config selection
Linus Torvalds [Wed, 8 Feb 2006 15:51:17 +0000 (07:51 -0800)]
ppc: fix up trivial Kconfig config selection

Quoth BenH:
  "Ok, looks like I forgot to update the Kconfig for the new i2c driver,
   it should select I2C_POWERMAC instead.  Do you want a new patch or
   can you just fix it there ?"

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] blk: Fix SG_IO ioctl failure retry looping
Jens Axboe [Fri, 3 Feb 2006 07:37:08 +0000 (08:37 +0100)]
[PATCH] blk: Fix SG_IO ioctl failure retry looping

When issuing an SG_IO ioctl through sd that resulted in an unrecoverable
error, a nearly infinite retry loop was discovered. This is due to the
fact that the block layer SG_IO code is not setting up rq->retries. This
patch also fixes up the sg_scsi_ioctl path.

Signed-off-by: Brian King <brking@us.ibm.com>
Signed-off-by: Jens Axboe <axboe@suse.de>
18 years ago[PATCH] sh: lvalues abuse in arch/sh/boards/renesas/rts7751r2d/io.c
Al Viro [Thu, 29 Dec 2005 16:45:52 +0000 (11:45 -0500)]
[PATCH] sh: lvalues abuse in arch/sh/boards/renesas/rts7751r2d/io.c

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] m32r_sio iomem annotations
Al Viro [Sat, 4 Feb 2006 01:15:52 +0000 (20:15 -0500)]
[PATCH] m32r_sio iomem annotations

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] mark HISAX_AMD7930 as broken
Al Viro [Wed, 1 Feb 2006 11:45:37 +0000 (06:45 -0500)]
[PATCH] mark HISAX_AMD7930 as broken

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] type-safe min() in prism54
Al Viro [Wed, 1 Feb 2006 11:42:28 +0000 (06:42 -0500)]
[PATCH] type-safe min() in prism54

we do min() on u8 and small integer constant; cast the latter to u8.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] powerpc: Thermal control for dual core G5s
Benjamin Herrenschmidt [Wed, 8 Feb 2006 05:42:51 +0000 (16:42 +1100)]
[PATCH] powerpc: Thermal control for dual core G5s

This patch adds a windfarm module, windfarm_pm112, for the dual core G5s
(both 2 and 4 core models), keeping the machine from getting into
vacuum-cleaner mode ;) For proper credits, the patch was initially
written by Paul Mackerras, and slightly reworked by me to add overtemp
handling among others. The patch also removes the sysfs attributes from
windfarm_pm81 and windfarm_pm91 and instead adds code to the windfarm
core to automagically expose attributes for sensor & controls.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] s390 __get_user() bogus warnings removal
Al Viro [Sat, 4 Feb 2006 01:11:52 +0000 (20:11 -0500)]
[PATCH] s390 __get_user() bogus warnings removal

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] synclink_gt is PCI-only
Al Viro [Wed, 1 Feb 2006 11:07:15 +0000 (06:07 -0500)]
[PATCH] synclink_gt is PCI-only

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] __user annotations in powerpc thread_info
Al Viro [Wed, 1 Feb 2006 12:29:34 +0000 (07:29 -0500)]
[PATCH] __user annotations in powerpc thread_info

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] fix iomem annotations in dart_iommu
Al Viro [Wed, 1 Feb 2006 12:28:02 +0000 (07:28 -0500)]
[PATCH] fix iomem annotations in dart_iommu

it's int __iomem *, not int * __iomem...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] s390 misc __user annotations
Al Viro [Wed, 1 Feb 2006 11:55:59 +0000 (06:55 -0500)]
[PATCH] s390 misc __user annotations

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] compat_ioctl __user annotations
Al Viro [Wed, 1 Feb 2006 11:33:33 +0000 (06:33 -0500)]
[PATCH] compat_ioctl __user annotations

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] sn3 iomem annotations and fixes
Al Viro [Wed, 1 Feb 2006 10:59:06 +0000 (05:59 -0500)]
[PATCH] sn3 iomem annotations and fixes

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] powerpc signal __user annotations
Al Viro [Wed, 1 Feb 2006 10:28:09 +0000 (05:28 -0500)]
[PATCH] powerpc signal __user annotations

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] drivers/media/video __user annotations and fixes
Al Viro [Wed, 1 Feb 2006 10:24:20 +0000 (05:24 -0500)]
[PATCH] drivers/media/video __user annotations and fixes

* compat_alloc_user_space() returns __user pointer
* copying between two userland areas is copy_in_user(), not copy_from_user()
* dereferencing userland pointers is bad
* so's get_user() from local variables

... plus usual __user annotations

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] powermac pci iomem annotations
Al Viro [Wed, 1 Feb 2006 10:18:43 +0000 (05:18 -0500)]
[PATCH] powermac pci iomem annotations

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] s390x compat __user annotations
Al Viro [Wed, 1 Feb 2006 10:16:15 +0000 (05:16 -0500)]
[PATCH] s390x compat __user annotations

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] mips: namespace pollution - mem_... -> __mem_... in io.h
Al Viro [Thu, 8 Dec 2005 04:12:54 +0000 (23:12 -0500)]
[PATCH] mips: namespace pollution - mem_... -> __mem_... in io.h

A pile of internal functions use only inside mips io.h has names starting
with mem_... and clashing with names in drivers; renamed to __mem_....

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] arm: fix dependencies for MTD_XIP
Al Viro [Mon, 19 Dec 2005 21:27:59 +0000 (16:27 -0500)]
[PATCH] arm: fix dependencies for MTD_XIP

MTD_XIP depends on having working asm/mtd-xip.h; it's not just per-architecture
(arm-only, as current Kconfig would have it), but actually per-subarch as
well.  Introduced a new symbol (ARCH_MTD_XIP) set by arch Kconfig; MTD_XIP
depends on it.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years agoMerge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6
Linus Torvalds [Wed, 8 Feb 2006 04:34:29 +0000 (20:34 -0800)]
Merge /pub/scm/linux/kernel/git/davem/sparc-2.6

18 years ago[PATCH] powerpc: Fix sound driver use of i2c
Benjamin Herrenschmidt [Wed, 8 Feb 2006 04:04:18 +0000 (15:04 +1100)]
[PATCH] powerpc: Fix sound driver use of i2c

The PowerMac sound drivers used to rely on a "bug" of the i2c-keywest
driver that implemented I2C_SMBUS_BLOCK_DATA incorrectly, that is it did
what I2C_SMBUS_I2C_BLOCK_DATA should have done. The new i2c-powermac
driver that replaces keywest has this bug fixed, thus the sound drivers
must be fixed too.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc-merge
Linus Torvalds [Wed, 8 Feb 2006 04:32:13 +0000 (20:32 -0800)]
Merge git://git./linux/kernel/git/paulus/powerpc-merge

18 years ago[SPARC64]: Update defconfig.
David S. Miller [Wed, 8 Feb 2006 02:12:34 +0000 (18:12 -0800)]
[SPARC64]: Update defconfig.

Do not enable CONFIG_LOCALVERSION_AUTO by default.
When doing kernel development it just leaves a ton
of crap around.

Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[SPARC]: Wire up sys_unshare().
David S. Miller [Wed, 8 Feb 2006 02:11:24 +0000 (18:11 -0800)]
[SPARC]: Wire up sys_unshare().

Also, the Solaris syscall table is sized differrently,
and does not go beyond entry 255, so trim off the excess
entries.

Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[PATCH] umount_tree() decrements mount count on wrong dentry
Al Viro [Wed, 1 Feb 2006 12:53:21 +0000 (07:53 -0500)]
[PATCH] umount_tree() decrements mount count on wrong dentry

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] nfsroot port= parameter fix [backport of 2.4 fix]
Al Viro [Wed, 4 Jan 2006 06:44:17 +0000 (01:44 -0500)]
[PATCH] nfsroot port= parameter fix [backport of 2.4 fix]

Direct backport of 2.4 fix that didn't get propagated to 2.6; original
comment follows:
<quote>
   When I specify the NFS port for nfsroot (e.g.,
   nfsroot=<dir>,port=2049), the
   kernel uses the wrong port. In my case it tries to use 264 (0x108)
   instead
   of 2049 (0x801).

   This patch adds the missing htons().

   Eric
</quote>

Patch got applied in 2.4.21-pre6.  Author: Eric Lammerts (<eric@lammerts.org>,
AFAICS).

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] arch/x86_64/pci/mmconfig.c NULL noise removal
Al Viro [Sat, 4 Feb 2006 01:28:01 +0000 (20:28 -0500)]
[PATCH] arch/x86_64/pci/mmconfig.c NULL noise removal

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] net/ipv6/mcast.c NULL noise removal
Al Viro [Sat, 4 Feb 2006 01:10:03 +0000 (20:10 -0500)]
[PATCH] net/ipv6/mcast.c NULL noise removal

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] __user annotations of video_spu_palette
Al Viro [Wed, 1 Feb 2006 12:33:44 +0000 (07:33 -0500)]
[PATCH] __user annotations of video_spu_palette

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] amd64 time.c __iomem annotations
Al Viro [Wed, 1 Feb 2006 12:30:33 +0000 (07:30 -0500)]
[PATCH] amd64 time.c __iomem annotations

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] bogus extern in low_i2c.c
Al Viro [Wed, 1 Feb 2006 12:25:14 +0000 (07:25 -0500)]
[PATCH] bogus extern in low_i2c.c

extern in function definition is an odd thing..

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] eeh_driver NULL noise removal
Al Viro [Wed, 1 Feb 2006 12:23:24 +0000 (07:23 -0500)]
[PATCH] eeh_driver NULL noise removal

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] sg gfp_t annotations
Al Viro [Wed, 1 Feb 2006 11:31:40 +0000 (06:31 -0500)]
[PATCH] sg gfp_t annotations

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] scsi_transport_iscsi gfp_t annotations
Al Viro [Wed, 1 Feb 2006 11:30:45 +0000 (06:30 -0500)]
[PATCH] scsi_transport_iscsi gfp_t annotations

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] cmm NULL noise removal, __user annotations
Al Viro [Wed, 1 Feb 2006 11:29:14 +0000 (06:29 -0500)]
[PATCH] cmm NULL noise removal, __user annotations

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] drivers/edac/i82875p_edac.c __user annotations
Al Viro [Wed, 1 Feb 2006 11:10:08 +0000 (06:10 -0500)]
[PATCH] drivers/edac/i82875p_edac.c __user annotations

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] fix __user annotations in drivers/base/memory.c
Al Viro [Wed, 1 Feb 2006 11:06:16 +0000 (06:06 -0500)]
[PATCH] fix __user annotations in drivers/base/memory.c

sysfs store doesn't deal with userland pointers

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] drivers/char/watchdog/sbc_epx_c3.c __user annotations
Al Viro [Wed, 1 Feb 2006 11:04:15 +0000 (06:04 -0500)]
[PATCH] drivers/char/watchdog/sbc_epx_c3.c __user annotations

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] dvb NULL noise removal
Al Viro [Wed, 1 Feb 2006 11:02:50 +0000 (06:02 -0500)]
[PATCH] dvb NULL noise removal

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] kernel/sys.c NULL noise removal
Al Viro [Wed, 1 Feb 2006 10:57:32 +0000 (05:57 -0500)]
[PATCH] kernel/sys.c NULL noise removal

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] timer.c NULL noise removal
Al Viro [Wed, 1 Feb 2006 10:56:41 +0000 (05:56 -0500)]
[PATCH] timer.c NULL noise removal

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] ipv4 NULL noise removal
Al Viro [Wed, 1 Feb 2006 10:54:35 +0000 (05:54 -0500)]
[PATCH] ipv4 NULL noise removal

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] fix __user annotations in fs/select.c
Al Viro [Wed, 1 Feb 2006 10:26:09 +0000 (05:26 -0500)]
[PATCH] fix __user annotations in fs/select.c

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] missing include in ser_a2232
Al Viro [Mon, 30 Jan 2006 06:40:35 +0000 (01:40 -0500)]
[PATCH] missing include in ser_a2232

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] fallout from ptrace consolidation patch: cris/arch-v10
Al Viro [Sun, 29 Jan 2006 03:17:11 +0000 (22:17 -0500)]
[PATCH] fallout from ptrace consolidation patch: cris/arch-v10

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] drivers/scsi/mac53c94.c __iomem annotations
Al Viro [Tue, 6 Dec 2005 11:01:14 +0000 (06:01 -0500)]
[PATCH] drivers/scsi/mac53c94.c __iomem annotations

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] ppc: last_task_.... is defined only on non-SMP
Al Viro [Thu, 19 Jan 2006 03:34:20 +0000 (22:34 -0500)]
[PATCH] ppc: last_task_.... is defined only on non-SMP

... so it should be exported only on non-SMP.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] restore power-off on sparc32
Al Viro [Thu, 19 Jan 2006 00:40:48 +0000 (19:40 -0500)]
[PATCH] restore power-off on sparc32

Damn you, Eric

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] fix breakage in ocp.c
Al Viro [Wed, 18 Jan 2006 23:40:16 +0000 (18:40 -0500)]
[PATCH] fix breakage in ocp.c

it's ocp_device_...., not ocp_driver_....

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] missing includes in drivers/net/mv643xx_eth.c
Al Viro [Thu, 19 Jan 2006 00:35:54 +0000 (19:35 -0500)]
[PATCH] missing includes in drivers/net/mv643xx_eth.c

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] drive_info removal outside of arch/i386
Al Viro [Wed, 21 Dec 2005 18:24:46 +0000 (13:24 -0500)]
[PATCH] drive_info removal outside of arch/i386

drive_info is used only by hd.c and that happens under #ifdef __i386__.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] bogus asm/delay.h includes
Al Viro [Thu, 1 Dec 2005 04:47:05 +0000 (23:47 -0500)]
[PATCH] bogus asm/delay.h includes

asm/delay.h is non-portable; linux/delay.h should be used in generic code.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years ago[PATCH] remove bogus asm/bug.h includes.
Al Viro [Thu, 15 Dec 2005 06:07:03 +0000 (01:07 -0500)]
[PATCH] remove bogus asm/bug.h includes.

A bunch of asm/bug.h includes are both not needed (since it will get
pulled anyway) and bogus (since they are done too early).  Removed.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
18 years agoMerge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6
Linus Torvalds [Wed, 8 Feb 2006 00:29:55 +0000 (16:29 -0800)]
Merge /pub/scm/linux/kernel/git/gregkh/driver-2.6

18 years agoMerge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/i2c-2.6
Linus Torvalds [Wed, 8 Feb 2006 00:29:27 +0000 (16:29 -0800)]
Merge /pub/scm/linux/kernel/git/gregkh/i2c-2.6

18 years agoMerge git://oss.sgi.com:8090/oss/git/rc-fixes-xfs-2.6
Linus Torvalds [Wed, 8 Feb 2006 00:28:26 +0000 (16:28 -0800)]
Merge git://oss.sgi.com:8090/oss/git/rc-fixes-xfs-2.6

18 years ago[PATCH] m68knommu: use tty_schedule_flip() in 68328serial.c
Greg Ungerer [Tue, 7 Feb 2006 23:19:17 +0000 (09:19 +1000)]
[PATCH] m68knommu: use tty_schedule_flip() in 68328serial.c

Use the new tty_schedule_flip() instead of the original direct
schedule_work of the flip buffer.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] m68knommu: use tty_schedule_flip() in 68360serial.c
Greg Ungerer [Tue, 7 Feb 2006 23:19:17 +0000 (09:19 +1000)]
[PATCH] m68knommu: use tty_schedule_flip() in 68360serial.c

Use the new tty_schedule_flip() instead of the original direct
schedule_work of the flip buffer.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] m68knommu: hardirq.h needs definition of NR_IRQS
Greg Ungerer [Tue, 7 Feb 2006 23:19:17 +0000 (09:19 +1000)]
[PATCH] m68knommu: hardirq.h needs definition of NR_IRQS

Need to include the local asm/irq.h to get the NR_IRQS definition.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] m68knommu: need pm_power_off in m68knommu
Greg Ungerer [Tue, 7 Feb 2006 23:19:17 +0000 (09:19 +1000)]
[PATCH] m68knommu: need pm_power_off in m68knommu

Need place holders for the power management power off and idle functions.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] m68knommu: compile fixes for mcfserial.c
Greg Ungerer [Tue, 7 Feb 2006 23:19:17 +0000 (09:19 +1000)]
[PATCH] m68knommu: compile fixes for mcfserial.c

Re-organize the default CONSOLE baud rate define setting so that
it is only set once.

Use the new tty_schedule_flip() instead of the original direct
schedule_work of the flip buffer.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] unshare system call -v5: system call registration for i386
JANAK DESAI [Tue, 7 Feb 2006 20:59:03 +0000 (12:59 -0800)]
[PATCH] unshare system call -v5: system call registration for i386

Registers system call for the i386 architecture.

Signed-off-by: Janak Desai <janak@us.ibm.com>
Cc: Al Viro <viro@ftp.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Michael Kerrisk <mtk-manpages@gmx.net>
Cc: Andi Kleen <ak@muc.de>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] unshare system call -v5: unshare files
JANAK DESAI [Tue, 7 Feb 2006 20:59:02 +0000 (12:59 -0800)]
[PATCH] unshare system call -v5: unshare files

If the file descriptor structure is being shared, allocate a new one and copy
information from the current, shared, structure.

Signed-off-by: Janak Desai <janak@us.ibm.com>
Cc: Al Viro <viro@ftp.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Michael Kerrisk <mtk-manpages@gmx.net>
Cc: Andi Kleen <ak@muc.de>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] unshare system call -v5: unshare vm
JANAK DESAI [Tue, 7 Feb 2006 20:59:01 +0000 (12:59 -0800)]
[PATCH] unshare system call -v5: unshare vm

If vm structure is being shared, allocate a new one and copy information from
the current, shared, structure.

Signed-off-by: Janak Desai <janak@us.ibm.com>
Cc: Al Viro <viro@ftp.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Michael Kerrisk <mtk-manpages@gmx.net>
Cc: Andi Kleen <ak@muc.de>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] unshare system call -v5: unshare namespace
JANAK DESAI [Tue, 7 Feb 2006 20:59:00 +0000 (12:59 -0800)]
[PATCH] unshare system call -v5: unshare namespace

If the namespace structure is being shared, allocate a new one and copy
information from the current, shared, structure.

Signed-off-by: Janak Desai <janak@us.ibm.com>
Cc: Al Viro <viro@ftp.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Michael Kerrisk <mtk-manpages@gmx.net>
Cc: Andi Kleen <ak@muc.de>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] unshare system call -v5: unshare filesystem info
JANAK DESAI [Tue, 7 Feb 2006 20:58:59 +0000 (12:58 -0800)]
[PATCH] unshare system call -v5: unshare filesystem info

If filesystem structure is being shared, allocate a new one and copy
information from the current, shared, structure.

Signed-off-by: Janak Desai <janak@us.ibm.com>
Cc: Al Viro <viro@ftp.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Michael Kerrisk <mtk-manpages@gmx.net>
Cc: Andi Kleen <ak@muc.de>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] unshare system call -v5: system call handler function
JANAK DESAI [Tue, 7 Feb 2006 20:58:58 +0000 (12:58 -0800)]
[PATCH] unshare system call -v5: system call handler function

sys_unshare system call handler function accepts the same flags as clone
system call, checks constraints on each of the flags and invokes corresponding
unshare functions to disassociate respective process context if it was being
shared with another task.

Here is the link to a program for testing unshare system call.

http://prdownloads.sourceforge.net/audit/unshare_test.c?download

Please note that because of a problem in rmdir associated with bind mounts and
clone with CLONE_NEWNS, the test fails while trying to remove temporary test
directory.  You can remove that temporary directory by doing rmdir, twice,
from the command line.  The first will fail with EBUSY, but the second will
succeed.  I have reported the problem to Ram Pai and Al Viro with a small
program which reproduces the problem.  Al told us yesterday that he will be
looking at the problem soon.  I have tried multiple rmdirs from the
unshare_test program itself, but for some reason that is not working.  Doing
two rmdirs from command line does seem to remove the directory.

Signed-off-by: Janak Desai <janak@us.ibm.com>
Cc: Al Viro <viro@ftp.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Michael Kerrisk <mtk-manpages@gmx.net>
Cc: Andi Kleen <ak@muc.de>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] unshare system call -v5: Documentation file
JANAK DESAI [Tue, 7 Feb 2006 20:58:56 +0000 (12:58 -0800)]
[PATCH] unshare system call -v5: Documentation file

Documents the new feature, why it is needed, it's cost, design,
implementation, and test plan.

Signed-off-by: Janak Desai <janak@us.ibm.com>
Cc: Al Viro <viro@ftp.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Andi Kleen <ak@muc.de>
Cc: Paul Mackerras <paulus@samba.org>
Acked-by: Michael Kerrisk <mtk-manpages@gmx.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] Fix spinlock debugging delays to not time out too early
Ingo Molnar [Tue, 7 Feb 2006 20:58:54 +0000 (12:58 -0800)]
[PATCH] Fix spinlock debugging delays to not time out too early

The spinlock-debug wait-loop was using loops_per_jiffy to detect too long
spinlock waits - but on fast CPUs this led to a way too fast timeout and false
messages.

The fix is to include a __delay(1) call in the loop, to correctly approximate
the intended delay timeout of 1 second.  The code assumes that every
architecture implements __delay(1) to last around 1/(loops_per_jiffy*HZ)
seconds.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] mm: compound release fix
Nick Piggin [Tue, 7 Feb 2006 20:58:52 +0000 (12:58 -0800)]
[PATCH] mm: compound release fix

Compound pages on SMP systems can now often be freed from pagetables via
the release_pages path.  This uses put_page_testzero which does not handle
compound pages at all.  Releasing constituent pages from process mappings
decrements their count to a large negative number and leaks the reference
at the head page - net result is a memory leak.

The problem was hidden because the debug check in put_page_testzero itself
actually did take compound pages into consideration.

Fix the bug and the debug check.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Acked-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] selinux: require AUDIT
Stephen Smalley [Tue, 7 Feb 2006 20:58:51 +0000 (12:58 -0800)]
[PATCH] selinux: require AUDIT

Make SELinux depend on AUDIT as it requires the basic audit support to log
permission denials at all.  Note that AUDITSYSCALL remains optional for
SELinux, although it can be useful in providing further information upon
denials.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] Fix build failure in recent pm_prepare_* changes.
Rafael J. Wysocki [Tue, 7 Feb 2006 20:58:50 +0000 (12:58 -0800)]
[PATCH] Fix build failure in recent pm_prepare_* changes.

Fix compilation problem in PM headers.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] More informative message on umount failure
Dave Jones [Tue, 7 Feb 2006 20:58:48 +0000 (12:58 -0800)]
[PATCH] More informative message on umount failure

We had a user trigger this message on a box that had a lot of different
mounts, all with different options.  It might help narrow down wtf happened
if we print out which device failed.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] sys_hpux: fix strlen_user() race
Kyle McMartin [Tue, 7 Feb 2006 20:58:47 +0000 (12:58 -0800)]
[PATCH] sys_hpux: fix strlen_user() race

Userspace can alter the string after the kernel has run strlen_user().

Also: the strlen_user() return value includes the \0, so fix that.

Also: handle EFAULT from strlen_user().

It's unlikely anyone is using this code.  Very, very unlikely.  If I
remember correctly, CONFIG_HPUX turns this code on, but one would actually
need CONFIG_BINFMT_SOM to load a binary that could cause a problem, and
BINFMT_SOM has had an #error in it for quite some time.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] inotify: fix one-shot support
Robert Love [Tue, 7 Feb 2006 20:58:45 +0000 (12:58 -0800)]
[PATCH] inotify: fix one-shot support

Fix one-shot support in inotify.  We currently drop the IN_ONESHOT flag
during watch addition.  Fix is to not do that.

Signed-off-by: Robert Love <rml@novell.com>
Cc: John McCutchan <ttb@tentacle.dhs.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] module: strlen_user() race fix
Andrew Morton [Tue, 7 Feb 2006 20:58:45 +0000 (12:58 -0800)]
[PATCH] module: strlen_user() race fix

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] uml: remove a dead file
Jeff Dike [Tue, 7 Feb 2006 20:58:44 +0000 (12:58 -0800)]
[PATCH] uml: remove a dead file

A previous patch removed a file from the build without removing it from the
tree.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] uml: initialize process FP registers properly
Jeff Dike [Tue, 7 Feb 2006 20:58:43 +0000 (12:58 -0800)]
[PATCH] uml: initialize process FP registers properly

We weren't making sure that we initialized the FP registers of new processes
to sane values.

This patch also moves some defines in the affected area closer to where they
are used.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] uml: block SIGWINCH in ptrace tester child
Jeff Dike [Tue, 7 Feb 2006 20:58:42 +0000 (12:58 -0800)]
[PATCH] uml: block SIGWINCH in ptrace tester child

The process that UML uses to probe the host's ptrace capabilities can (rarely)
receive a SIGWINCH, confusing the parent.  This fixes that by blocking
SIGWINCH.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] uml: balance list_add and list_del in the network driver
Jeff Dike [Tue, 7 Feb 2006 20:58:42 +0000 (12:58 -0800)]
[PATCH] uml: balance list_add and list_del in the network driver

The network driver added an interface to the "opened" list when it was
configured, not when it was brought up, and removed it when it was taken down.
 A sequence of ifconfig up, ifconfig down, ...  caused it to be removed
multiple times from the list without being added in between, resulting in a
crash.  This patch moves the add to when the interface is brought up.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] uml: close TUN/TAP file descriptors
Jeff Dike [Tue, 7 Feb 2006 20:58:41 +0000 (12:58 -0800)]
[PATCH] uml: close TUN/TAP file descriptors

When UML opens a TUN/TAP device, the file descriptor could be copied into
later, long-lived threads, holding the device open even after the interface is
taken down, preventing it from being brought up again.  This patch makes these
descriptors close-on-exec so that they disappear from helper processes, and
adds CLONE_FILES to a UML helper thread so that the descriptors are closed in
the thread when they are closed elsewhere in UML.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] uml: add debug switch for skas mode
Jeff Dike [Tue, 7 Feb 2006 20:58:40 +0000 (12:58 -0800)]
[PATCH] uml: add debug switch for skas mode

It doesn't do anything but emit a warning, but there's a user population
that's used to adding 'debug' to the UML command line in order to gdb it.
With skas0 mode, that's not necessary, but these users need some indication
that 'debug' doesn't do what they want.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] Fix do_path_lookup() to add the check for error in link_path_walk()
Suzuki [Tue, 7 Feb 2006 20:58:36 +0000 (12:58 -0800)]
[PATCH] Fix do_path_lookup() to add the check for error in link_path_walk()

Fix do_path_lookup() to avoid accessing invalid dentry or inode when the
link_path_walk() has failed.  This should fix Bugme #5897.

Signed-off-by: Suzuki K P <suzuki@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] __cmpxchg() must really always be inlined on alpha
Steve Langasek [Tue, 7 Feb 2006 20:58:35 +0000 (12:58 -0800)]
[PATCH] __cmpxchg() must really always be inlined on alpha

With the latest 2.6.15 kernel builds for alpha on Debian, we ran into a
problem with undefined references to __cmpxchg_called_with_bad_pointer() in
a couple of kernel modules (xfs.ko and drm.ko; see
http://bugs.debian.org/347556).

It looks like people have been trying to out-clever each other wrt the
definition of "inline" on this architecture :), with the result that
__cmpxchg(), which must be inlined so the compiler can see its argument is
const, is not guaranteed to be inlined.  Indeed, it was not being inlined
when building with -Os.

The attached patch fixes the issue by adding an
__attribute__((always_inline)) explicitly to the definition of __cmpxchg()
instead of relying on redefines of "inline" elsewhere to make this happen.

Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] ide: cast arguments to pr_debug() properly
Michael Richardson [Tue, 7 Feb 2006 20:58:33 +0000 (12:58 -0800)]
[PATCH] ide: cast arguments to pr_debug() properly

This does not show up unless you #define DEBUG in the file, which most
people wouldn't do.  On PPC405, at least, "sector_t" is unsigned long,
which doesn't match %llx/%llu.  Since sector# may well be >32 bits, promote
the value to match the format.

Signed-off-by: Michael Richardson <mcr@xelerance.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] knfsd: fix nfs4_open lock leak
J. Bruce Fields [Tue, 7 Feb 2006 20:58:32 +0000 (12:58 -0800)]
[PATCH] knfsd: fix nfs4_open lock leak

I just noticed that my patch "don't create on open that fails due to
ERR_GRACE" (recently commited as fb553c0f17444e090db951b96df4d2d71b4f4b6b)
had an obvious problem that causes a deadlock on reboot recovery.  Sending
in this now since it seems like a clear 2.6.16 candidate.--b.

We're returning with a lock held in some error cases.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] hugetlbpage: return VM_FAULT_OOM on oom
Christoph Lameter [Tue, 7 Feb 2006 20:58:30 +0000 (12:58 -0800)]
[PATCH] hugetlbpage: return VM_FAULT_OOM on oom

Remove wrong and misleading comments.

Return VM_FAULT_OOM if the hugetlbpage fault handler cannot allocate a
page.  do_no_page will end up doing do_exit(SIGKILL).

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] Hugepages need clear_user_highpage() not clear_highpage()
David Gibson [Tue, 7 Feb 2006 20:58:25 +0000 (12:58 -0800)]
[PATCH] Hugepages need clear_user_highpage() not clear_highpage()

When hugepages are newly allocated to a file in mm/hugetlb.c, we clear them
with a call to clear_highpage() on each of the subpages.  We should be
using clear_user_highpage(): on powerpc, at least, clear_highpage() doesn't
correctly mark the page as icache dirty so if the page is executed shortly
after it's possible to get strange results.

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Acked-by: William Lee Irwin III <wli@holomorphy.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>