]> git.hungrycats.org Git - linux/log
linux
23 years ago[PATCH] janitor: drivers/telephony/ixj
Randy Dunlap [Sat, 19 Jul 2003 01:33:14 +0000 (18:33 -0700)]
[PATCH] janitor: drivers/telephony/ixj

From: Daniele Bellucci <bellucda@tiscali.it>

This is an audit (copy_*_user), cleanup, and coding-style fix
for this driver.

23 years ago[PATCH] Use before initialisation in devfs_mk_cdev()
Christoph Hellwig [Fri, 18 Jul 2003 13:00:06 +0000 (06:00 -0700)]
[PATCH] Use before initialisation in devfs_mk_cdev()

As noted by Gergely Nagy:

  "devfs_mk_cdev() first checks the mode passed to it, and if it thinks
   it is not a char device, it prints a warning and aborts.  Now, this
   printing involves the local variable `buf' (char buf[64]), which is
   not initialised at that point."

The same problem also affects devfs_mk_bdev.

Fixed thus.

23 years ago[PATCH] Make percpu_modcopy a macro
Rusty Russell [Fri, 18 Jul 2003 12:23:55 +0000 (05:23 -0700)]
[PATCH] Make percpu_modcopy a macro

davidm@hpl.hp.com writes:
  "I'm working on updating the ia64 tree with local_t etc.  One
   thing that would really help me: could you make
   asm-generic/percpu_modcopy() a macro?  The routine depends on
   cpu_possible(), but I can't including smp.h in percpu.h since
   that would lead to recusive header-file dependencies (and in my
   opinion, percpu.h should be more "primitive" than smp.h, so that
   it can be included virtually everywhere)."

23 years ago[PATCH] Delete init/cleanup_module prototypes in obscure places.
Rusty Russell [Fri, 18 Jul 2003 12:23:46 +0000 (05:23 -0700)]
[PATCH] Delete init/cleanup_module prototypes in obscure places.

A few places pre-declare "int module_init(void);" and "void
module_cleanup(void);".  Other than being obsolete, this is
unneccessary (it's in init.h anyway).

There are still about 100 places which still use the
obsolete-since-2.2 "a function named module_init() magically gets
called": this change frees us up implement that via a macro.

23 years ago[PATCH] module_put_and_exit
Rusty Russell [Fri, 18 Jul 2003 12:23:37 +0000 (05:23 -0700)]
[PATCH] module_put_and_exit

Author: Neil Brown

Define module_put_and_exit() and use it for nfsd/lockd

Both nfsd and lockd have threads which expect to hold a reference
to the module while the thread is running.  In order for the thread
to be able to put_module() the module before exiting, the
put_module code must be call from outside the module.

This patch provides module_put_and_exit in non-modular code which a
thread-in-a-module can call.  It also gets nfsd and lockd to use it
as appropriate.

Note that in lockd, we can __get_module in the thread itself as the
creator of the thread is waiting for the thread to startup.

In nfsd and for the 'reclaimer' threaded started by locked, we
__get_module first and put_module if the thread failed to start.

23 years ago[PATCH] Make rmmod -f taint kernel.
Rusty Russell [Fri, 18 Jul 2003 12:23:29 +0000 (05:23 -0700)]
[PATCH] Make rmmod -f taint kernel.

Somehow, the code which taints the kernel when rmmod -f is used got
lost.  Restore it.

23 years ago[PATCH] Sparc64 local_t support
Rusty Russell [Fri, 18 Jul 2003 12:23:22 +0000 (05:23 -0700)]
[PATCH] Sparc64 local_t support

These are the local_t bits for sparc64.

Other platforms such as PPC64 and Alpha (and in fact any "load locked/
store conditional" like platform other than IA64), probably want to do
something similar.

23 years ago[PATCH] Resolve module local_t conflict
Rusty Russell [Fri, 18 Jul 2003 12:23:14 +0000 (05:23 -0700)]
[PATCH] Resolve module local_t conflict

Uses local_t for module reference counts.

23 years ago[PATCH] introduce "local_t" - cpu-local atomic variables
Rusty Russell [Fri, 18 Jul 2003 12:23:07 +0000 (05:23 -0700)]
[PATCH] introduce "local_t" - cpu-local atomic variables

Introduces local_t, a type which is like atomic_t, but the
operations are only atomic from a single CPU's point of view
(ie. atomic against interrupts and softirqs). Some architectures
(eg. i386) can implement these very efficiently.

There are special operations for the case of a local operation on a
per-cpu variable (which is common), which some architectures can
implement efficiently (eg. IA64 keeps all per-cpu variables mapped
at the same address, so no address arithmetic is needed).

The generic implementation given here simply uses atomics on 32-bit
archs, three variables on others.  x86 is already implemented specially.

23 years ago[PATCH] Centralize Linker Symbols
Rusty Russell [Fri, 18 Jul 2003 12:22:58 +0000 (05:22 -0700)]
[PATCH] Centralize Linker Symbols

Richard Henderson point out a while back that linker generated symbols
should be declared as: "char _text[]" so that the compiler can't make
assumptions about them sitting in small sections, etc.

Centralize these defintions in asm/sections.h (where some already
are on x86).

23 years ago[PATCH] Allow struct members inside percpu macros
Rusty Russell [Fri, 18 Jul 2003 12:22:50 +0000 (05:22 -0700)]
[PATCH] Allow struct members inside percpu macros

The current percpu macros do not allow __get_cpu_var(foo.val1)
which makes building macros on top of them really difficult.  The
reason for this is the __per_cpu postfix appended to per-cpu
variables, designed to catch direct uses.  Prepend it instead.

23 years agoFix vfat shortname character logic that had wrong signedness
Linus Torvalds [Fri, 18 Jul 2003 11:50:01 +0000 (04:50 -0700)]
Fix vfat shortname character logic that had wrong signedness
tests.

From Dennis Vshivkov:

  "whenever I was trying to create a file using only national
   characters for its name, it was always created with an
   uppercased shortname (provided that the name was not too
   long for 8.3, of course). Everything was fine with latin
   filenames, though."

The bug is that we check "buf[0]" as an unsigned character, but
"buf" is just "char *", which (depending on architecture and
compiler options) tends to be signed.

23 years ago[PATCH] add new sound drivers to Makefile/Kconfig
François Romieu [Fri, 18 Jul 2003 10:15:43 +0000 (03:15 -0700)]
[PATCH] add new sound drivers to Makefile/Kconfig

Adds kahlua, harmony and hal2 drivers to the build options.

23 years ago[PATCH] Unchecked copy_to_user disturb harmony
François Romieu [Fri, 18 Jul 2003 10:15:35 +0000 (03:15 -0700)]
[PATCH] Unchecked copy_to_user disturb harmony

Fix an assortment of unchecked copy_to_user().

23 years ago[PATCH] Fix error path in kahlua driver
François Romieu [Fri, 18 Jul 2003 10:15:26 +0000 (03:15 -0700)]
[PATCH] Fix error path in kahlua driver

Memory leak fix: hw_config is allocated before the call to sb_dsp_detect.

23 years agoMerge bk://linux-scsi.bkbits.net/scsi-for-linus-2.6
Linus Torvalds [Fri, 18 Jul 2003 06:29:54 +0000 (23:29 -0700)]
Merge bk://linux-scsi.bkbits.net/scsi-for-linus-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoPut the requeue hack back into as-iosched.c
James Bottomley [Fri, 18 Jul 2003 09:26:27 +0000 (04:26 -0500)]
Put the requeue hack back into as-iosched.c

23 years agoback out akpm's "fix" for AS
James Bottomley [Fri, 18 Jul 2003 07:28:54 +0000 (02:28 -0500)]
back out akpm's "fix" for AS

23 years agoMerge jet.(none):/home1/jejb/BK/scsi-misc-2.5
James Bottomley [Fri, 18 Jul 2003 04:43:28 +0000 (23:43 -0500)]
Merge jet.(none):/home1/jejb/BK/scsi-misc-2.5
into jet.(none):/home1/jejb/BK/scsi-for-linus-2.5

23 years ago[PATCH] On v850, use a long jump to start_kernel
Miles Bader [Fri, 18 Jul 2003 03:12:49 +0000 (20:12 -0700)]
[PATCH] On v850, use a long jump to start_kernel

This allows the low-level start code to be located far away from the
rest of the kernel, which is sometimes necessary.

23 years ago[PATCH] Update AS85EP1 port on v850
Miles Bader [Fri, 18 Jul 2003 03:12:41 +0000 (20:12 -0700)]
[PATCH] Update AS85EP1 port on v850

23 years ago[PATCH] Rename config option CONFIG_V850E_MA1_HIGHRES_TIMER on v850
Miles Bader [Fri, 18 Jul 2003 03:12:33 +0000 (20:12 -0700)]
[PATCH] Rename config option CONFIG_V850E_MA1_HIGHRES_TIMER on v850

This feature is not actually MA1-specific, so get rid of the `MA1' in
the name.

