]> git.hungrycats.org Git - linux/log
linux
20 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

20 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>
20 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>
20 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

20 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).

20 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

20 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.

20 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>
20 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.

20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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

20 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

20 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.

20 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.

20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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

20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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

20 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.

20 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.

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

20 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..

20 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.

20 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.

20 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

20 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

20 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

20 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

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

20 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>
20 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

20 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

20 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>
20 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>
20 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>
20 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>
20 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

20 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>
20 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

20 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.

20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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

20 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.

20 years agoMerge bk://linux-sam.bkbits.net/kbuild
Linus Torvalds [Mon, 23 Aug 2004 06:48:16 +0000 (23:48 -0700)]
Merge bk://linux-sam.bkbits.net/kbuild
into ppc970.osdl.org:/home/torvalds/v2.6/linux

20 years ago[PATCH] update SG_IO command table
Jens Axboe [Mon, 23 Aug 2004 06:30:42 +0000 (23:30 -0700)]
[PATCH] update SG_IO command table

Here's a better table of acceptable commands, I've added some more
commands.  Should be pretty complete from the cd/dvd side now.

20 years agoMerge nuts.davemloft.net:/disk1/BK/network-2.6
David S. Miller [Mon, 23 Aug 2004 06:22:28 +0000 (23:22 -0700)]
Merge nuts.davemloft.net:/disk1/BK/network-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

20 years ago[PATCH] net/Kconfig crc16 warning fix
Andrew Morton [Mon, 23 Aug 2004 06:12:55 +0000 (23:12 -0700)]
[PATCH] net/Kconfig crc16 warning fix

drivers/net/Kconfig:1749:warning: 'select' used by config symbol 'VIA_VELOCITY'

We renamed CONFIG_CRC16.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] CRC16 renaming in VIA Velocity ethernet driver
Andrey Panin [Mon, 23 Aug 2004 06:09:14 +0000 (23:09 -0700)]
[PATCH] CRC16 renaming in VIA Velocity ethernet driver

Signed-off-by: Andrey Panin <pazke@donpac.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] cciss /proc dependency fix
Adrian Bunk [Mon, 23 Aug 2004 06:09:03 +0000 (23:09 -0700)]
[PATCH] cciss /proc dependency fix

cciss uses /proc to hook into the SCSI subsystem.  If you do not build
/proc support into your kernel then you should also disable tape support in
the driver.

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] cciss update 8 maintainers update for HP
Mike Miller [Mon, 23 Aug 2004 06:08:51 +0000 (23:08 -0700)]
[PATCH] cciss update 8 maintainers update for HP

This patch updates the maintainers list for HP drivers.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] cciss: read_ahead bumped to 1024
Mike Miller [Mon, 23 Aug 2004 06:08:39 +0000 (23:08 -0700)]
[PATCH] cciss: read_ahead bumped to 1024

This patch changes our read_ahead to 1024.  This has been shown to increase
performance.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] cciss: pdev->intr fix
Mike Miller [Mon, 23 Aug 2004 06:08:30 +0000 (23:08 -0700)]
[PATCH] cciss: pdev->intr fix

This patch fixes our usage of pdev->intr.  We were truncating it to an unchar.
 We were also reading it before calling pci_enable_device.  This patch fixes
both of those.  Thanks to Bjorn Helgaas for the patch.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] cciss: V100 PCI ID fix again
Mike Miller [Mon, 23 Aug 2004 06:08:19 +0000 (23:08 -0700)]
[PATCH] cciss: V100 PCI ID fix again

Somehow I managed to get the wrong PCI ID in pci_ids.h.  3210 is the
correct PCI ID, 3211 is the subsystem ID.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] cciss: id change for V100 controller
Mike Miller [Mon, 23 Aug 2004 06:08:07 +0000 (23:08 -0700)]
[PATCH] cciss: id change for V100 controller

This patch fixes the vendor ID for our cciss based SATA controller due out
later this year and adds the new PCI ID to pci_ids.h.

Also changes DRIVER_NAME to HP CCISS.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] cciss: cylinder calculation fix
Mike Miller [Mon, 23 Aug 2004 06:07:56 +0000 (23:07 -0700)]
[PATCH] cciss: cylinder calculation fix

