]> git.hungrycats.org Git - linux/log
linux
22 years agoMerge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/sn2defconfig
Tony Luck [Fri, 3 Sep 2004 05:46:43 +0000 (05:46 +0000)]
Merge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/sn2defconfig
into agluck-lia64.sc.intel.com:/data/home/aegl/BK/linux-ia64-release-2.6.9

22 years agoMerge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/oprofile
Tony Luck [Fri, 3 Sep 2004 05:44:45 +0000 (05:44 +0000)]
Merge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/oprofile
into agluck-lia64.sc.intel.com:/data/home/aegl/BK/linux-ia64-release-2.6.9

22 years agoMerge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/jesse
Tony Luck [Fri, 3 Sep 2004 05:42:46 +0000 (05:42 +0000)]
Merge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/jesse
into agluck-lia64.sc.intel.com:/data/home/aegl/BK/linux-ia64-release-2.6.9

22 years agoMerge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/ian
Tony Luck [Fri, 3 Sep 2004 05:40:50 +0000 (05:40 +0000)]
Merge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/ian
into agluck-lia64.sc.intel.com:/data/home/aegl/BK/linux-ia64-release-2.6.9

22 years agoMerge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/eranian
Tony Luck [Fri, 3 Sep 2004 05:39:05 +0000 (05:39 +0000)]
Merge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/eranian
into agluck-lia64.sc.intel.com:/data/home/aegl/BK/linux-ia64-release-2.6.9

22 years agoMerge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/dean-oemsal
Tony Luck [Fri, 3 Sep 2004 05:37:13 +0000 (05:37 +0000)]
Merge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/dean-oemsal
into agluck-lia64.sc.intel.com:/data/home/aegl/BK/linux-ia64-release-2.6.9

22 years ago[IA64] VIRTUAL_MEM_MAP can be set when DISCONTIGMEM isn't; handle it
Ian Wienand [Fri, 3 Sep 2004 05:34:20 +0000 (05:34 +0000)]
[IA64] VIRTUAL_MEM_MAP can be set when DISCONTIGMEM isn't; handle it

Patch developed by Ian Wienand under advice from Bill Irwin.

Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years ago[IA64] perfmon.c: cleanup system-wide context when closed from another cpu
Stéphane Eranian [Mon, 30 Aug 2004 22:20:37 +0000 (22:20 +0000)]
[IA64] perfmon.c: cleanup system-wide context when closed from another cpu

- fix pfm_stop() and pfm_flush_pmds() to correctly cleanup
  in case of a system-wide context which is closed while running
  from another processor. This was leading to an assertion failure
  in pfm_loads_regs() for the next user of the PMU on the monitored
  CPU.

signed-off-by: stephane eranian <eranian@hpl.hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years ago[IA64] palinfo.c: typo s/BEER/BERR/
Stéphane Eranian [Mon, 30 Aug 2004 22:15:50 +0000 (22:15 +0000)]
[IA64] palinfo.c: typo s/BEER/BERR/

- fix a typo in the file /proc/pal/CPU*/processor_info w.r.t.
  to BERR promotion. Initially reported by Danny Kwong from HP.

Signed-off-by: stephane eranian <eranian@hpl.hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years ago[IA64-SGI] sn2_defconfig: Enable preempt, CPU hotplug, ext2 and IDE.
Jesse Barnes [Mon, 30 Aug 2004 20:49:38 +0000 (20:49 +0000)]
[IA64-SGI] sn2_defconfig: Enable preempt, CPU hotplug, ext2 and IDE.

o enable preempt per Andrew's request for testing
o enable CPU hotplug for testing
o add EXT2 and IDE disk support to make simulation easy

Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years ago[IA64] support for IA64 hardware performance counters via the perfmon interface
John Levon [Wed, 25 Aug 2004 22:40:12 +0000 (22:40 +0000)]
[IA64] support for IA64 hardware performance counters via the perfmon interface

   This patch provides support for IA64 hardware performance counters via
   the perfmon interface. Please consider applying.

Signed-off-by: John Levon <levon@movementarian.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years ago[IA64] allow OEM written modules to make calls to ia64 OEM SAL functions.
Dean Nelson [Wed, 25 Aug 2004 18:27:33 +0000 (18:27 +0000)]
[IA64] allow OEM written modules to make calls to ia64 OEM SAL functions.