23 years ago[PATCH] v850 miscellanea
Miles Bader [Fri, 18 Jul 2003 03:12:25 +0000 (20:12 -0700)]
[PATCH] v850 miscellanea

Some updated copyright noticed and an unnecessary variable deleted.

23 years ago[PATCH] Update v850 config/makefile
Miles Bader [Fri, 18 Jul 2003 03:12:17 +0000 (20:12 -0700)]
[PATCH] Update v850 config/makefile

This updates the v850 Kconfig and kernel/Makefile to reflect preceding
changes.

23 years ago[PATCH] Add v850 `sim85e2s' port, and cleanup v850e2 code
Miles Bader [Fri, 18 Jul 2003 03:12:08 +0000 (20:12 -0700)]
[PATCH] Add v850 `sim85e2s' port, and cleanup v850e2 code

This patch adds support for the `sim85e2s' simulation of the NA85E2S
processor implementation.  As part of this, cache-flushing support for
the common v850e2 cache implementation is added.

It also cleans up a bunch of code that was duplicated between different
v850e2 processors.

23 years ago[PATCH] Add v850 RTE-V850E/ME2-CB port
Miles Bader [Fri, 18 Jul 2003 03:11:24 +0000 (20:11 -0700)]
[PATCH] Add v850 RTE-V850E/ME2-CB port

This adds a port to the V850E/ME2 processor, and the `SolutionGear mini'
RTE-V850E/ME2-CB evaluation board.

