]> git.neil.brown.name Git - history.git/log
history.git
23 years agoAutomerge
Linus Torvalds [Tue, 27 Aug 2002 03:05:14 +0000 (20:05 -0700)]
Automerge

23 years agoAdd mouse model reporting into psmouse.c.
Vojtech Pavlik [Tue, 27 Aug 2002 04:49:57 +0000 (06:49 +0200)]
Add mouse model reporting into psmouse.c.

23 years agoAlways build input.o in - avoid build problems with keyboard.c.
Vojtech Pavlik [Tue, 27 Aug 2002 04:38:07 +0000 (06:38 +0200)]
Always build input.o in - avoid build problems with keyboard.c.

23 years agoFix bits that have fallen out when merging input-based keyboard.c
Vojtech Pavlik [Tue, 27 Aug 2002 04:28:38 +0000 (06:28 +0200)]
Fix bits that have fallen out when merging input-based keyboard.c
into 2.5 - kbd0 init, sysrq support, show_regs, show_mem, show_state
support, correct handling of shifts across vt switches, console
blanking, console callback. Hope that's all.

23 years agoFix syntax error in character driver Config.in file introduced
Linus Torvalds [Mon, 26 Aug 2002 10:53:42 +0000 (03:53 -0700)]
Fix syntax error in character driver Config.in file introduced
by input merge

23 years agoMerge bk://ldm.bkbits.net/linux-2.5-cls
Linus Torvalds [Mon, 26 Aug 2002 08:38:04 +0000 (01:38 -0700)]
Merge bk://ldm.bkbits.net/linux-2.5-cls
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years agoUpdate defconfig to current state (keyboard/input layer in particular)
Linus Torvalds [Mon, 26 Aug 2002 08:30:11 +0000 (01:30 -0700)]
Update defconfig to current state (keyboard/input layer in particular)

Talking to Vojtech about nicer config interfaces