Add wrapper functions for SAL_CALL(), SAL_CALL_NOLOCK(), and
SAL_CALL_REENTRANT() that allow OEM written modules to make
calls to ia64 OEM SAL functions.

Signed-off-by: Dean Nelson <dcn@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years ago[IA64] Remove extraneous MMU_TRACE debugging macros
Ian Wienand [Wed, 25 Aug 2004 18:21:19 +0000 (18:21 +0000)]
[IA64] Remove extraneous MMU_TRACE debugging macros

Patch created by Ian Wienand.

Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years ago[IA64] generic_defconfig: Enable codepage/iocharset for VFAT filesystems.
Jesse Barnes [Wed, 25 Aug 2004 17:45:09 +0000 (17:45 +0000)]
[IA64] generic_defconfig: Enable codepage/iocharset for VFAT filesystems.

VFAT filesystems need to have codepages and iocharsets specified these days,
so build some into the kernel to make it easier to mount /boot/efi on ia64
systems.

Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years ago[IA64] Add include pagemap.h to tlb.h to fix warnings when CONFIG_SWAP=n.
Jesse Barnes [Wed, 25 Aug 2004 17:39:35 +0000 (17:39 +0000)]
[IA64] Add include pagemap.h to tlb.h to fix warnings when CONFIG_SWAP=n.

I noticed when building with CONFIG_SWAP=n that tlb.h gave a warning about
some undefined symbols.  This is because it was pulling them in through
swap.h, but when CONFIG_SWAP=n, they're no longer pulled in.  Adding
pagemap.h to tlb.h fixes the problem.

Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years ago[IA64-SGI] Add full PROM version banner to /proc/sgi_prominfo/nodeXX/version.
Brian J. Johnson [Wed, 25 Aug 2004 17:30:26 +0000 (17:30 +0000)]
[IA64-SGI] Add full PROM version banner to /proc/sgi_prominfo/nodeXX/version.

Signed-off-by: Brian J. Johnson <bjohnson@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years agoMerge agluck-lia64.sc.intel.com:/data/home/aegl/BK/Linus
Tony Luck [Tue, 24 Aug 2004 16:28:11 +0000 (16:28 +0000)]
Merge agluck-lia64.sc.intel.com:/data/home/aegl/BK/Linus
into agluck-lia64.sc.intel.com:/data/home/aegl/BK/linux-ia64-release-2.6.9

22 years agoMerge agluck-lia64.sc.intel.com:/data/home/aegl/BK/linux-ia64-test-2.6.8.1
Tony Luck [Mon, 23 Aug 2004 18:06:07 +0000 (18:06 +0000)]
Merge agluck-lia64.sc.intel.com:/data/home/aegl/BK/linux-ia64-test-2.6.8.1
into agluck-lia64.sc.intel.com:/data/home/aegl/BK/linux-ia64-release-2.6.8.1

22 years agoLinux 2.6.9-rc1 v2.6.9-rc1
Linus Torvalds [Mon, 23 Aug 2004 16:59:58 +0000 (09:59 -0700)]
Linux 2.6.9-rc1

22 years ago[PATCH] ppc64: use struct list_head for hose_list
Paul Mackerras [Mon, 23 Aug 2004 16:39:00 +0000 (09:39 -0700)]
[PATCH] ppc64: use struct list_head for hose_list

This patch changes hose_list from a simple linked list to a
"list.h"-style list.  This is in preparation for the runtime
addition/removal of PCI Host Bridges.

Signed-off-by: John Rose <johnrose@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: fix enable_surveillance() for power5
Nathan Fontenot [Mon, 23 Aug 2004 16:38:48 +0000 (09:38 -0700)]
[PATCH] ppc64: fix enable_surveillance() for power5

On some platforms (notably power5) you can't enable surveillance
(firmware/service processor watchdog) from the kernel - you have to do
it in the firmware.

This patch changes enable_surveillance() to make the message that is
printed in this situation more informative.  Additionaly, the rtas_call
was changed to rtas_set_indicator so as to avoid having to handle
RTAS_BUSY returns.