23 years ago[PATCH] Add another layer of indirection for irq numbering with v850 `gbus' irqs
Miles Bader [Fri, 18 Jul 2003 03:11:15 +0000 (20:11 -0700)]
[PATCH] Add another layer of indirection for irq numbering with v850 `gbus' irqs

This allows ports that support the v850 RTE-CB `GBUS' interrupts to use
both them and processor-board-specific interrupts at the same time.

23 years ago[PATCH] Cleanup v850 cache-flushing code a bit
Miles Bader [Fri, 18 Jul 2003 03:11:09 +0000 (20:11 -0700)]
[PATCH] Cleanup v850 cache-flushing code a bit

(1) Add support for the V850E/ME2 processor

(2) Clean up the cache-flushing function naming a bit

(3) Similar to previous patches, rename everything from `nb85e' to `v850e'.
    This patch renames some files, and so contains a number of whole-file
    add/removes.

23 years ago[PATCH] Refactor v850 UART driver
Miles Bader [Fri, 18 Jul 2003 03:10:48 +0000 (20:10 -0700)]
[PATCH] Refactor v850 UART driver

The v850 family contains several related-but-not-identical on-chip
UARTs.  This patch factors out the common code and uses it to implement
both types (only one was supported before).

Also, this patch changes the way the v850 UART is initialized, to use
the same method as other linux serial drivers.

This patch renames the UART code to be `v850e_uart' rather than
`nb85e_uart', as the former is more correct.  As this change renames
some files too, the patch contains a number of whole-file add/removes.

23 years ago[PATCH] Rename `nb85e' to `v850e' on v850
Miles Bader [Fri, 18 Jul 2003 03:10:05 +0000 (20:10 -0700)]
[PATCH] Rename `nb85e' to `v850e' on v850

The term `nb85e' is incorrect (caused by my confusion when starting the
v850 port), so this renames all occurances to `v850e'.

Because this change renames some files too, it contains a number of
whole-file add/removes.

23 years agoManual merge
Linus Torvalds [Fri, 18 Jul 2003 02:56:15 +0000 (19:56 -0700)]
Manual merge

23 years ago[PATCH] Makefile bits for audio resync
Alan Cox [Fri, 18 Jul 2003 02:47:42 +0000 (19:47 -0700)]
[PATCH] Makefile bits for audio resync

23 years ago[PATCH] Kahlua audio driver
Alan Cox [Fri, 18 Jul 2003 02:47:35 +0000 (19:47 -0700)]
[PATCH] Kahlua audio driver

23 years ago[PATCH] Add Harmony OSS driver
Alan Cox [Fri, 18 Jul 2003 02:47:29 +0000 (19:47 -0700)]
[PATCH] Add Harmony OSS driver

(Jean-Christoph Vaugeois, Matthieu Delahaye,Helge Deller, Alex deVries)

23 years ago[PATCH] Add HAL2 driver
Alan Cox [Fri, 18 Jul 2003 02:47:22 +0000 (19:47 -0700)]
[PATCH] Add HAL2 driver

(Ladislav Michl)

23 years ago[PATCH] emu10k further updates/bug fixes
Alan Cox [Fri, 18 Jul 2003 02:47:14 +0000 (19:47 -0700)]
[PATCH] emu10k further updates/bug fixes

23 years ago[PATCH] illegal->invalid for dmasound
Alan Cox [Fri, 18 Jul 2003 02:47:07 +0000 (19:47 -0700)]
[PATCH] illegal->invalid for dmasound

23 years ago[PATCH] btaudio uses memset so should be strlcpy
Alan Cox [Fri, 18 Jul 2003 02:47:00 +0000 (19:47 -0700)]
[PATCH] btaudio uses memset so should be strlcpy

(I've got a patch pending from someone to redo the lot using memset so
its safe from padding suprises)

23 years ago[PATCH] fix unused symbol in ad1889
Alan Cox [Fri, 18 Jul 2003 02:46:53 +0000 (19:46 -0700)]
[PATCH] fix unused symbol in ad1889