This patch fixes our cylinder calculations.  Without his fix the number of
cylinders maxes out at 65535.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] cciss: /proc fixes
Mike Miller [Mon, 23 Aug 2004 06:07:44 +0000 (23:07 -0700)]
[PATCH] cciss: /proc fixes

This patch fixes our output in /proc to display the logical volume sizes and
RAID levels correctly.  Without this patch RAID level will always be 0 and
size may be displayed as 0GB.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] cciss: zero out buffer in passthru ioctls for HP utilities
Mike Miller [Mon, 23 Aug 2004 06:07:33 +0000 (23:07 -0700)]
[PATCH] cciss: zero out buffer in passthru ioctls for HP utilities

This patch addresses a problem with our utilities.  We must zero out the
buffer before copying their data into it to prevent bogus info when switching
between SCSI & SATA or SAS drives.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] cciss: fixes to 32/64-bit conversions
Mike Miller [Mon, 23 Aug 2004 06:07:21 +0000 (23:07 -0700)]
[PATCH] cciss: fixes to 32/64-bit conversions

This patch fixes our usage of copy_to_user.  We were passing in the size of
the address rather than the size of the struct.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] Fix gcc 3.5 compile issue in mm/mempolicy.c
Anton Blanchard [Mon, 23 Aug 2004 06:07:10 +0000 (23:07 -0700)]
[PATCH] Fix gcc 3.5 compile issue in mm/mempolicy.c

Fix another gcc 3.5 compile issue, this time the default_policy prototype
was not marked static whereas the definition was. There is no need for
the prototype, so remove it.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] increase per-user mlock limit default to 32k
Rik van Riel [Mon, 23 Aug 2004 06:06:58 +0000 (23:06 -0700)]
[PATCH] increase per-user mlock limit default to 32k

Since various gnupg users have indicated that gpg wants to mlock 32kB of
memory, I created the patch below that increases the default mlock ulimit
to 32kB.

This is no security problem because it's trivial for processes to lock way
more memory than this in page tables, network buffers, etc.  In fact, since
this patch allows gnupg to mlock to prevent passphrase data from being
swapped out, the security people will probably like it ;)

This gets the new per-user mlock limit a bit more testing, too.

Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] rlimit-based mlocks for unprivileged users
Rik van Riel [Mon, 23 Aug 2004 06:06:46 +0000 (23:06 -0700)]
[PATCH] rlimit-based mlocks for unprivileged users

Here is the last agreed-on patch that lets normal users mlock pages up to
their rlimit.  This patch addresses all the issues brought up by Chris and
Andrea.

From: Chris Wright <chrisw@osdl.org>

Couple more nits.

The default lockable amount is one page now (first patch is was 0).  Why
don't we keep it as 0, with the CAP_IPC_LOCK overrides in place?  That way
nothing is changed from user perspective, and the rest of the policy can be
done by userspace as it should.

This patch breaks in one scenario.  When ulimit == 0, process has
CAP_IPC_LOCK, and does SHM_LOCK.  The subsequent unlock or destroy will
corrupt the locked_shm count.

It's also inconsistent in handling user_can_mlock/CAP_IPC_LOCK interaction
betwen shm_lock and shm_hugetlb.

SHM_HUGETLB can now only be done by the shm_group or CAP_IPC_LOCK.
Not any can_do_mlock() user.

Double check of can_do_mlock isn't needed in SHM_LOCK path.

Interface names user_can_mlock and user_substract_mlock could be better.

Incremental update below.  Ran some simple sanity tests on this plus my
patch below and didn't find any problems.

* Make default RLIM_MEMLOCK limit 0.
* Move CAP_IPC_LOCK check into user_can_mlock to be consistent
  and fix but with ulimit == 0 && CAP_IPC_LOCK with SHM_LOCK.
* Allow can_do_mlock() user to try SHM_HUGETLB setup.
* Remove unecessary extra can_do_mlock() test in shmem_lock().
* Rename user_can_mlock to user_shm_lock and user_subtract_mlock
  to user_shm_unlock.
* Use user instead of current->user to fit in 80 cols on SHM_LOCK.

Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>