Signed-off-by: Nathan Fontenot <nfont@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge bk://ppc.bkbits.net/for-linus-ppc64
Linus Torvalds [Mon, 23 Aug 2004 14:24:32 +0000 (07:24 -0700)]
Merge bk://ppc.bkbits.net/for-linus-ppc64
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoUse F_SETLK instead of F_SETLK64 in nfs locking code.
Linus Torvalds [Mon, 23 Aug 2004 14:13:03 +0000 (07:13 -0700)]
Use F_SETLK instead of F_SETLK64 in nfs locking code.

The code doesn't actually _care_ about 32/64-bit issues,
only about F_SETLK vs F_SETLKW, and the F_SETLK64 doesn't
exist except as a compatibility thing on 64-bit architectures
(since the regular one already _is_ 64-bit, of course).

22 years agoMerge http://nfsclient.bkbits.net/linux-2.6
Trond Myklebust [Mon, 23 Aug 2004 17:41:30 +0000 (13:41 -0400)]
Merge http://nfsclient.bkbits.net/linux-2.6
into fys.uio.no:/home/linux/bitkeeper/nfsclient-2.6

22 years agoRPC,NFSv4: NFSv4 operations that create or destroy state on the
Trond Myklebust [Mon, 23 Aug 2004 16:02:36 +0000 (12:02 -0400)]
RPC,NFSv4: NFSv4 operations that create or destroy state on the
   server are not allowed to be interrupted as that may result in the
   client and server disagreeing.

22 years agoNFSv4: Enable delegations by actually telling the server about our
Trond Myklebust [Mon, 23 Aug 2004 16:01:42 +0000 (12:01 -0400)]
NFSv4: Enable delegations by actually telling the server about our
   recall ability.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFSv4: return all delegations we hold if the server issues a
Trond Myklebust [Mon, 23 Aug 2004 16:00:57 +0000 (12:00 -0400)]
NFSv4: return all delegations we hold if the server issues a
   NFS4ERR_CB_PATH_DOWN error.

22 years agoNFSv4: More aggressive caching if we have a delegation.
Trond Myklebust [Mon, 23 Aug 2004 16:00:15 +0000 (12:00 -0400)]
NFSv4: More aggressive caching if we have a delegation.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFSv4: Delegated open.
Trond Myklebust [Mon, 23 Aug 2004 15:59:17 +0000 (11:59 -0400)]
NFSv4: Delegated open.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFSv4: Recover delegations on server reboot.
Trond Myklebust [Mon, 23 Aug 2004 15:58:37 +0000 (11:58 -0400)]
NFSv4: Recover delegations on server reboot.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFSv4: More delegation recall code
Trond Myklebust [Mon, 23 Aug 2004 15:57:44 +0000 (11:57 -0400)]
NFSv4: More delegation recall code

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFSv4: Service delegation recall requests from the server.
Trond Myklebust [Mon, 23 Aug 2004 15:56:58 +0000 (11:56 -0400)]
NFSv4: Service delegation recall requests from the server.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFSv4: Further XDR cleanups in preparation for delegations.
Trond Myklebust [Mon, 23 Aug 2004 15:56:12 +0000 (11:56 -0400)]
NFSv4: Further XDR cleanups in preparation for delegations.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFSv4: XDR cleanups in preparation for delegations.
Trond Myklebust [Mon, 23 Aug 2004 15:55:27 +0000 (11:55 -0400)]
NFSv4: XDR cleanups in preparation for delegations.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFSv4: Add support for a delegation callback server.
Trond Myklebust [Mon, 23 Aug 2004 15:54:38 +0000 (11:54 -0400)]
NFSv4: Add support for a delegation callback server.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFSv4: Basic code for managing delegation state.
Trond Myklebust [Mon, 23 Aug 2004 15:53:27 +0000 (11:53 -0400)]
NFSv4: Basic code for managing delegation state.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoMerge fys.uio.no:/home/linux/bitkeeper/nfsclient-2.6
Trond Myklebust [Mon, 23 Aug 2004 15:30:42 +0000 (11:30 -0400)]
Merge fys.uio.no:/home/linux/bitkeeper/nfsclient-2.6
into fys.uio.no:/home/linux/bitkeeper/work/nfsclient-2.6