(Francois Romieu)

23 years ago[PATCH] fix ver_linux for 2.6
Alan Cox [Fri, 18 Jul 2003 02:46:45 +0000 (19:46 -0700)]
[PATCH] fix ver_linux for 2.6

(Steven Cole)

23 years ago[PATCH] fix make rpm versioning
Alan Cox [Fri, 18 Jul 2003 02:46:39 +0000 (19:46 -0700)]
[PATCH] fix make rpm versioning

23 years ago[PATCH] correct author of ad1980 plugin
Alan Cox [Fri, 18 Jul 2003 02:46:32 +0000 (19:46 -0700)]
[PATCH] correct author of ad1980 plugin

(Overzealous C&P of Red Hat license template 8))

23 years ago[PATCH] fix failed sethostname corrupting the data
Alan Cox [Fri, 18 Jul 2003 02:46:25 +0000 (19:46 -0700)]
[PATCH] fix failed sethostname corrupting the data

(Stephan Maciej)

23 years ago[PATCH] fix a copy_user return
Alan Cox [Fri, 18 Jul 2003 02:46:18 +0000 (19:46 -0700)]
[PATCH] fix a copy_user return

23 years ago[PATCH] remove a now false comment
Alan Cox [Fri, 18 Jul 2003 02:46:11 +0000 (19:46 -0700)]
[PATCH] remove a now false comment

(Frank Cusack)

23 years ago[PATCH] fix a doc error and misleading printk
Alan Cox [Fri, 18 Jul 2003 02:46:05 +0000 (19:46 -0700)]
[PATCH] fix a doc error and misleading printk

23 years ago[PATCH] fix jffs2 build
Alan Cox [Fri, 18 Jul 2003 02:45:57 +0000 (19:45 -0700)]
[PATCH] fix jffs2 build

(Jamie Hicks)

23 years ago[PATCH] restore console log level when jbd raises it
Alan Cox [Fri, 18 Jul 2003 02:45:48 +0000 (19:45 -0700)]
[PATCH] restore console log level when jbd raises it

(Vita Samel)

maybe the set function should return the old value instead ?

23 years ago[PATCH] xjack pcmcia needs .. pcmcia
Alan Cox [Fri, 18 Jul 2003 02:45:40 +0000 (19:45 -0700)]
[PATCH] xjack pcmcia needs .. pcmcia

(Taral)

23 years ago[PATCH] serial proc gives info on keycounts which can sometiems be abused
Alan Cox [Fri, 18 Jul 2003 02:45:33 +0000 (19:45 -0700)]
[PATCH] serial proc gives info on keycounts which can sometiems be abused

For 2.4.x we made the file r-------- but for 2.6 we can do a nicer job

23 years ago[PATCH] sym53c8xxx wasnt updated to new irq code etc
Alan Cox [Fri, 18 Jul 2003 02:45:25 +0000 (19:45 -0700)]
[PATCH] sym53c8xxx wasnt updated to new irq code etc

23 years ago[PATCH] undefined shifts in qla1280
Alan Cox [Fri, 18 Jul 2003 02:45:19 +0000 (19:45 -0700)]
[PATCH] undefined shifts in qla1280

C doesn't define >> by 32 for 32bit systems, and on some gcc leaves
you with the original value...

23 years ago[PATCH] fix qlogicfas build warning
Alan Cox [Fri, 18 Jul 2003 02:45:12 +0000 (19:45 -0700)]
[PATCH] fix qlogicfas build warning

23 years ago[PATCH] pas16 build fix
Alan Cox [Fri, 18 Jul 2003 02:45:05 +0000 (19:45 -0700)]
[PATCH] pas16 build fix

23 years ago[PATCH] function is long gone, kill prototype
Alan Cox [Fri, 18 Jul 2003 02:44:57 +0000 (19:44 -0700)]
[PATCH] function is long gone, kill prototype

23 years ago[PATCH] make isapnp request its port properly
Alan Cox [Fri, 18 Jul 2003 02:44:50 +0000 (19:44 -0700)]
[PATCH] make isapnp request its port properly

23 years ago[PATCH] forward port 2.4 Zoom video support
Alan Cox [Fri, 18 Jul 2003 02:44:45 +0000 (19:44 -0700)]
[PATCH] forward port 2.4 Zoom video support

Also apply the right fix to the yenta hang problem

23 years ago[PATCH] re-enable seq8005
Alan Cox [Fri, 18 Jul 2003 02:44:37 +0000 (19:44 -0700)]
[PATCH] re-enable seq8005

23 years ago[PATCH] use cpu_relax in seq8005
Alan Cox [Fri, 18 Jul 2003 02:44:31 +0000 (19:44 -0700)]
[PATCH] use cpu_relax in seq8005