23 years agoFix missing kmap_types.h header (it got included "by mistake" with
Linus Torvalds [Mon, 26 Aug 2002 07:21:11 +0000 (00:21 -0700)]
Fix missing kmap_types.h header (it got included "by mistake" with
highmem enabled, but not otherwise, and was always required).

23 years agounlock the right lock in enum_device.
Patrick Mochel [Mon, 26 Aug 2002 07:04:34 +0000 (00:04 -0700)]
unlock the right lock in enum_device.

23 years agoMerge master.kernel.org:/home/bcrl/aio-2.5
Linus Torvalds [Mon, 26 Aug 2002 05:30:32 +0000 (22:30 -0700)]
Merge master.kernel.org:/home/bcrl/aio-2.5
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years agoMerge http://gkernel.bkbits.net/net-drivers-2.5
Linus Torvalds [Mon, 26 Aug 2002 05:29:36 +0000 (22:29 -0700)]
Merge http://gkernel.bkbits.net/net-drivers-2.5
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years agoFix typos in 8139cp net driver RxProto{TCP,UDP} constants
Ian Jackson [Mon, 26 Aug 2002 10:38:52 +0000 (06:38 -0400)]
Fix typos in 8139cp net driver RxProto{TCP,UDP} constants

23 years agoInclude linux/bitops.h in e100 net driver, it uses ffs
Jeff Garzik [Mon, 26 Aug 2002 10:38:12 +0000 (06:38 -0400)]
Include linux/bitops.h in e100 net driver, it uses ffs
   (Noticed by DaveM)

23 years agoFix #undef warning in xirc2ps_cs net driver
Alan Cox [Mon, 26 Aug 2002 10:37:30 +0000 (06:37 -0400)]
Fix #undef warning in xirc2ps_cs net driver

23 years agoProbe port 0x240 too, in eexpress net driver
Pavel Janík [Mon, 26 Aug 2002 10:36:41 +0000 (06:36 -0400)]
Probe port 0x240 too, in eexpress net driver

23 years agoRemove unneeded #includes from 3c359, sbni, and sdla_ft1 net drivers
Brad Hards [Mon, 26 Aug 2002 10:35:52 +0000 (06:35 -0400)]
Remove unneeded #includes from 3c359, sbni, and sdla_ft1 net drivers

23 years agoFix spelling in natsemi net driver
Bryan B. Whitehead [Mon, 26 Aug 2002 10:34:43 +0000 (06:34 -0400)]
Fix spelling in natsemi net driver

23 years agoRemove unused var and unused func from ali-ircc IrDA driver
Eric Sandeen [Mon, 26 Aug 2002 10:33:55 +0000 (06:33 -0400)]
Remove unused var and unused func from ali-ircc IrDA driver

23 years agoMerge mandrakesoft.com:/home/jgarzik/vanilla/linus-2.5
Jeff Garzik [Mon, 26 Aug 2002 10:31:28 +0000 (06:31 -0400)]
Merge mandrakesoft.com:/home/jgarzik/vanilla/linus-2.5
into mandrakesoft.com:/home/jgarzik/repo/net-drivers-2.5

23 years agoRemove dead prototype, fix printk format string in rcpci45 net driver
Jeff Garzik [Mon, 26 Aug 2002 10:30:00 +0000 (06:30 -0400)]
Remove dead prototype, fix printk format string in rcpci45 net driver

23 years agoMerge bk://ldm.bkbits.net/linux-2.5-cls
Linus Torvalds [Mon, 26 Aug 2002 05:27:25 +0000 (22:27 -0700)]
Merge bk://ldm.bkbits.net/linux-2.5-cls
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years ago[PATCH] convert quota.h to bsd 3 clause
Benjamin LaHaise [Mon, 26 Aug 2002 04:02:07 +0000 (21:02 -0700)]
[PATCH] convert quota.h to bsd 3 clause

For some reason, quota.h was derrived from BSD 4 clause code.  Thankfully,
UCB gave permission to remove the advert clause a couple of years ago, so
it's now okay for us to actually distribute this code.  The following patch
updates the header in quota.h.

23 years ago[PATCH] eliminate hangs during RPC client shutdown
Chuck Lever [Mon, 26 Aug 2002 04:01:55 +0000 (21:01 -0700)]
[PATCH] eliminate hangs during RPC client shutdown

this eliminates an infinite loop in rpciod if an RPC client's reference
counter accidentally goes negative.  i've been running this under load
since 2.5.30 with no ill effects.

23 years ago[PATCH] SCSI tape direct transfers for 2.5.31
Kai Mäkisara [Mon, 26 Aug 2002 04:01:44 +0000 (21:01 -0700)]
[PATCH] SCSI tape direct transfers for 2.5.31

This adds direct write and read from/to the user space to/from the SCSI
adapter.  If something (e.g., too high address) prevents direct
transfer, the existing driver buffer code is used.  The patch contains
functions to map and pin the user buffer pages so that this patch is not
dependent on kiobufs.  Similar functions are already used in sg.c.

23 years agoAutomerge
Linus Torvalds [Mon, 26 Aug 2002 03:54:55 +0000 (20:54 -0700)]
Automerge

23 years agoMerge bk://jfs.bkbits.net/linux-2.5
Linus Torvalds [Mon, 26 Aug 2002 03:51:22 +0000 (20:51 -0700)]
Merge bk://jfs.bkbits.net/linux-2.5
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years ago[PATCH] CodingStyle and docu update to srm_env
Jan-Benedict Glaw [Mon, 26 Aug 2002 03:46:56 +0000 (20:46 -0700)]
[PATCH] CodingStyle and docu update to srm_env

Please import this patch. It updates the Config.help entry (which some
people requested) and cleans up coding a bit. No functional changes.

23 years ago[PATCH] Make rmap.c alloc/free actually inline
Luca Barbieri [Mon, 26 Aug 2002 03:45:20 +0000 (20:45 -0700)]
[PATCH] Make rmap.c alloc/free actually inline

GCC can only inline functions when the function definition comes before
its use.

23 years agoMerge - uinput moved into misc/
Vojtech Pavlik [Mon, 26 Aug 2002 13:28:03 +0000 (15:28 +0200)]
Merge - uinput moved into misc/

23 years agoShorten the keycode handling code in keyboard.c and evdev.c.
Vojtech Pavlik [Mon, 26 Aug 2002 13:13:55 +0000 (15:13 +0200)]
Shorten the keycode handling code in keyboard.c and evdev.c.
Recompute keybit when keycode table changes.
Stricter checks on input keycode/scancode values.

23 years agoIntroduce struct device_interface.
Patrick Mochel [Mon, 26 Aug 2002 02:24:19 +0000 (19:24 -0700)]
Introduce struct device_interface.

Device interfaces are the logical interfaces of device classes that correlate
directly to userspace interfaces, like device nodes.

Device interfaces are registered with the class they belong to. As devices
are added to the class, they are added to each interface registered with
the class. The interface is responsible for determining whether the device
supports the interface or not.

The interface is responsible for allocating and initializing a struct
intf_data and calling interface_add_data() to add it to the device's list
of interfaces it belongs to. This list will be iterated over when the device
is removed from the class (instead of all possible interfaces for a class).
This structure should probably be embedded in whatever per-device data
structure the interface is allocating anyway.

Devices are enumerated within the interface. This happens in interface_add_data()
and the enumerated value is stored in the struct intf_data for that device.

Interfaces get a directory in driverfs under their class's directory. Each
time a device is added to the interface, a symlink is created in that
directory that points to the device's directory in the physical hierarchy.
The name of this symlink is the interface-enumerated value of the device.

23 years agoIntroduce struct device_class
Patrick Mochel [Mon, 26 Aug 2002 01:39:32 +0000 (18:39 -0700)]
Introduce struct device_class

Device classes describe a type (or class) of device, like an input device
or network device, etc. This changeset defines a struct device_class that
each subsystem is expected to implement and register with the core.

struct device_driver gains a devclass pointer which points to the class it
belongs to. When the driver is registered, it is added to the class's list
of drivers. Whenever a device is bound to that driver, it is added to the
class by calling the class's add_device callback.

struct device gains a class_num field which is the per-class enumerated value
of the device. It is incremented each time a device is registered with the
class.

Each device class gets a driverfs directory in class/<class name> and two
subdirectories: 'devices' and 'drivers'. For each device added to the class,
a symlink is created in the devices/ directory that points to the device's
directory in the physical hierarchy. The name of the symlink is the enumerated
number the device got when it was registered with the class.

For each driver that's added to the class, a symlink is created in the class's
drivers/ directory that points to the driver's directory. The name of this
symlink is a concatenation of <bus name>:<driver name> (to prevent namespace
conflicts of drivers with the same name on different buses).

23 years agoMerge suse.cz:/home/vojtech/bk/linus into suse.cz:/home/vojtech/bk/input
Vojtech Pavlik [Sun, 25 Aug 2002 17:27:27 +0000 (19:27 +0200)]
Merge suse.cz:/home/vojtech/bk/linus into suse.cz:/home/vojtech/bk/input

23 years agoThis (re)implements getkeycode/setkeycode, kbd_rate and kd_mksound
Vojtech Pavlik [Sun, 25 Aug 2002 17:21:22 +0000 (19:21 +0200)]
This (re)implements getkeycode/setkeycode, kbd_rate and kd_mksound
as functions interfacing to the input core. PC-Speaker handling is
moved to a separate file. Uinput is moved to a input/misc directory.

23 years agoMerge http://linuxusb.bkbits.net/linus-2.5
Linus Torvalds [Sun, 25 Aug 2002 14:07:35 +0000 (07:07 -0700)]
Merge http://linuxusb.bkbits.net/linus-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge master.kernel.org:/home/davem/BK/net-2.5
Linus Torvalds [Sun, 25 Aug 2002 14:06:39 +0000 (07:06 -0700)]
Merge master.kernel.org:/home/davem/BK/net-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge master.kernel.org:/home/davem/BK/sparc-2.5
Linus Torvalds [Sun, 25 Aug 2002 14:05:35 +0000 (07:05 -0700)]
Merge master.kernel.org:/home/davem/BK/sparc-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge zephyr.physics.uiowa.edu:/home/kai/src/kernel/v2.5/linux-2.5.make-config
Kai Germaschewski [Sun, 25 Aug 2002 12:48:41 +0000 (07:48 -0500)]
Merge zephyr.physics.uiowa.edu:/home/kai/src/kernel/v2.5/linux-2.5.make-config
into zephyr.physics.uiowa.edu:/home/kai/src/kernel/v2.5/linux-2.5.make

23 years agokbuild: fix Config.in if statement syntax error
Kai Germaschewski [Sun, 25 Aug 2002 12:47:28 +0000 (07:47 -0500)]
kbuild: fix Config.in if statement syntax error

Greg Banks:

A very significant space is missing from an "if" expression
in drivers/video/Config.in.

23 years agokbuild: fix missing/spurious EXPERIMENTAL
Kai Germaschewski [Sun, 25 Aug 2002 12:46:11 +0000 (07:46 -0500)]
kbuild: fix missing/spurious EXPERIMENTAL

Greg Banks:

Symbols CONFIG_BLK_DEV_NS87415, CONFIG_BLK_DEV_TRM290, CONFIG_DSCC4, and
CONFIG_USB_SERIAL_SAFE_PADDED had spurious (EXPERIMENTAL) tags in their
banners.
Symbol CONFIG_INPUT_UINPUT was missing an (EXPERIMENTAL) tag in it banner.

23 years agokbuild: remove duplicate modules menu
Kai Germaschewski [Sun, 25 Aug 2002 12:44:59 +0000 (07:44 -0500)]
kbuild: remove duplicate modules menu

The mips and parisc ports both defined 'Loadable module support' menus,
despite including an identical menu from init/Config.in.

23 years agokbuild: remove OSS pointless hex default
Kai Germaschewski [Sun, 25 Aug 2002 12:44:09 +0000 (07:44 -0500)]
kbuild: remove OSS pointless hex default

Greg Banks:

The symbol CONFIG_SOUND_CMPCI_FMIO is declared with a "hex" statement,
immediately preceded by a "define_hex" with the same value as the
default value from the "hex".  In config and xconfig, this has no effect;
in menuconfig it prevents the user selecting any value other than the
default.

23 years agokbuild: remove duplicate CONFIG_DEBUG_SPINLOCK
Kai Germaschewski [Sun, 25 Aug 2002 12:43:00 +0000 (07:43 -0500)]
kbuild: remove duplicate CONFIG_DEBUG_SPINLOCK

Greg Banks:

The symbol CONFIG_DEBUG_SPINLOCK was defined twice identically
in the same file...three lines apart.

23 years agokbuild: remove duplicated dependencies
Kai Germaschewski [Sun, 25 Aug 2002 12:42:00 +0000 (07:42 -0500)]
kbuild: remove duplicated dependencies

Greg Banks:

A number of dep_bools and dep_tristates have architecture constants
(e.g. CONFIG_X86) as dependencies.  Such symbols have the property
that their value is constant for any particular arch tree, and is
either "y" or "", neither of which have any effect as dependencies,
so the dependencies have no effect.  This patch removes some of them.

23 years agokbuild: remove spurious comment
Kai Germaschewski [Sun, 25 Aug 2002 12:40:46 +0000 (07:40 -0500)]
kbuild: remove spurious comment

Greg Banks:

The menu 'AX.25 network device drivers' contained as its first
item a comment with identical banner.  This is pointless duplication,
but more to the point it confused gcml2 unnecessarily.

23 years agoHand merged.
Kai Germaschewski [Sun, 25 Aug 2002 12:28:48 +0000 (07:28 -0500)]
Hand merged.

23 years agoHandle page fault atomicity correctly when preempt is enabled.
Linus Torvalds [Sun, 25 Aug 2002 04:30:46 +0000 (21:30 -0700)]
Handle page fault atomicity correctly when preempt is enabled.

23 years agore-do spinlock cleanup, it was innocent
Linus Torvalds [Sun, 25 Aug 2002 03:25:47 +0000 (20:25 -0700)]
re-do spinlock cleanup, it was innocent
Cset exclude: torvalds@home.transmeta.com|ChangeSet|20020821235957|57282

23 years ago[PATCH] HT & MTRRs, 2.5.31-BK-curr
Ingo Molnar [Sun, 25 Aug 2002 03:24:47 +0000 (20:24 -0700)]
[PATCH] HT & MTRRs, 2.5.31-BK-curr

This patch simply ensures that 'setting the MTRR' is atomic.  This is
important since HT CPU's may share some MTRR state.

23 years agoSPARC64: Ultra-III+ bug fix and better bad trap logging.
David S. Miller [Fri, 23 Aug 2002 23:07:52 +0000 (16:07 -0700)]
SPARC64: Ultra-III+ bug fix and better bad trap logging.
- Do not use PC-relative branch/call in Ultra-III+ parity error
trap vectors, we patch this into the trap table and then the PC-relative
values are wrong.
- When we take an irrecoverable trap at tl > 0, save away the full
trap stack to the kernel stack, then log it from the C code handler.

23 years agonet/unix/af_unix.c: protinfo is dead, use unix_sk().
David S. Miller [Fri, 23 Aug 2002 21:28:15 +0000 (14:28 -0700)]
net/unix/af_unix.c: protinfo is dead, use unix_sk().

23 years ago[SPARC32]: Synchronize with 2.5.x changes
David S. Miller [Fri, 23 Aug 2002 21:09:31 +0000 (14:09 -0700)]
[SPARC32]: Synchronize with 2.5.x changes
- Some places need to include sched.h because the already include ptrace.h
- CLONE_{SET,CLEAR}TID support
- Clear PT_DTRACE when execve succeeds.
- Add security bits to ptrace
- Add sys_security to syscall tables.

23 years ago[SPARC64]: Synchronize with 2.5.x changes
David S. Miller [Fri, 23 Aug 2002 21:00:43 +0000 (14:00 -0700)]
[SPARC64]: Synchronize with 2.5.x changes
- Some places need to include sched.h because the already include ptrace.h
- CLONE_{SET,CLEAR}TID support
- Clear PT_DTRACE when execve succeeds.
- Add security bits to ptrace and sys32_execve
- Add sys_security to syscall tables.

23 years ago[CLONE_*TID]: Make tsk->user_tid and int so that 64-bit arches work.
David S. Miller [Fri, 23 Aug 2002 20:58:36 +0000 (13:58 -0700)]
[CLONE_*TID]: Make tsk->user_tid and int so that 64-bit arches work.
- futex uses int as its atomic word type, we pass in user_tid
to the futex routines, so the types must match

23 years agoSPARC64: Bug fixes in arch/sparc64/mm/ultra.S
David S. Miller [Fri, 23 Aug 2002 20:55:19 +0000 (13:55 -0700)]
SPARC64: Bug fixes in arch/sparc64/mm/ultra.S
- flush_dcpage_cheetah sized wrongly, it is 11 not 9 insns now
- xcall_report_regs and xcall_promstop should use etrap_irq not etrap

23 years agoCleanup BKL handling and move kernel_flag definition to common code
Christoph Hellwig [Fri, 23 Aug 2002 15:56:54 +0000 (17:56 +0200)]
Cleanup BKL handling and move kernel_flag definition to common code

23 years agoMerge nuts.ninka.net:/home/davem/src/BK/BAK-net-2.5
David S. Miller [Fri, 23 Aug 2002 15:20:26 +0000 (08:20 -0700)]
Merge nuts.ninka.net:/home/davem/src/BK/BAK-net-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5

23 years agoMerge nuts.ninka.net:/home/davem/src/BK/BAK-sparc-2.5
David S. Miller [Fri, 23 Aug 2002 15:17:29 +0000 (08:17 -0700)]
Merge nuts.ninka.net:/home/davem/src/BK/BAK-sparc-2.5
into nuts.ninka.net:/home/davem/src/BK/sparc-2.5

23 years agoSPARC64:setup_arch Flush correct I-cache line when patching irqsz_patchme.
David S. Miller [Fri, 23 Aug 2002 14:53:11 +0000 (07:53 -0700)]
SPARC64:setup_arch Flush correct I-cache line when patching irqsz_patchme.

23 years agonet/ipv4/tcp_diag.c: Avoid unaligned accesses to tcpdiag_cookie.
David S. Miller [Fri, 23 Aug 2002 12:18:11 +0000 (05:18 -0700)]
net/ipv4/tcp_diag.c: Avoid unaligned accesses to tcpdiag_cookie.

23 years agonet/unix/af_unix.c: Set msg_namelen in unix_copy_addr properly, define MODULE_LICENSE.
David S. Miller [Fri, 23 Aug 2002 12:03:09 +0000 (05:03 -0700)]
net/unix/af_unix.c: Set msg_namelen in unix_copy_addr properly, define MODULE_LICENSE.

23 years agonet/ipv6/netfilter/ip6_tables.c: Fix extension header parsing bugs.
Andras Kis-Szabo [Fri, 23 Aug 2002 11:58:01 +0000 (04:58 -0700)]
net/ipv6/netfilter/ip6_tables.c: Fix extension header parsing bugs.

23 years agonet/ipv4/ipconfig.c: Add support for multiple nameservers.
Josef Siemes [Fri, 23 Aug 2002 11:47:13 +0000 (04:47 -0700)]
net/ipv4/ipconfig.c: Add support for multiple nameservers.

23 years agonet/ipv4/netfilter/ip_conntrack_core.c: Fix comment typo.
James Mayer [Fri, 23 Aug 2002 11:34:44 +0000 (04:34 -0700)]
net/ipv4/netfilter/ip_conntrack_core.c: Fix comment typo.

23 years agonet/unix/af_unix.c: Set ATIME on socket inode.
Solar Designer [Fri, 23 Aug 2002 11:31:54 +0000 (04:31 -0700)]
net/unix/af_unix.c: Set ATIME on socket inode.

23 years agoarch/i386/lib/checksum.S: Handle zero length.
Alexey Kuznetsov [Fri, 23 Aug 2002 11:26:26 +0000 (04:26 -0700)]
arch/i386/lib/checksum.S: Handle zero length.

23 years agoMerge tp1.ruhr-uni-bochum.de:/scratch/kai/kernel/v2.5/linux-2.5.make
Kai Germaschewski [Fri, 23 Aug 2002 09:42:26 +0000 (04:42 -0500)]
Merge tp1.ruhr-uni-bochum.de:/scratch/kai/kernel/v2.5/linux-2.5.make
into tp1.ruhr-uni-bochum.de:/home/kai/linux-2.5.make

23 years ago[PATCH] kNFSd: NFSv4: tweak nfsd_readdir() for NFSv4
Kendrick M. Smith [Fri, 23 Aug 2002 04:38:37 +0000 (21:38 -0700)]
[PATCH] kNFSd: NFSv4: tweak nfsd_readdir() for NFSv4

This patch makes three small changes to nfsd_readdir().

First, the 'filldir' routine for NFSv4 may return an arbitrary error,
which should become the return value for nfsd_readdir().  I implemented
this by adding an 'nfserr' field to the 'struct readdir_cd'.

Second, in NFSv4 the caller of nfsd_readdir() will specify an attribute
bitmap, which must be communicated to the 'filldir' routine.  I implemented
this by adding a @bitmap parameter to nfsd_readdir() and a corresponding
field in the 'struct readdir_cd'.  (The bitmap is not interpreted in any
way by nfsd_readdir().)

Finally, NFSv4 defines a new error nfserr_readdir_nospc, which indicates
that there was not enough buffer space to encode a single entry.

23 years ago[PATCH] kNFSd: NFSv4: new argument to nfsd_access()
Kendrick M. Smith [Fri, 23 Aug 2002 04:38:25 +0000 (21:38 -0700)]
[PATCH] kNFSd: NFSv4: new argument to nfsd_access()

NFSv4 defines a new field in the ACCESS response: a bitmap to indicate
which access bits requested by the client are "supported", i.e. meaningful
for the object in question.

This patch adds a new parameter @supported to nfsd_access(), so that
nfsd_access() can set the value of this bitmap.

23 years ago[PATCH] kNFSd: NFSv4: tweak nfsd_create_v3() for NFSv4
Kendrick M. Smith [Fri, 23 Aug 2002 04:38:13 +0000 (21:38 -0700)]
[PATCH] kNFSd: NFSv4: tweak nfsd_create_v3() for NFSv4

File creation in NFSv4 is almost the same as in NFSv3, with one minor
difference.  If an UNCHECKED create is done, and the file exists, we
don't set any attributes.  Exception: If size==0 is specified as part
of the attributes, then we do truncate the file, but only after processing
the rest of the OPEN.  (File creation is always part of an OPEN request.)

This patch defines a new argument *truncp to nfsd_create_v3(), which
will be NULL for v3 requests.  For v4 requests, it will point to a
variable which should be set to 1 if file truncation is still needed.

The logic in nfsd_create_v3() is changed as follows: If
  - *truncp is not NULL
  - the create is UNCHECKED
  - the file exists
then nfsd_create_v3() returns immediately.  If size==0 is specified,
then *truncp is set to 1.

This is kind of a hack, but the only alternative I could see was creating
a new routine nfsd_create_v4(), which would be identical to nfsd_create_v3()
except for this point.

23 years ago[PATCH] kNFSd: NFSv4: allow type==0 in nfsd_unlink()
Kendrick M. Smith [Fri, 23 Aug 2002 04:38:02 +0000 (21:38 -0700)]
[PATCH] kNFSd: NFSv4: allow type==0 in nfsd_unlink()

If nfsd_unlink() is called with @type equal to 0, then let it do the
right thing regardless of the type of the file being unlinked.  This
is needed for the NFSv4 REMOVE operation, which works for any type of
file, even directories.

23 years ago[PATCH] kNFSd: NFSv4: overflow check in nfsd_commit()
Kendrick M. Smith [Fri, 23 Aug 2002 04:37:48 +0000 (21:37 -0700)]
[PATCH] kNFSd: NFSv4: overflow check in nfsd_commit()

Sanity check COMMIT arguments by ensuring that (start)+(length) < 2^64.
The check is done in a way which is free of signedness pathologies in
all cases.

This change was inspired by pynfs, Peter Astrand's regression testsuite
for NFSv4 servers.  The change is necessary for all of the COMMIT tests
to pass.  However, it's a little open to debate whether the change is
really needed.  I'm curious to hear the opinions of other developers.

23 years ago[PATCH] kNFSd: NFSv4: allow resfh==fhp in fh_compose()
Kendrick M. Smith [Fri, 23 Aug 2002 04:37:37 +0000 (21:37 -0700)]
[PATCH] kNFSd: NFSv4: allow resfh==fhp in fh_compose()

Change fh_compose() so that it will do the right thing if fhp==res_fh.
(This is convenient in the NFSv4 LOOKUP operation, which _replaces_
CURRENT_FH with the filehandle obtained by lookup.)

This requires extracting the interesting parts of the reference
filehandle first, then calling fh_put if it is a re-use.

23 years ago[PATCH] kNFSd: NFSv4: wipe out all evidence in fh_put()
Kendrick M. Smith [Fri, 23 Aug 2002 04:37:27 +0000 (21:37 -0700)]
[PATCH] kNFSd: NFSv4: wipe out all evidence in fh_put()

When a filehandle is cleared with fh_put(), wipe out all traces by
clearing ->fh_pre_saved and ->fh_post_saved.  This prevents
fill_post_wcc() from complaining if the filehandle is later reused.
(This could happen in NFSv4 to CURRENT_FH if, for example, LOOKUP LOOKUP
occurs in a COMPOUND.)

23 years ago[PATCH] kNFSd: NFSv4: return err_nofilehandle if missing fh in fh_verify()
Kendrick M. Smith [Fri, 23 Aug 2002 04:37:15 +0000 (21:37 -0700)]
[PATCH] kNFSd: NFSv4: return err_nofilehandle if missing fh in fh_verify()

Return nfserr_nofilehandle (v4 only) in fh_verify() if the filehandle
has not been set.

23 years ago[PATCH] kNFSd: NFSv4: change ->rq_vers==3 to ->rq_vers>2
Kendrick M. Smith [Fri, 23 Aug 2002 04:37:05 +0000 (21:37 -0700)]
[PATCH] kNFSd: NFSv4: change ->rq_vers==3 to ->rq_vers>2

In a few places on the server, I had to change code that looked like:

   if (rqstp->rq_vers == 3)
       /* NFSv3 behavior */
   else
       /* NFSv2 behavior */

to:

   if (rqstp->rq_vers > 2)
       /* NFSv3 behavior */
   else
       /* NFSv2 behavior */

so that we would get the NFSv3 behavior, not the NFSv2 behavior,
in NFSv4.  This patch collects all changes of this type.

23 years ago[PATCH] kNFSd: NFSv4: fix type checking in fh_verify()
Kendrick M. Smith [Fri, 23 Aug 2002 04:36:52 +0000 (21:36 -0700)]
[PATCH] kNFSd: NFSv4: fix type checking in fh_verify()

Change the type checking in fh_verify().  This fixes a bug which
I reported on the mailing list a few days ago, and also adds a
new error code nfserr_symlink (v4 only).  This is returned whenever
an operation which is illegal for symlinks is attempted on a symlink,
and takes precedence over ERR_NOTDIR or ERR_INVAL.

23 years ago[PATCH] kNFSd: NFSv4: error codes in include/linux/nfsd/nfsd.h
Kendrick M. Smith [Fri, 23 Aug 2002 04:36:41 +0000 (21:36 -0700)]
[PATCH] kNFSd: NFSv4: error codes in include/linux/nfsd/nfsd.h

Add some new NFSv4-only error codes to include/linux/nfsd/nfsd.h

23 years ago[PATCH] kNFSd: new error codes for NFSv4
Kendrick M. Smith [Fri, 23 Aug 2002 04:36:31 +0000 (21:36 -0700)]
[PATCH] kNFSd: new error codes for NFSv4

This patch adds new NFSv4-only error codes to include/linux/nfs.h,
and also indicates which of the old error codes still exist in NFSv4.

23 years ago[PATCH] md: Fix up oops-able error message
Neil Brown [Fri, 23 Aug 2002 04:28:00 +0000 (21:28 -0700)]
[PATCH] md: Fix up oops-able error message

If we get here, then bio->bi_bdev isn't set, so we really
shouldn't de-reference it.

23 years ago[PATCH] md: Get rid of un-necessary warning in md
Neil Brown [Fri, 23 Aug 2002 04:27:47 +0000 (21:27 -0700)]
[PATCH] md: Get rid of un-necessary warning in md

23 years ago[PATCH] md: Make the old-ioctl warning in md only complain about MD ioctls.
Neil Brown [Fri, 23 Aug 2002 04:27:35 +0000 (21:27 -0700)]
[PATCH] md: Make the old-ioctl warning in md only complain about MD ioctls.

..as some standard ioctls expect the per-device ioctl routine
to return EINVAL and then fall back on a standard implementation.

23 years ago[PATCH] md: Remove per-personality 'operational' and 'write_only' flags
Neil Brown [Fri, 23 Aug 2002 04:27:25 +0000 (21:27 -0700)]
[PATCH] md: Remove per-personality 'operational' and 'write_only' flags

raid1, raid5 and multipath maintain their own
'operational' flag.  This is equivalent to
   !rdev->faulty
and so isn't needed.
Similarly raid1 and raid1 maintain a "write_only" flag
that is equivalnt to
   !rdev->in_sync
so it isn't needed either.

As part of implementing this change, we introduce some extra
flag bit in raid5 that are meaningful only inside 'handle_stripe'.
Some of these replace the "action" array which recorded what
actions were required (and would be performed after the stripe
spinlock was released).  This has the advantage of reducing our
dependance on MD_SB_DISKS which personalities shouldn't need
to know about.

23 years ago[PATCH] md: Remove 'alias_device' flag.
Neil Brown [Fri, 23 Aug 2002 04:27:13 +0000 (21:27 -0700)]
[PATCH] md: Remove 'alias_device' flag.

This flag was used by multipath to make sure only
one superblock was written, as there is only one
real device.

The relevant test is now more explicitly dependant on multipath,
and the flag is gone.

23 years ago[PATCH] md: Improve code for deciding whether to skip an IO in raid5
Neil Brown [Fri, 23 Aug 2002 04:27:02 +0000 (21:27 -0700)]
[PATCH] md: Improve code for deciding whether to skip an IO in raid5

Instread of the 'skip' variable, just test if rdev is NULL or not.

23 years ago[PATCH] md: Make spare handling simple ... personalities know less
Neil Brown [Fri, 23 Aug 2002 04:26:52 +0000 (21:26 -0700)]
[PATCH] md: Make spare handling simple ... personalities know less

1/ Personalities only know about raid_disks devices.
   Some might be not in_sync and so cannot be read from,
   but must be written to.
- change MD_SB_DISKS to ->raid_disks
- add tests for .write_only

2/ rdev->raid_disk is now -1 for spares.  desc_nr is maintained
   by analyse_sbs and sync_sbs.

3/ spare_inactive method is subsumed into hot_remove_disk
   spare_writable is subsumed into hot_add_disk.
   hot_add_disk decides which slot a new device will hold.

4/ spare_active now finds all non-in_sync devices and marks them
   in_sync.

5/ faulty devices are removed by the md recovery thread as soon
   as they are idle.  Any spares that are available are then added.

23 years ago[PATCH] md: Remove used_slot field from per-personality info
Neil Brown [Fri, 23 Aug 2002 04:26:38 +0000 (21:26 -0700)]
[PATCH] md: Remove used_slot field from per-personality info

This is equivalent to ->rdev != NULL, so it isn't needed.

23 years ago[PATCH] md: Keep track of number of pending requests on each component device on...
Neil Brown [Fri, 23 Aug 2002 04:26:27 +0000 (21:26 -0700)]
[PATCH] md: Keep track of number of pending requests on each component device on an MD array

This will allow us to know, in the event of a device failure, when the
device is completely unused and so can be disconnected from the
array.  Currently this isn't a problem as drives aren't normally disconnect
until after a repacement has been rebuilt, which is a LONG TIME, but that
will change shortly...

We always increment the count under a spinlock after checking that
it hasn't been disconnected already (rdev!= NULL).
We disconnect under the same spinlock after checking that the
count is zero.

23 years ago[PATCH] md: MD error handers and md_sync_acct now get rdev instead of bdev
Neil Brown [Fri, 23 Aug 2002 04:26:16 +0000 (21:26 -0700)]
[PATCH] md: MD error handers and md_sync_acct now get rdev instead of bdev

This simplifies the error handlers slighty, but allows for even more
simplification later.

23 years ago[PATCH] md: Store rdev instead of bdev in per-personality status arrays
Neil Brown [Fri, 23 Aug 2002 04:26:02 +0000 (21:26 -0700)]
[PATCH] md: Store rdev instead of bdev in per-personality status arrays

Holding the rdev instead of the bdev does cause an extra
de-reference, but it is conceptually cleaner and will allow
lots more tidying up.

23 years ago[PATCH] md: Silence a warning in md.c
Neil Brown [Fri, 23 Aug 2002 04:25:51 +0000 (21:25 -0700)]
[PATCH] md: Silence a warning in md.c

->major_name is "const char *" so we need to sprintf into the kmalloced
space *before* assigning that space to ->major_name.

23 years ago[PATCH] md: Fix assort typos in most recent MD patches..
Neil Brown [Fri, 23 Aug 2002 04:25:40 +0000 (21:25 -0700)]
[PATCH] md: Fix assort typos in most recent MD patches..

1/ Raid0 should not be accessing rdev->sb.

2/ Don't unlock rdev (which releases bdev) until after last use of bdev

3/ Fix typo in a printk ( = should be -)

4/ i should be dd_idx in compute_block

23 years ago[PATCH] Fix error message printed when not enough queue space
Neil Brown [Fri, 23 Aug 2002 04:22:00 +0000 (21:22 -0700)]
[PATCH] Fix error message printed when not enough queue space

23 years ago[PATCH] call svc_sock_setbufsize when socket created.
Neil Brown [Fri, 23 Aug 2002 04:21:49 +0000 (21:21 -0700)]
[PATCH] call svc_sock_setbufsize when socket created.

bufsiz is re-evaluated on recv if SK_CHNGBUF is set,
but recv will never be reached if the buffers are too small.
So we have to set to to something vaguely reasonable
at init time.

23 years ago[PATCH] Fix two problems with multiple concurrent nfs/tcp connects.
Neil Brown [Fri, 23 Aug 2002 04:21:39 +0000 (21:21 -0700)]
[PATCH] Fix two problems with multiple concurrent nfs/tcp connects.

1/ connect requests would be get lost...
  As the comment at the top of svcsock.c says when discussing
  SK_CONN:
 * after a set, svc_sock_enqueue must be called.

  We didn't and so lost conneciton requests.

2/ set the max accept backlog to a more reasonable number to cope
   with bursts of lots of connection requests.

23 years ago[PATCH] trivial: 2.5.31+bk forgotten endmenu
Sam Ravnborg [Fri, 23 Aug 2002 04:19:44 +0000 (21:19 -0700)]
[PATCH] trivial: 2.5.31+bk forgotten endmenu

23 years agoTwo minor fixes on top of the PPC final input conversion.
Franz Sirl [Thu, 22 Aug 2002 13:07:41 +0000 (15:07 +0200)]
Two minor fixes on top of the PPC final input conversion.

23 years agoMerge jfs@jfs.bkbits.net:linux-2.5
Dave Kleikamp [Thu, 22 Aug 2002 07:51:34 +0000 (02:51 -0500)]
Merge jfs@jfs.bkbits.net:linux-2.5
into kleikamp.austin.ibm.com:/home/shaggy/bk/jfs-2.5

23 years ago[JFS] direct-to-BIO pagecache IO
Dave Kleikamp [Thu, 22 Aug 2002 06:15:36 +0000 (01:15 -0500)]
[JFS] direct-to-BIO pagecache IO

This comes from Andrew Morton.

Implements readpages and writepages operations.
Replaces use of block_read_full_page by mpage_readpage.

23 years agoTIGON3: Add missing udelay when clearing SRAM stats/status block.
David S. Miller [Thu, 22 Aug 2002 02:40:14 +0000 (19:40 -0700)]
TIGON3: Add missing udelay when clearing SRAM stats/status block.