22 years agoMerge http://nfsclient.bkbits.net/linux-2.6
Trond Myklebust [Mon, 23 Aug 2004 15:24:13 +0000 (11:24 -0400)]
Merge http://nfsclient.bkbits.net/linux-2.6
into fys.uio.no:/home/linux/bitkeeper/nfsclient-2.6

22 years agoNFSv2/v3/v4: Make the rpc_ops->getattr method take a filehandle
Trond Myklebust [Mon, 23 Aug 2004 15:21:20 +0000 (11:21 -0400)]
NFSv2/v3/v4: Make the rpc_ops->getattr method take a filehandle
   rather than an inode argument. Fix up nfs_instantiate() and
   _nfs4_do_open to use this since doing a new lookup might be racy.

22 years agoNFSv4: don't retry CREATE operations if the server returns
Trond Myklebust [Mon, 23 Aug 2004 15:20:15 +0000 (11:20 -0400)]
NFSv4: don't retry CREATE operations if the server returns
   NFS4ERR_DELAY on the GETATTR call.

22 years agoNFSv4: More cleanups of the NFSv4 state.
Trond Myklebust [Mon, 23 Aug 2004 15:19:39 +0000 (11:19 -0400)]
NFSv4: More cleanups of the NFSv4 state.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFSv2/v3/v4: Place NFS nfs_page shared data into a single structure
Trond Myklebust [Mon, 23 Aug 2004 15:19:03 +0000 (11:19 -0400)]
NFSv2/v3/v4: Place NFS nfs_page shared data into a single structure
   that hangs off filp->private_data. As a side effect, this also
   cleans up the NFSv4 private file state info.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFSv4: Prime SETCLIENTID call for the delegation callback info.
Trond Myklebust [Mon, 23 Aug 2004 15:18:15 +0000 (11:18 -0400)]
NFSv4: Prime SETCLIENTID call for the delegation callback info.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFSv4: On server reboot we need to recover byte-range locks.
Trond Myklebust [Mon, 23 Aug 2004 15:17:43 +0000 (11:17 -0400)]
NFSv4: On server reboot we need to recover byte-range locks.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFSv4: Clean up the reboot recovery. Ensure that we exclude stateful
Trond Myklebust [Mon, 23 Aug 2004 15:16:50 +0000 (11:16 -0400)]
NFSv4: Clean up the reboot recovery. Ensure that we exclude stateful
   operations by using a per-server read/write semaphore.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFSv4: Fix up the exception handling. Ensure we always handle
Trond Myklebust [Mon, 23 Aug 2004 15:14:18 +0000 (11:14 -0400)]
NFSv4: Fix up the exception handling. Ensure we always handle
   NFS4ERR_DELAY properly.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoMerge http://nfsclient.bkbits.net/linux-2.6
Trond Myklebust [Mon, 23 Aug 2004 15:00:16 +0000 (11:00 -0400)]
Merge http://nfsclient.bkbits.net/linux-2.6
into fys.uio.no:/home/linux/bitkeeper/nfsclient-2.6

22 years agoNFSv2: In the NFSv3 RFC, the sattr3 structure passed in the SETATTR
Trond Myklebust [Mon, 23 Aug 2004 14:18:16 +0000 (10:18 -0400)]
NFSv2: In the NFSv3 RFC, the sattr3 structure passed in the SETATTR
   call allows for the client to request that the mtime and/or atime
   of an inode be set to the current server time, the given (client)
   time, or not changed.  The set-to-current-server value is used
   when you run "touch file" on the client.

The NFSv2 RFC defines no such encoding for the sattr structure.
   However Solaris and Irix machine obey a convention where passing
   the invalid value mtime.useconds=1000000 means "set both mtime and
   atime to the current server time".  The convention is documented
   in the book "NFS Illustrated" by Brent Callaghan.  The patch below
   implements this convention for the Linux client and server (hence
   multiple To:s).