23 years ago[PATCH] clarify AXNET kconfig as per 2.4
Alan Cox [Fri, 18 Jul 2003 02:44:23 +0000 (19:44 -0700)]
[PATCH] clarify AXNET kconfig as per 2.4

23 years ago[PATCH] convert ewrk3 for new locking etc
Alan Cox [Fri, 18 Jul 2003 02:44:16 +0000 (19:44 -0700)]
[PATCH] convert ewrk3 for new locking etc

23 years ago[PATCH] fix all the paths in ide Kconfig docs
Alan Cox [Fri, 18 Jul 2003 02:44:09 +0000 (19:44 -0700)]
[PATCH] fix all the paths in ide Kconfig docs

(Helge Hafting)

23 years ago[PATCH] move watchdogs to __module_get now it exists
Alan Cox [Fri, 18 Jul 2003 02:44:03 +0000 (19:44 -0700)]
[PATCH] move watchdogs to __module_get now it exists

(Jan Dittmer)

Also add the 82801EB/ER  (Wim Van Sebroeck)

23 years ago[PATCH] clean up ip2 glue (not yet ported tho)
Alan Cox [Fri, 18 Jul 2003 02:43:55 +0000 (19:43 -0700)]
[PATCH] clean up ip2 glue (not yet ported tho)

(Adriank Bunk)

23 years ago[PATCH] first cut ftape conversion
Alan Cox [Fri, 18 Jul 2003 02:43:49 +0000 (19:43 -0700)]
[PATCH] first cut ftape conversion

(Paulo Andre)

23 years ago[PATCH] pnp layer seems to document wrong file name
Alan Cox [Fri, 18 Jul 2003 02:43:42 +0000 (19:43 -0700)]
[PATCH] pnp layer seems to document wrong file name

(Jochen Hein)

23 years ago[PATCH] updated magic number tables
Alan Cox [Fri, 18 Jul 2003 02:43:35 +0000 (19:43 -0700)]
[PATCH] updated magic number tables

(Fabian Frederick)

23 years ago[PATCH] head -n 2 for ppc64
Alan Cox [Fri, 18 Jul 2003 02:43:28 +0000 (19:43 -0700)]
[PATCH] head -n 2 for ppc64

23 years ago[PATCH] POSIX doesnt guarantee head -2, only head -n 2
Alan Cox [Fri, 18 Jul 2003 02:43:21 +0000 (19:43 -0700)]
[PATCH] POSIX doesnt guarantee head -2, only head -n 2

(and some build environments are set up to be poxixly correct)

(Teemu Tervo)

23 years ago[PATCH] another batch of "invalid" not "illegal" fixes
Alan Cox [Fri, 18 Jul 2003 02:43:14 +0000 (19:43 -0700)]
[PATCH] another batch of "invalid" not "illegal" fixes

(Steven Cole)

23 years ago[PATCH] fix visws pci (visws specific code)
Alan Cox [Fri, 18 Jul 2003 02:43:07 +0000 (19:43 -0700)]
[PATCH] fix visws pci (visws specific code)

(Andrey Panin)

23 years ago[PATCH] mtrr fixes
Alan Cox [Fri, 18 Jul 2003 02:43:00 +0000 (19:43 -0700)]
[PATCH] mtrr fixes

Fix cyrix mtrr ((Zoltán Böszörményi)
Back port 2.4 handling for the Intel bug
Add printk levels

23 years ago[PATCH] mtrr printk levels
Alan Cox [Fri, 18 Jul 2003 02:42:53 +0000 (19:42 -0700)]
[PATCH] mtrr printk levels

23 years ago[PATCH] alpha illegal->invalid
Alan Cox [Fri, 18 Jul 2003 02:42:47 +0000 (19:42 -0700)]
[PATCH] alpha illegal->invalid

23 years ago[PATCH] "Fix" AS i/o hang with aacraid driver
Andrew Morton [Fri, 18 Jul 2003 02:28:24 +0000 (19:28 -0700)]
[PATCH] "Fix" AS i/o hang with aacraid driver

From: Mark Haverkamp <markh@osdl.org>

Mark says:

  "Daniel McNeil and I have been debugging a hang with the aacraid driver
   using the as I/O scheduler."

   We found that scsi_request_fn would de-queue a request and later
   re-queued it.  This left the as_data->nr_dispatched variable in an
   inconsistent state (it was never being decremented back to zero).

   We added a call to elv_completed_request to clean up the state before
   re-adding the request.  This has fixed our hang problem."

It affects other SCSI drivers, but less frequently.  We're assuming this is
the cause of several "everything got stuck in D state" reports.

A very long design discussion has ensued.  We don't have a suitably tested fix
ready so I think it is best to put Mark's one-liner in there for now, fix it
for real when everyone gets back from OLS.

23 years ago[PATCH] fix as-iosched do_div()
Andrew Morton [Fri, 18 Jul 2003 02:28:16 +0000 (19:28 -0700)]
[PATCH] fix as-iosched do_div()

For CONFIG_LBD=n case it was passing a u32 into do_div().

23 years ago[PATCH] Update Documentation/magic-numbers.txt
Andrew Morton [Fri, 18 Jul 2003 02:28:09 +0000 (19:28 -0700)]
[PATCH] Update Documentation/magic-numbers.txt

From: <ffrederick@prov-liege.be>

Update Documentation/magic-numbers.txt

23 years ago[PATCH] fix bootmem allocator on machines with holes in
Andrew Morton [Fri, 18 Jul 2003 02:28:01 +0000 (19:28 -0700)]
[PATCH] fix bootmem allocator on machines with holes in

From: Anton Blanchard <anton@samba.org>

If the memory we are trying to allocate is too large to fit in the current
region, we should skip to the end.  We currently search the available
bitmap, find the area is too small, increment the start by incr and try
again.  This resulted in an apparent lockup on a 64GB machine that had a
3GB IO hole starting at 1GB (and the mem_map array would not fit in the
first region).

Also use ALIGN macro instead of an open coded version.

23 years ago[PATCH] dm: v4 ioctl interface
Andrew Morton [Fri, 18 Jul 2003 02:27:54 +0000 (19:27 -0700)]
[PATCH] dm: v4 ioctl interface

From: Joe Thornber <thornber@sistina.com>

v4 of the ioctl interface.  Note there never was a v2 or a v3 except in an
unofficial EVMS way.

This works correctly with the 64-bit dev_t patches in -mm kernels.

There is now a config option to allow the user to select v1 or v4, it
defaults to v1.  dm-ioctl.[hc] just #includes dm-ioctl-v[14].[hc] depending
on the config option.

If you want to use v4 you will have to update your tools
(libdevmapper/lvm).  The latest tools at the time of writing are:

dmsetup + libdevmapper + replacement kernel patches for 2.4.20 & 2.4.21:

  ftp://ftp.sistina.com/pub/LVM2/device-mapper/device-mapper-testing-new-version4-interface.tgz

Updated LVM2 tools to work with the above:

  ftp://ftp.sistina.com/pub/LVM2/tools/LVM2.0-testing.tgz

23 years ago[PATCH] dm: 'wait for event' race
Andrew Morton [Fri, 18 Jul 2003 02:27:46 +0000 (19:27 -0700)]
[PATCH] dm: 'wait for event' race

From: Joe Thornber <thornber@sistina.com>

There was a race associated with the 'wait for a significant event'
functionality.

Basically userland could read the status table, then wait for another
event, but the event it was waiting for could have occurred in the gap
between reading and waiting.

To solve this we assign identifiers to events, in order to successfully
wait for an event both userland and the kernel driver must be in agreement
about what the last event identifier was.  If they don't agree the wait
call will return immediately, allowing userland to re-read the status and
see what it missed.

The new ioctl interface will use this properly.

23 years ago[PATCH] CLONE_STOPPED
Andrew Morton [Fri, 18 Jul 2003 02:27:39 +0000 (19:27 -0700)]
[PATCH] CLONE_STOPPED

From: Ulrich Drepper <drepper@redhat.com>

CLONE_STOPPED: start a thread in a stopped state.  Required for NTPL.

23 years ago[PATCH] watchdog: i810-tco support
Andrew Morton [Fri, 18 Jul 2003 02:27:31 +0000 (19:27 -0700)]
[PATCH] watchdog: i810-tco support

From: Wim Van Sebroeck <wim@iguana.be>

Adds support for the 82801EB and 82801ER I/O Controller Hub's (ICH5 &
ICH5R).  This will add watchdog support for the i865 and i875 motherboard
chipsets.  It also removes some extra trailing spaces in the source files.

23 years ago[PATCH] vesafb fix
Andrew Morton [Fri, 18 Jul 2003 02:27:23 +0000 (19:27 -0700)]
[PATCH] vesafb fix

From: Gerd Knorr <kraxel@suse.de>

The patch below fixes some vesafb issues.  Changes:

* fixed struct screen_info in tty.h to use portable types.  "unsigned
  long" for 32bit values doesn't work on hammer machines ...

* limited the framebuffer memory used by vesafb to 16 MB.  This avoids
  that vesafb's ioremap() eats plenty of kernel address space for no real
  benefit if the gfx card has very much memory (some have 128 MB or more,
  ia32 has 128 MB address space for vmalloc and ioremap ...).

* mtrr is enabled by default.  That should improve the vesafb performance
  a lot.  Also added a option to disable mtrr.

23 years ago[PATCH] visws: fix PCI breakage
Andrew Morton [Fri, 18 Jul 2003 02:27:16 +0000 (19:27 -0700)]
[PATCH] visws: fix PCI breakage

From: Andrey Panin <pazke@donpac.ru>