Signed-off-by: Greg Banks <gnb@sgi.com>
Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoKCONFIG: In the kernel help for NFSv3 & NFSv4 client support both are
Trond Myklebust [Mon, 23 Aug 2004 14:17:20 +0000 (10:17 -0400)]
KCONFIG: In the kernel help for NFSv3 & NFSv4 client support both are
   listed as "the newer version ... of the NFS protocol". Obviously
   both can't be the newer version at the same time, so here's a
   patch to correct the text in such a way that only v4 is listed as
   the newer version. Patch is against 2.6.7-rc3 - please consider
   including it.

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFS: Now that file handle comparison ignores the unused parts of the
Trond Myklebust [Mon, 23 Aug 2004 14:16:26 +0000 (10:16 -0400)]
NFS: Now that file handle comparison ignores the unused parts of the
   file handle container, there is no longer any need to clear the
   file handle container before copying in a file handle.  This
   allows us to remove a 128 byte memset() from several hot paths.

Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFS: While the storage container for NFS file handles must be able to
Trond Myklebust [Mon, 23 Aug 2004 14:15:49 +0000 (10:15 -0400)]
NFS: While the storage container for NFS file handles must be able to
   store 128 bytes, usually NFS servers don't use file handles that
   are more than 32 bytes in size.  This patch creates an efficient
   mechanism for comparing file handles that ignores the unused bytes
   in a file handle.

Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFS: In 2.4, NFS O_DIRECT used the VFS's O_DIRECT logic to provide
Trond Myklebust [Mon, 23 Aug 2004 14:15:13 +0000 (10:15 -0400)]
NFS: In 2.4, NFS O_DIRECT used the VFS's O_DIRECT logic to provide
   direct I/O support for NFS files.  The 2.4 VFS O_DIRECT logic was
   block based, thus the NFS client had to provide a minimum
   allowable blocksize for O_DIRECT reads and writes on NFS files.
   For various reasons we chose 512 bytes. In 2.6, there is no
   requirement for a minimum blocksize.  NFS O_DIRECT reads and
   writes can go to any byte at any offset in a file.  Thus we revert
   the blocksize setting for NFS file systems to the previous
   behavior, which was to advertise the "wsize" setting as the
   optimal I/O block size.  This improves the performance of
   applications like 'cp' which use this value as their transfer
   size.

This patch also exposes the server's reported disk block size in the
   f_frsize of the vfsstat structure.

Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFS: Clean up the logic that handles recovery from a failed mount
Trond Myklebust [Mon, 23 Aug 2004 14:14:06 +0000 (10:14 -0400)]
NFS: Clean up the logic that handles recovery from a failed mount
   request. Get rid of nfs_put_super.

Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFS: Break the nfs_wreq_lock into per-mount locks. This helps prevent
Trond Myklebust [Mon, 23 Aug 2004 14:13:19 +0000 (10:13 -0400)]
NFS: Break the nfs_wreq_lock into per-mount locks. This helps prevent
   a heavy read and write workload on one mount point from
   interfering with workloads on other mount points.

Note that there is still some serialization due to the big kernel
   lock.

Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoRPCSEC_GSS: Add the spkm3 common and client-side code.
Trond Myklebust [Mon, 23 Aug 2004 14:12:24 +0000 (10:12 -0400)]
RPCSEC_GSS: Add the spkm3 common and client-side code.

Signed-off-by: Andy Adamson <andros@citi.umich.edu>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoRPCSEC_GSS: Missing newline in dprintk.
Trond Myklebust [Mon, 23 Aug 2004 14:11:15 +0000 (10:11 -0400)]
RPCSEC_GSS: Missing newline in dprintk.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFSv4: OK, so it's trivial and probably superfluous, but I don't see
Trond Myklebust [Mon, 23 Aug 2004 14:10:18 +0000 (10:10 -0400)]
NFSv4: OK, so it's trivial and probably superfluous, but I don't see
   why we shouldn't be slightly stricter here, so I'm just going to
   keep sending this until I'm told to stop.... Make sure that
   unmapped errors are approximately in the range of defined NFS4
   errors.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoRPCSEC_GSS: Remove an unused parameter.