This fixes Visws PCI code which was broken since 2.5.73.

23 years ago[PATCH] settimeofday() fixes
Andrew Morton [Fri, 18 Jul 2003 02:27:04 +0000 (19:27 -0700)]
[PATCH] settimeofday() fixes

From: davem

- sys_stime() takes an int*, but it should be a time_t*: they have different
  sizes on (for example) sparc64.

- sys_settimeofday() is confusing timevals with timespecs.  They have
  different sizes on sparc64 and the time keeps on getting set to epoch.

23 years ago[PATCH] slab: print stuff when the wrong cache is used
Andrew Morton [Fri, 18 Jul 2003 02:26:56 +0000 (19:26 -0700)]
[PATCH] slab: print stuff when the wrong cache is used

From: Manfred Spraul <manfred@colorfullife.com>

Some extra diagnostics when someone passes the wrong object type
into kmem_cache_free().  To help some bug which Manfred is chasing.

23 years ago[PATCH] CONFIG_BLK_DEV_CRYPTOLOOP needs CONFIG_CRYPTO
Andrew Morton [Fri, 18 Jul 2003 02:26:48 +0000 (19:26 -0700)]
[PATCH] CONFIG_BLK_DEV_CRYPTOLOOP needs CONFIG_CRYPTO

From: Brett <generica@email.com>

CONFIG_BLK_DEV_CRYPTOLOOP needs CONFIG_CRYPTO

23 years ago[PATCH] unline most of put_namespace()
Andrew Morton [Fri, 18 Jul 2003 02:26:41 +0000 (19:26 -0700)]
[PATCH] unline most of put_namespace()

It has five callsites, and is big.

23 years ago[PATCH] Fix two bugs with process limits (RLIMIT_NPROC)
Andrew Morton [Fri, 18 Jul 2003 02:26:32 +0000 (19:26 -0700)]
[PATCH] Fix two bugs with process limits (RLIMIT_NPROC)

From: Neil Brown <neilb@cse.unsw.edu.au>

1/ If a setuid process swaps it's real and effective uids and then forks,
 the fork fails if the new realuid has more processes
 than the original process was limited to.
 This is particularly a problem if a user with a process limit
 (e.g. 256) runs a setuid-root program which does setuid() + fork()
 (e.g. lprng) while root already has more than 256 process (which
 is quite possible).

 The root problem here is that a limit which should be a per-user
 limit is being implemented as a per-process limit with
 per-process (e.g. CAP_SYS_RESOURCE) controls.
 Being a per-user limit, it should be that the root-user can over-ride
 it, not just some process with CAP_SYS_RESOURCE.

 This patch adds a test to ignore process limits if the real user is root.

2/ When a root-owned process (e.g. cgiwrap) sets up process limits and then
  calls setuid, the setuid should fail if the user would then be running
  more than rlim_cur[RLIMIT_NPROC] processes, but it doesn't.  This patch
  adds an appropriate test.  With this patch, and per-user process limit
  imposed in cgiwrap really works.

23 years ago[PATCH] fix return of compat_sys_sched_getaffinity
Andrew Morton [Fri, 18 Jul 2003 02:26:24 +0000 (19:26 -0700)]
[PATCH] fix return of compat_sys_sched_getaffinity

From: Anton Blanchard <anton@samba.org>

On success getaffinity should return the size of mask.  It looks like
Randy's patch (which fixed a bogus return) missed this bit.

In reality I'm not sure if we care, and with cpu bitmasks this stuff is
going to break.

23 years ago[PATCH] fix removable partitioned media with devfs
Andrew Morton [Fri, 18 Jul 2003 02:26:16 +0000 (19:26 -0700)]
[PATCH] fix removable partitioned media with devfs

From: Andrey Borzenkov <arvidjaar@mail.ru>

Current 2.5 does not register any device node in devfs for empty media
(capacity == 0) case.  This makes removables unusable with devfs.
Partition rescan is done only on bdev open, but without any device node for
device it is impossible to open it.

In 2.4 it was finally solved by always registering .../disc node as
representation for "whole" disk and using devfsd action to force partition
rescan on access to (non-existing) partition name.  For primary names it
was handled internally by devfs - it kept track of removable devices in
directory and initiated partition rescan when name was not found.

Both are obviously broken now.  You can't do partition rescan because no
node is registered at all and internal handling was removed.  Very nice.

The attached patch makes resgister_disk always register at least disc node.
 This now works for old and new compat names as per devfsd configuration;
canonical names are still broken:

  {pts/3}% ll /dev/scsi/host1/bus0/target4/lun0/part4
  ls: /dev/scsi/host1/bus0/target4/lun0/part4: No such file or directory

but it can be fixed using the same technique as above so I won't push it.