Trond Myklebust [Mon, 23 Aug 2004 14:09:18 +0000 (10:09 -0400)]
RPCSEC_GSS: Remove an unused parameter.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoRPC: Improved buffer overrun checking in call_verify
Trond Myklebust [Mon, 23 Aug 2004 14:08:34 +0000 (10:08 -0400)]
RPC: Improved buffer overrun checking in call_verify

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFSv4: Fix the symlink overflow bug.
Trond Myklebust [Mon, 23 Aug 2004 14:07:46 +0000 (10:07 -0400)]
NFSv4: Fix the symlink overflow bug.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFSv4: Optimizing away the case of negative dentries in
Trond Myklebust [Mon, 23 Aug 2004 14:06:32 +0000 (10:06 -0400)]
NFSv4: Optimizing away the case of negative dentries in
   nfs_open_revalidate() avoids several atomicity problems.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFSv3/v4: be more efficient when doing ACCESS RPC calls. Always ask
Trond Myklebust [Mon, 23 Aug 2004 14:05:01 +0000 (10:05 -0400)]
NFSv3/v4: be more efficient when doing ACCESS RPC calls. Always ask
   for the full set of permissions.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoRPC: Add missing variable initialization in rpc_clone_client().
Trond Myklebust [Mon, 23 Aug 2004 14:03:52 +0000 (10:03 -0400)]
RPC: Add missing variable initialization in rpc_clone_client().

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNFSv4: ask the server to send us more readdir records per RPC call.
Trond Myklebust [Mon, 23 Aug 2004 14:03:14 +0000 (10:03 -0400)]
NFSv4: ask the server to send us more readdir records per RPC call.
   Currently we are wasting considerable amounts of space in the page
   cache.

NFSv4: fix buffer overrun bugs that were being hidden by the above.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoRPC: Reduce stack utilization for all synchronous NFS operations by
Trond Myklebust [Mon, 23 Aug 2004 14:01:57 +0000 (10:01 -0400)]
RPC: Reduce stack utilization for all synchronous NFS operations by
   using a dynamically allocated rpc_task structure instead of
   allocating one on the stack.  This reduces stack utilization by
   over 200 bytes for all synchronous NFS operations.

Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoNLM: Fix a bug which causes a newly granted lock to be
Trond Myklebust [Mon, 23 Aug 2004 14:00:36 +0000 (10:00 -0400)]
NLM: Fix a bug which causes a newly granted lock to be
   immediately unlocked on the server side if blocking
   has occurred.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
22 years agoMerge bk://linux-dj.bkbits.net/agpgart
Linus Torvalds [Mon, 23 Aug 2004 11:12:51 +0000 (04:12 -0700)]
Merge bk://linux-dj.bkbits.net/agpgart
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoUse inline function instead of macro.
Linus Torvalds [Mon, 23 Aug 2004 11:00:53 +0000 (04:00 -0700)]
Use inline function instead of macro.

This means we won't get any warnings about unused
variables - they _are_ used in some configurations.

22 years agoRemove pointless cast-as-lvalue usage from modedb.c
Linus Torvalds [Mon, 23 Aug 2004 10:59:22 +0000 (03:59 -0700)]
Remove pointless cast-as-lvalue usage from modedb.c

It's evil, people. Don't use that particular gcc extension.
I've yet to meet anybody who could read the resulting code
and tell me what the heck it does.

22 years agoFix up 0/NULL confusion
Linus Torvalds [Mon, 23 Aug 2004 10:58:09 +0000 (03:58 -0700)]
Fix up 0/NULL confusion

22 years agosparse: don't use signed single-bit bitfields.
Linus Torvalds [Mon, 23 Aug 2004 10:57:08 +0000 (03:57 -0700)]
sparse: don't use signed single-bit bitfields.

K&R used to make bitfields unsigned. That hasn't been
true for a long long time..

22 years agoDon't use signed one-bit bitfields.
Linus Torvalds [Mon, 23 Aug 2004 10:10:29 +0000 (03:10 -0700)]
Don't use signed one-bit bitfields.

We assign 0 and 1 to it, but since it's signed, that's
actually already overflowing the poor thing. So make
it unsigned, which is what it really was supposed to be
in the first place.

22 years agoFix i2c-keywest compile
Linus Torvalds [Mon, 23 Aug 2004 10:08:37 +0000 (03:08 -0700)]
Fix i2c-keywest compile