23 years ago[PATCH] use kmalloc for ia32 stacks
Andrew Morton [Fri, 18 Jul 2003 02:26:08 +0000 (19:26 -0700)]
[PATCH] use kmalloc for ia32 stacks

From: William Lee Irwin III <wli@holomorphy.com>

I've been slab allocating the stack on i386 for some time, and it has gone
without incident in pgcl, -wli, -mjb (?), and so on.  kmalloc() is fine;
there isn't any particularly compelling reason for a dedicated slab as
there's no preconstruction to do, though it can be arranged.

Basically, it works, there's no obvious reason not to, and (even better)
it's not totally invisible to the VM and even makes overhead reportable.

23 years ago[PATCH] remove task_cache entirely
Andrew Morton [Fri, 18 Jul 2003 02:26:01 +0000 (19:26 -0700)]
[PATCH] remove task_cache entirely

From: Manfred Spraul <manfred@colorfullife.com>

kernel/fork.c contains a disabled cache for task stuctures.  task
structures are placed into the task cache only if "tsk==current", and
"tsk==current" is impossible.  There is even a WARN_ON against that in
__put_task_struct().

So remove it entirely - it's dead code.

One problem is that order-1 allocations are not cached per-cpu - we can
use kmalloc for the stack.

23 years ago[PATCH] is_devfsd_or_child() deadlock fix
Andrew Morton [Fri, 18 Jul 2003 02:25:55 +0000 (19:25 -0700)]
[PATCH] is_devfsd_or_child() deadlock fix

From: Andrey Borzenkov <arvidjaar@mail.ru>

The code that did proper check existed in 2.4 and was removed in 2.5 for
whatever reason. The patch restores it slightly modified as below.

2.4 code looks somewhat unclean in that

- it traverses task list without lock.

- it starts from current->real_parent but nothing prevents current be
  init_task itself.  This hung for me on 2.5 during boot.  May be 2.4 does
  something differently.

23 years ago[PATCH] pass regs into dump_fpu() in elf coredump
Andrew Morton [Fri, 18 Jul 2003 02:25:46 +0000 (19:25 -0700)]
[PATCH] pass regs into dump_fpu() in elf coredump

From: Pete Zaitcev <zaitcev@redhat.com>

sparc32 needs the registers passed into dump_fpu().

23 years ago[PATCH] ioctl(BLKBSZSET) fix and cleanup
Andrew Morton [Fri, 18 Jul 2003 02:25:39 +0000 (19:25 -0700)]
[PATCH] ioctl(BLKBSZSET) fix and cleanup

From: Lou Langholtz <ldl@aros.net>

- set_blocksize() already does those size checks.

- test the set_blocksize() return value: it can fail if the requested
  blocksize is less that the hard sector size.

23 years ago[PATCH] Ext3 xattr credits fix for quotas
Andrew Morton [Fri, 18 Jul 2003 02:25:31 +0000 (19:25 -0700)]
[PATCH] Ext3 xattr credits fix for quotas

From: Andreas Gruenbacher <agruen@suse.de>

The xattr and acl code are not properly reserving credits for quotas.
EXT3_DATA_TRANS_BLOCKS is an overestimate of the credits required including
quotas.  Make it a little more tight, and use it in the xattr and acl code
to be quota safe.

23 years ago[PATCH] ext3 extended attribute fixes
Andrew Morton [Fri, 18 Jul 2003 02:25:23 +0000 (19:25 -0700)]
[PATCH] ext3 extended attribute fixes

From: Andreas Gruenbacher <agruen@suse.de>

- Fix transaction credit exhaustion BUG.

- ext3_journal_get_write_access_credits failures break out of the loop in
  1058, so <ce> is not released properly.

- <credits> must be reset after journal_release_buffer() in line 1072.

23 years ago[PATCH] parport_pc.c compile warning
Andrew Morton [Fri, 18 Jul 2003 02:25:16 +0000 (19:25 -0700)]
[PATCH] parport_pc.c compile warning

From: Shane Shrybman <shrybman@sympatico.ca>

This fixes the following warning:

drivers/parport/parport_pc.c:98: warning: `verbose_probing' defined but
not used

23 years ago[PATCH] misc fixes
Andrew Morton [Fri, 18 Jul 2003 02:25:07 +0000 (19:25 -0700)]
[PATCH] misc fixes

- i460-agp linkage fix ("Luck, Tony" <tony.luck@intel.com>)

- Don't reimplement offsetof() in hfs

- NBD warning fix

- Remove unneeded null-pointer test in journal_stop (Andreas Gruenbacher)

- remove debug stuff in journal_dirty_metadata()

- slab.c typo fixes (Lev Makhlis <mlev@despammed.com>)

- In devfs_mk_cdev() error path, don't print `buf' until we've written
  something into it.  (Reported by Gergely Nagy <algernon@gandalph.mad.hu>)

- Two ISA sound drivers had their kmalloc() args reversed (Spotted by Steve
  French)