Declare probe _before_ using it. Duh.

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-mmc
Linus Torvalds [Mon, 23 Aug 2004 08:41:23 +0000 (01:41 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-mmc
into ppc970.osdl.org:/home/torvalds/v2.6/linux

Manual merge of arch/arm/Kconfig conflicts

22 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.6
Linus Torvalds [Mon, 23 Aug 2004 08:08:25 +0000 (01:08 -0700)]
Merge bk://kernel.bkbits.net/davem/sparc-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
David S. Miller [Mon, 23 Aug 2004 14:56:17 +0000 (07:56 -0700)]
Merge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
into kernel.bkbits.net:/home/davem/sparc-2.6

22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
David S. Miller [Mon, 23 Aug 2004 14:51:41 +0000 (07:51 -0700)]
Merge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
into kernel.bkbits.net:/home/davem/sparc-2.6

22 years ago[SPARC64]: Update defconfig.
David S. Miller [Mon, 23 Aug 2004 07:41:35 +0000 (00:41 -0700)]
[SPARC64]: Update defconfig.

22 years ago[SPARC64]: Durrrr, missed signal handling fix from 2.4.x
David S. Miller [Mon, 23 Aug 2004 07:37:11 +0000 (00:37 -0700)]
[SPARC64]: Durrrr, missed signal handling fix from 2.4.x

Passing sigcontext info in UREG_I2, as needed.
I only spotted this because I was diffing 2.4.x
and 2.6.x sparc64 code.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years agoMerge bk://linux-ntfs.bkbits.net/ntfs-2.6
Linus Torvalds [Mon, 23 Aug 2004 07:37:07 +0000 (00:37 -0700)]
Merge bk://linux-ntfs.bkbits.net/ntfs-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge cantab.net:/home/src/bklinux-2.6
Anton Altaparmakov [Mon, 23 Aug 2004 11:57:35 +0000 (12:57 +0100)]
Merge cantab.net:/home/src/bklinux-2.6
into cantab.net:/home/src/ntfs-2.6

22 years ago[SPARC64]: Implement little-endian bitops using normal ones.
David S. Miller [Mon, 23 Aug 2004 07:36:20 +0000 (00:36 -0700)]
[SPARC64]: Implement little-endian bitops using normal ones.

Just like s390 and ppc64.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[SPARC64]: Kill bogus __strlen symbol and strncmp inline cruft.
David S. Miller [Mon, 23 Aug 2004 07:35:39 +0000 (00:35 -0700)]
[SPARC64]: Kill bogus __strlen symbol and strncmp inline cruft.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[SPARC64]: Fix bugs in new U1memcpy code.
David S. Miller [Mon, 23 Aug 2004 07:34:58 +0000 (00:34 -0700)]
[SPARC64]: Fix bugs in new U1memcpy code.

- U1copy_from_user needs PREAMBLE since it uses
  explicit ASI_BLK_AIUS references.
- Need to use EX_RETVAL() in U1memcpy.S
- U1memcpy.S can load one 64-bit word too
  many, passing the source buffer boundary
  and thus potentially causing exceptions.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[SPARC64]: Revamped memcpy infrastructure.
David S. Miller [Mon, 23 Aug 2004 07:33:47 +0000 (00:33 -0700)]
[SPARC64]: Revamped memcpy infrastructure.

- Make it easier to maintain the Ultra-I vs. Ultra-III
  memcpy implementations.  Before you had to maintain
  3 different entire copies of the routines.
- Kill %asi register writing Ultra-I single memcpy loop
  for both user and kernel.  Was not worth it.
- Simplify exception detection and handling enormously.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Mon, 23 Aug 2004 07:29:47 +0000 (00:29 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[SPARC64]: Fix PCI IOMMU invalid iopte handling.
David S. Miller [Mon, 23 Aug 2004 07:28:39 +0000 (00:28 -0700)]
[SPARC64]: Fix PCI IOMMU invalid iopte handling.

Instead of marking them as invalid, point them
at a dummy page.  This handles buggy third-party
bridges that erroneously prefetch sometimes.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years agoMerge bk://kernel.bkbits.net/gregkh/linux/usb-2.6
Linus Torvalds [Mon, 23 Aug 2004 07:24:17 +0000 (00:24 -0700)]
Merge bk://kernel.bkbits.net/gregkh/linux/usb-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://kernel.bkbits.net/gregkh/linux/pci-2.6
Linus Torvalds [Mon, 23 Aug 2004 07:22:41 +0000 (00:22 -0700)]
Merge bk://kernel.bkbits.net/gregkh/linux/pci-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

Manual merge of kernel/params.c clashes.

22 years ago[PATCH] Fix posix file locking (9/9)
Trond Myklebust [Mon, 23 Aug 2004 07:14:37 +0000 (00:14 -0700)]
[PATCH] Fix posix file locking (9/9)

NFSv2/v3: Fix up a race in the case where the user presses ^C while a
   process is in the middle of setting up a posix lock. In case the
   server registered our lock, we need to make sure that it gets
   cleaned up during the resulting file close().

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix posix file locking (8/9)
Trond Myklebust [Mon, 23 Aug 2004 07:14:25 +0000 (00:14 -0700)]
[PATCH] Fix posix file locking (8/9)

VFS: Fix up documentation for the new locking interfaces.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix posix file locking (7/9)
Trond Myklebust [Mon, 23 Aug 2004 07:14:14 +0000 (00:14 -0700)]
[PATCH] Fix posix file locking (7/9)

VFS,CIFS,NLM,NFSv4: make filesystems directly responsible for calling
   posix_lock_file() if they need it. This fixes an NFS race whereby
   in case of a server reboot, the recovery thread could re-establish
   a lock that had just been freed.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix posix file locking (6/9)
Trond Myklebust [Mon, 23 Aug 2004 07:14:03 +0000 (00:14 -0700)]
[PATCH] Fix posix file locking (6/9)

VFS: get rid of the fl_notify, fl_insert, fl_remove fields from
   struct file_lock. They belong in the new lock_manager_operations
   structure.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix posix file locking (5/9)
Trond Myklebust [Mon, 23 Aug 2004 07:13:51 +0000 (00:13 -0700)]
[PATCH] Fix posix file locking (5/9)

NLM: file_lock->fl_owner may live for longer than the pid of the
   original process that created it. Fix NFSv2/v3 client locking code
   to map file_lock->fl_owner into a unique 32-bit number or
   "pseudo-pid".

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix posix file locking (4/9)
Trond Myklebust [Mon, 23 Aug 2004 07:13:40 +0000 (00:13 -0700)]
[PATCH] Fix posix file locking (4/9)

NLM: fix lockd to use the new posix locking callbacks.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix posix file locking (3/9)
Trond Myklebust [Mon, 23 Aug 2004 07:13:29 +0000 (00:13 -0700)]
[PATCH] Fix posix file locking (3/9)

NFSv4 server: fix locking code to use new posix locking callbacks.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix posix file locking (2/9)
Trond Myklebust [Mon, 23 Aug 2004 07:13:17 +0000 (00:13 -0700)]
[PATCH] Fix posix file locking (2/9)

VFS: Enable filesystems and to hook certain functions for copying and
   freeing locks using the new struct file_lock_operations.

VFS: Enable lock managers (i.e. lockd) to hook functions for
   comparing lock ownership using the new struct
   lock_manager_operations.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix posix file locking (1/9)
Trond Myklebust [Mon, 23 Aug 2004 07:13:06 +0000 (00:13 -0700)]
[PATCH] Fix posix file locking (1/9)

VFS: Fix up posix_same_owner() so that it only uses the
   file_lock->fl_owner field when determining lock equality.

VFS: Fix up posix locking routines to use posix_same_owner() instead
   of rolling their own checks.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoRun 'indent' on BusLogic driver to keep Alan sane.
Linus Torvalds [Mon, 23 Aug 2004 07:09:50 +0000 (00:09 -0700)]
Run 'indent' on BusLogic driver to keep Alan sane.

He got the "privilege" of cleaning the driver up, and
to keep everybody happy, indent it sanely first.

This is the result of:

        indent -kr -i8 -bri0 -l255 BusLogic.c BusLogic.h

22 years ago[PATCH] More HPT374 driver merge woes
Jindrich Makovicka [Mon, 23 Aug 2004 07:07:18 +0000 (00:07 -0700)]
[PATCH] More HPT374 driver merge woes

There's a misplaced check returning error for
hpt_minimum_revision(dev,8) == TRUE still there, making the previous
fixes useless for the early revision HPT cards.

This fixes it.