]> git.hungrycats.org Git - linux/log
linux
23 years agoMerge tetrachloride.(none):/mnt/raid/src/kernel/2.5/bk-linus
Dave Jones [Sun, 13 Jul 2003 03:10:35 +0000 (04:10 +0100)]
Merge tetrachloride.(none):/mnt/raid/src/kernel/2.5/bk-linus
into tetrachloride.(none):/mnt/raid/src/kernel/2.5/agpgart

23 years ago[AGPGART] SiS 648 support.
Dave Jones [Sun, 13 Jul 2003 03:09:07 +0000 (04:09 +0100)]
[AGPGART] SiS 648 support.
Again, untested in AGP3.x mode.

23 years agoMerge tetrachloride.(none):/mnt/raid/src/kernel/2.5/bk-linus
Dave Jones [Sat, 12 Jul 2003 23:00:56 +0000 (00:00 +0100)]
Merge tetrachloride.(none):/mnt/raid/src/kernel/2.5/bk-linus
into tetrachloride.(none):/mnt/raid/src/kernel/2.5/agpgart

23 years ago[AGPGART] SiS 746 support
Dave Jones [Sat, 12 Jul 2003 22:45:43 +0000 (23:45 +0100)]
[AGPGART] SiS 746 support
This (and a few other SiS chipsets) are AGP 3 compliant. AFAIK, none of
these have been tested in AGP3 mode, but they should work just fine in
AGP2.x mode at least.

23 years ago[AGPGART] Sort SiS device IDs.
Dave Jones [Sat, 12 Jul 2003 22:41:53 +0000 (23:41 +0100)]
[AGPGART] Sort SiS device IDs.

23 years ago[AGPGART] HP AGP update.
Dave Jones [Sat, 12 Jul 2003 13:30:37 +0000 (14:30 +0100)]
[AGPGART] HP AGP update.
From David Mosberger

This GART isn't actually a PCI device, which the AGP core/DRI expects it to be.
This patch gets the relevant info out of ACPI tables, and fakes the rest.

23 years ago[PATCH] [2.5] maestro volume tuning
Samuel Thibault [Sat, 12 Jul 2003 07:17:40 +0000 (00:17 -0700)]
[PATCH] [2.5] maestro volume tuning

This tunes the volume control of maestro sound boards: The log
conversion seems not good for PCM and CD.  The volume buttons
incrementing / decrementing the main volume by 10 on 100 is too much,
much better set it to 5.

23 years ago[PATCH] c99 initializers for init/version.c
Brian Gerst [Sat, 12 Jul 2003 07:17:24 +0000 (00:17 -0700)]
[PATCH] c99 initializers for init/version.c

23 years ago[PATCH] Fix error path in AD1889 driver
François Romieu [Sat, 12 Jul 2003 07:17:15 +0000 (00:17 -0700)]
[PATCH] Fix error path in AD1889 driver

Memory leak fix: the allocated areas weren't referenced any more once the
original error path returned.

23 years agoFix signedness tests in vsnprintf by making it explicit.
Linus Torvalds [Sat, 12 Jul 2003 05:50:01 +0000 (22:50 -0700)]
Fix signedness tests in vsnprintf by making it explicit.

It used to depend on us having a signed type (which in turn is
incorrect for the later division).

23 years ago[PATCH] Re: utimes/futimes/lutimes syscalls
Ulrich Drepper [Sat, 12 Jul 2003 02:55:23 +0000 (19:55 -0700)]
[PATCH] Re: utimes/futimes/lutimes syscalls

alpha, ia64, PA, sparc already export the existing "utimes()" system
call (using 'timeval[2]' instead of 'utimebuf' like the old "utime()").

Make it available on x86 too..

23 years ago[PATCH] x86-64 fixes for 2.5.75
Andi Kleen [Sat, 12 Jul 2003 02:46:02 +0000 (19:46 -0700)]
[PATCH] x86-64 fixes for 2.5.75

Some minimum critical fixes for x86-64:

- Make it compile for uni processor again
- Tell BIOS about long mode
- Fix 32bit IPC (broken by earlier patch)

23 years ago[PATCH] Deprecate numerical sysctl
Andi Kleen [Sat, 12 Jul 2003 02:45:55 +0000 (19:45 -0700)]
[PATCH] Deprecate numerical sysctl

Deprecate the numerical sysctl name space. People can use /proc/sys
instead.

The numeric name space was never well maintained and especially
in distribution kernels is not very consistent (everybody has their
own extensions, conflicting with others). It's also a great
source of rejects when merging patches.  The name-based /proc/sys
is a much better interface for this, which people should use instead.

Discussion of this on l-k found no advocate for it, so it seems to not
be very popular anyways.

This patch deprecates numerical name space accesses to make it possible
to remove them in the future. The only exception is kernel.version,
which is used by glibc (this one has to be maintained forever)

23 years ago[PATCH] asm-generic/div64.h breakage
Bernardo Innocenti [Sat, 12 Jul 2003 02:35:48 +0000 (19:35 -0700)]
[PATCH] asm-generic/div64.h breakage

 - __div64_32(): remove __attribute_pure__ qualifier from the prototype
   since this function obviously clobbers memory through &(n);

 - do_div(): add a check to ensure (n) is type-compatible with uint64_t;

 - as_update_iohist(): Use sector_div() instead of do_div().
   (Whether the result of the addition should always be stored in 64bits
   regardless of CONFIG_LBD is still being discussed, therefore it's
   unadderessed here);

 - Fix all places where do_div() was being called with a bad divisor argument.

23 years ago[PATCH] Fix IDE-CD command failure re-play
Jens Axboe [Sat, 12 Jul 2003 02:27:18 +0000 (19:27 -0700)]
[PATCH] Fix IDE-CD command failure re-play

Every failed SG_IO request is replayed second time without data
transfer.  Fix the problem by immediately purging the failed SG_IO
request from the request queue.

It fixes (among others)

http://marc.theaimsgroup.com/?t=105634805100001&r=1&w=2

where induced kernel crash occurs upon packet replay.

23 years agoMerge tetrachloride.(none):/mnt/raid/src/kernel/2.5/bk-linus
Dave Jones [Fri, 11 Jul 2003 18:41:15 +0000 (19:41 +0100)]
Merge tetrachloride.(none):/mnt/raid/src/kernel/2.5/bk-linus
into tetrachloride.(none):/mnt/raid/src/kernel/2.5/agpgart

23 years agoMerge with DRI CVS tree - which added a reminder to the DRI
Linus Torvalds [Fri, 11 Jul 2003 15:00:08 +0000 (08:00 -0700)]
Merge with DRI CVS tree - which added a reminder to the DRI
people not to remove the HAVE_KERNEL_CTX_SWITCH support that
the sparc drivers require.

Fix a FIXME.

23 years ago[PATCH] Fix AD1889 driver 2.4 merge
François Romieu [Fri, 11 Jul 2003 13:52:25 +0000 (06:52 -0700)]
[PATCH] Fix AD1889 driver 2.4 merge

- include/linux/wrapper.h doesn't exist in 2.5.75 and none of it's content
  is used by the driver;
- s/MINOR/minor/;
- KConfig/Makefile update.

23 years ago[PATCH] Merge AD1889 driver from 2.4
Alan Cox [Fri, 11 Jul 2003 13:52:17 +0000 (06:52 -0700)]
[PATCH] Merge AD1889 driver from 2.4

23 years ago[PATCH] update ymfpci for new ac97
Alan Cox [Fri, 11 Jul 2003 13:52:10 +0000 (06:52 -0700)]
[PATCH] update ymfpci for new ac97

23 years ago[PATCH] more wrong strlcpy's
Alan Cox [Fri, 11 Jul 2003 13:52:02 +0000 (06:52 -0700)]
[PATCH] more wrong strlcpy's

23 years ago[PATCH] update via audio driver, make it work on esd add new chips
Alan Cox [Fri, 11 Jul 2003 13:51:54 +0000 (06:51 -0700)]
[PATCH] update via audio driver, make it work on esd add new chips

23 years ago[PATCH] fix wrong printk in nm256 audio
Alan Cox [Fri, 11 Jul 2003 13:51:46 +0000 (06:51 -0700)]
[PATCH] fix wrong printk in nm256 audio

23 years ago[PATCH] update trident driver for new ac97 etc
Alan Cox [Fri, 11 Jul 2003 13:51:39 +0000 (06:51 -0700)]
[PATCH] update trident driver for new ac97 etc

23 years ago[PATCH] update nec driver to new ac97
Alan Cox [Fri, 11 Jul 2003 13:51:31 +0000 (06:51 -0700)]
[PATCH] update nec driver to new ac97

23 years ago[PATCH] Add swarm driver for broadcom boards
Alan Cox [Fri, 11 Jul 2003 13:51:24 +0000 (06:51 -0700)]
[PATCH] Add swarm driver for broadcom boards

23 years ago[PATCH] fix security leak in msnd_pinnacle.c
Alan Cox [Fri, 11 Jul 2003 13:51:17 +0000 (06:51 -0700)]
[PATCH] fix security leak in msnd_pinnacle.c

23 years ago[PATCH] fix security leak in maestro.c
Alan Cox [Fri, 11 Jul 2003 13:51:10 +0000 (06:51 -0700)]
[PATCH] fix security leak in maestro.c

23 years ago[PATCH] switch maestro3 to new ac97
Alan Cox [Fri, 11 Jul 2003 13:51:03 +0000 (06:51 -0700)]
[PATCH] switch maestro3 to new ac97

23 years ago[PATCH] update the i810 audio driver
Alan Cox [Fri, 11 Jul 2003 13:50:55 +0000 (06:50 -0700)]
[PATCH] update the i810 audio driver

23 years ago[PATCH] update ITE audio
Alan Cox [Fri, 11 Jul 2003 13:50:49 +0000 (06:50 -0700)]
[PATCH] update ITE audio

23 years ago[PATCH] Add Forte Media OSS driver
Alan Cox [Fri, 11 Jul 2003 13:50:40 +0000 (06:50 -0700)]
[PATCH] Add Forte Media OSS driver

23 years ago[PATCH] fix security leak and crash in esssolo
Alan Cox [Fri, 11 Jul 2003 13:50:33 +0000 (06:50 -0700)]
[PATCH] fix security leak and crash in esssolo

23 years ago[PATCH] bring es1371 in line with 2.4
Alan Cox [Fri, 11 Jul 2003 13:50:25 +0000 (06:50 -0700)]
[PATCH] bring es1371 in line with 2.4

Fixes security leak
Fixes a crash
Updates to use the new ac97

23 years ago[PATCH] fix security leaks and a crash in es1370
Alan Cox [Fri, 11 Jul 2003 13:50:18 +0000 (06:50 -0700)]
[PATCH] fix security leaks and a crash in es1370

23 years ago[PATCH] Switch the SB Live! to the new ac97 api
Alan Cox [Fri, 11 Jul 2003 13:50:10 +0000 (06:50 -0700)]
[PATCH] Switch the SB Live! to the new ac97 api

23 years ago[PATCH] fix the security leak in dmasound
Alan Cox [Fri, 11 Jul 2003 13:50:03 +0000 (06:50 -0700)]
[PATCH] fix the security leak in dmasound

23 years ago[PATCH] Update cs46xx in 2.5 to the newer 2.4 release
Alan Cox [Fri, 11 Jul 2003 13:49:56 +0000 (06:49 -0700)]
[PATCH] Update cs46xx in 2.5 to the newer 2.4 release

23 years ago[PATCH] fix security leaks in cmpci
Alan Cox [Fri, 11 Jul 2003 13:49:48 +0000 (06:49 -0700)]
[PATCH] fix security leaks in cmpci

23 years ago[PATCH] Add the ALI5455 driver from 2.4
Alan Cox [Fri, 11 Jul 2003 13:49:41 +0000 (06:49 -0700)]
[PATCH] Add the ALI5455 driver from 2.4

This is the newer audio used in later ALi chipsets.

23 years ago[PATCH] Fix security leaks in btaudio
Alan Cox [Fri, 11 Jul 2003 13:49:34 +0000 (06:49 -0700)]
[PATCH] Fix security leaks in btaudio

23 years ago[PATCH] demo plugin for switching ad1980 ports Dell style
Alan Cox [Fri, 11 Jul 2003 13:49:25 +0000 (06:49 -0700)]
[PATCH] demo plugin for switching ad1980 ports Dell style

23 years ago[PATCH] Add the au1000 driver
Alan Cox [Fri, 11 Jul 2003 13:49:18 +0000 (06:49 -0700)]
[PATCH] Add the au1000 driver

This is used by some MIPS systems

23 years ago[PATCH] AC97 updates from 2.4
Alan Cox [Fri, 11 Jul 2003 13:49:10 +0000 (06:49 -0700)]
[PATCH] AC97 updates from 2.4

This deals with several things
- Codecs that think they are modems but are not
- Abstracting modem detection out of drivers
- Abstracting digital switching out of drivers
- Codecs that have no volume control
- Codec plugins for specific setups
- Codec plugins for things like touchscreen/batmon on AC97
- More codec handlers

The plugin API is intentionally modelled on the other driver_register
type interfaces.

23 years ago[PATCH] not sure what the author was on ..
Alan Cox [Fri, 11 Jul 2003 13:49:03 +0000 (06:49 -0700)]
[PATCH] not sure what the author was on ..

23 years ago[PATCH] Fix remaining g_NCR5380 use of check_region
Alan Cox [Fri, 11 Jul 2003 13:48:55 +0000 (06:48 -0700)]
[PATCH] Fix remaining g_NCR5380 use of check_region

23 years ago[PATCH] fix further timer in pcmcia stuff
Alan Cox [Fri, 11 Jul 2003 13:48:49 +0000 (06:48 -0700)]
[PATCH] fix further timer in pcmcia stuff

#ra1

23 years ago[PATCH] fix up nmclan locking and hang on eject at wrong moment
Alan Cox [Fri, 11 Jul 2003 13:48:41 +0000 (06:48 -0700)]
[PATCH] fix up nmclan locking and hang on eject at wrong moment

[Not tested as I no longer have the card]

23 years ago[PATCH] ibmtr can unload with timers live
Alan Cox [Fri, 11 Jul 2003 13:48:33 +0000 (06:48 -0700)]
[PATCH] ibmtr can unload with timers live

23 years ago[PATCH] axnet can unload with timers live
Alan Cox [Fri, 11 Jul 2003 13:48:26 +0000 (06:48 -0700)]
[PATCH] axnet can unload with timers live

23 years ago[PATCH] isurf compile fix
Alan Cox [Fri, 11 Jul 2003 13:48:19 +0000 (06:48 -0700)]
[PATCH] isurf compile fix

23 years ago[PATCH] dtlk comment fix
Alan Cox [Fri, 11 Jul 2003 13:48:11 +0000 (06:48 -0700)]
[PATCH] dtlk comment fix

23 years ago[PATCH] clean up floppy98 a bit
Alan Cox [Fri, 11 Jul 2003 13:48:04 +0000 (06:48 -0700)]
[PATCH] clean up floppy98 a bit

23 years ago[PATCH] Remove bogus printk in microcode.c
Alan Cox [Fri, 11 Jul 2003 13:47:57 +0000 (06:47 -0700)]
[PATCH] Remove bogus printk in microcode.c

23 years ago[PATCH] genrtc sets owner fields so..
Alan Cox [Fri, 11 Jul 2003 13:47:50 +0000 (06:47 -0700)]
[PATCH] genrtc sets owner fields so..

23 years agofix cifs distributed caching - send oplock release immediately after flush of writebe...
Steve French [Fri, 11 Jul 2003 12:24:07 +0000 (05:24 -0700)]
fix cifs distributed caching - send oplock release immediately after flush of writebehind data on oplock break from server

23 years agoMerge bk://linux.bkbits.net/linux-2.5
Steve French [Fri, 11 Jul 2003 03:59:04 +0000 (20:59 -0700)]
Merge bk://linux.bkbits.net/linux-2.5
into hostme.bitkeeper.com:/repos/c/cifs/linux-2.5cifs

23 years ago[AGPGART] K8 North bridge bus position is no longer relevant.
Dave Jones [Thu, 10 Jul 2003 20:12:07 +0000 (21:12 +0100)]
[AGPGART] K8 North bridge bus position is no longer relevant.
We search for it by PCI ID now.

23 years ago[PATCH] show_stack changes for v850
Miles Bader [Thu, 10 Jul 2003 17:14:02 +0000 (10:14 -0700)]
[PATCH] show_stack changes for v850

23 years ago[PATCH] More irqreturn_t changes for v850
Miles Bader [Thu, 10 Jul 2003 17:13:55 +0000 (10:13 -0700)]
[PATCH] More irqreturn_t changes for v850

23 years ago[PATCH] Use <asm-generic/statsfs.h> on v850
Miles Bader [Thu, 10 Jul 2003 17:13:47 +0000 (10:13 -0700)]
[PATCH] Use <asm-generic/statsfs.h> on v850

23 years ago[PATCH] disk stats accounting fix
Jens Axboe [Thu, 10 Jul 2003 17:06:52 +0000 (10:06 -0700)]
[PATCH] disk stats accounting fix

We should only account file system requests, ones originating from
__make_request(). Otherwise it skews the counters and they go negative
really fast.

23 years ago[PATCH] epoll-per-fd fix
Andrew Morton [Thu, 10 Jul 2003 17:04:52 +0000 (10:04 -0700)]
[PATCH] epoll-per-fd fix

From: Davide Libenzi <davidel@xmailserver.org>

Fix epoll to allow pushing of multiple file descriptors sharing the same
kernel's file*

23 years ago[PATCH] devfs deadlock fix
Andrew Morton [Thu, 10 Jul 2003 17:04:45 +0000 (10:04 -0700)]
[PATCH] devfs deadlock fix

From: Andrey Borzenkov <arvidjaar@mail.ru>

I finally hit a painfully trivial way to reproduce another long standing devfs
problem - deadlock between devfs_lookup and devfs_d_revalidate_wait. When
devfs_lookup releases directory i_sem devfs_d_revalidate_wait grabs it (it
happens not for every path) and goes to wait to be waked up. Unfortunately,
devfs_lookup attempts to acquire directory i_sem before ever waking it up ...

To reproduce (2.5.74 UP or SMP - does not matter, single CPU system)

ls /dev/foo & rm -f /dev/foo &

or possibly in a loop but then it easily fills up process table. In my case it
hangs 100% reliably - on 2.5 OR 2.4.

The current fix is to move re-acquire of i_sem after all
devfs_d_revalidate_wait waiters have been waked up.  Much better fix would be
to ensure that ->d_revalidate either is always called under i_sem or always
without.  But that means the very heart of VFS and I do not dare to touch it.

The fix has been tested on 2.4 (and is part of unofficial Mandrake Club
kernel); I expected the same bug is in 2.5; I just was stupid not seeing the
way to reproduce it before.

23 years ago[PATCH] devfs oops fix
Andrew Morton [Thu, 10 Jul 2003 17:04:38 +0000 (10:04 -0700)]
[PATCH] devfs oops fix

From: Andrey Borzenkov <arvidjaar@mail.ru>

Doing concurrent lookups for the same name in devfs with devfsd and modules
enabled may result in stack coruption.

When devfs_lookup needs to call devfsd it arranges for other lookups for the
same name to wait. It is using local variable as wait queue head. After
devfsd returns devfs_lookup wakes up all waiters and returns. Unfortunately
there is no garantee all waiters will actually get chance to run and clean up
before devfs_lookup returns. so some of them attempt to access already freed
storage on stack.

It is trivial to trigger with SMP kernel (I have single-CPU system if it
matters) doing

while true
do
  ls /dev/foo &
done

Without spinlock debug system usually hung dead with reset button as the only
possibility.

I was not able to reproduce it on 2.4 on single-CPU system - in 2.4
devfs_d_revalidate_wait does not attempt to remove itself from wait queue
so it appears to be safe.

The patch makes lookup struct be allocated from heap and adds reference
counter to free it when no more needed.

23 years ago[PATCH] Fix yenta-socket oops
Andrew Morton [Thu, 10 Jul 2003 17:04:32 +0000 (10:04 -0700)]
[PATCH] Fix yenta-socket oops

From: Russell King <rmk@arm.linux.org.uk>

Interrupts can sometimes occur before the socket thread is started.

23 years ago[PATCH] yenta-socket initialisation fix
Andrew Morton [Thu, 10 Jul 2003 17:04:25 +0000 (10:04 -0700)]
[PATCH] yenta-socket initialisation fix

From: Daniel Ritz <daniel.ritz@gmx.ch>

init_socket() enables interrupts, and the interrupt handler does a wakeup.
Let's initialise that waitqueue head before turning on the interrupts.

23 years ago[PATCH] oom killer fixes
Andrew Morton [Thu, 10 Jul 2003 17:04:17 +0000 (10:04 -0700)]
[PATCH] oom killer fixes

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

There are reports of kernel threads being killed by the oomkiller.  We
think this is because the oom killer tries to kill a task after it has
exitted and set its ->mm to zero.  The oom killer will then try to kill all
other tasks which have a null ->mm.

Attempt to detect that case and fix it up.

23 years ago[PATCH] ext3: sync_fs() fix
Andrew Morton [Thu, 10 Jul 2003 17:04:11 +0000 (10:04 -0700)]
[PATCH] ext3: sync_fs() fix

From: Alex Tomas <bzzz@tmi.comex.ru>

fsync_super() calls ->sync_fs() just after ->write_super().  But
write_super() will start a commit.  In this case, ext3_sync_fs() will not
itself start a commit, and it hence forgets to wait on the commit which
ext3_write_super() started.

Fix that up by making journal_start_commit() return the transaction ID of
any currently-running transaction.

23 years ago[PATCH] JBD: transaction buffer accounting fix
Andrew Morton [Thu, 10 Jul 2003 17:04:04 +0000 (10:04 -0700)]
[PATCH] JBD: transaction buffer accounting fix

From: Alex Tomas <bzzz@tmi.comex.ru>

start_this_handle() takes into account t_outstanding_credits when calculating
log free space, but journal_next_log_block() accounts for blocks being logged
also.  Hence, blocks are accounting twice.  This effectively reduces the
amount of log space available to transactions and forces more commits.

Fix it by decrementing t_outstanding_credits each time we allocate a new
journal block.

23 years ago[PATCH] JBD: checkpointing optimisations
Andrew Morton [Thu, 10 Jul 2003 17:03:57 +0000 (10:03 -0700)]
[PATCH] JBD: checkpointing optimisations

From: Alex Tomas <bzzz@tmi.comex.ru>

Some transaction checkpointing improvements for the JBD commit phase.  Decent
speedups:

creation of 500K files in single dir (with htree, of course):
 before: 4m16.094s, 4m12.035s, 4m11.911s
 after:  1m41.364s, 1m43.461s, 1m45.189s

removal of 500K files in single dir:
 before: 43m50.161s
 after:  38m45.510s

- Make __log_wait_for_space() recalculate the needed blocks because journal
  free space changes during commit

- Make log_do_checkpoint() starts scanning from the oldest transaction

- Make log_do_checkpoint() stop scanning if a transaction gets dropped.
  The caller will reevaluate the transaction state and decide whether more
  space needs to be generated in the log.

  The effect of this is to smooth out the I/O patterns, avoid the huge
  stop-and-go which currently happens when forced checkpointing writes out
  and waits upon 3/4 of the journal's size worth of data.

23 years ago[PATCH] nbd: make nbd and block layer agree about device and
Andrew Morton [Thu, 10 Jul 2003 17:03:51 +0000 (10:03 -0700)]
[PATCH] nbd: make nbd and block layer agree about device and

From: Paul Clements <Paul.Clements@SteelEye.com>

Ensure that nbd and the block layer agree about device block sizes and total
device sizes.

23 years ago[PATCH] nbd: remove unneeded nbd_open/nbd_release and refcnt
Andrew Morton [Thu, 10 Jul 2003 17:03:44 +0000 (10:03 -0700)]
[PATCH] nbd: remove unneeded nbd_open/nbd_release and refcnt

From: Paul Clements <Paul.Clements@SteelEye.com>

Remove the unneeded nbd_open and nbd_release functions.

23 years ago[PATCH] NBD documentation update
Andrew Morton [Thu, 10 Jul 2003 17:03:37 +0000 (10:03 -0700)]
[PATCH] NBD documentation update

From: Paul Clements <Paul.Clements@SteelEye.com>

Modernise nbd.txt a bit.

23 years ago[PATCH] nbd: cleanup PARANOIA usage & code
Andrew Morton [Thu, 10 Jul 2003 17:03:31 +0000 (10:03 -0700)]
[PATCH] nbd: cleanup PARANOIA usage & code

From: Lou Langholtz <ldl@aros.net>

This fifth patch cleans up usage of the PARANOIA sanity checking macro and
code.  This patch modifies both drivers/block/nbd.c and
include/linux/nbd.h.  It's intended to be applied incrementally on top of
my fourth patch (4.1 really if you count the memset addition as .1's worth)
that simply removed unneeded blksize_bits field.  Again, I wanted to get
this smaller change out of the way before my next patch will is much more
major.

23 years ago[PATCH] nbd: initialise the embedded kobject
Andrew Morton [Thu, 10 Jul 2003 17:03:24 +0000 (10:03 -0700)]
[PATCH] nbd: initialise the embedded kobject

From: Lou Langholtz <ldl@aros.net>

Fixes the NBD oopses which people have been reporting.

23 years ago[PATCH] nbd: remove unneeded blksize_bits field
Andrew Morton [Thu, 10 Jul 2003 17:03:17 +0000 (10:03 -0700)]
[PATCH] nbd: remove unneeded blksize_bits field

From: Lou Langholtz <ldl@aros.net>

This fourth patch simply removes the blksize_bits field from the nbd_device
struct and driver implementation.  How this field made it into this driver
to begin with is a mystery (where was Al Viro when that patch was
submitted??).  :-)

This patch modifies both drivers/block/nbd.c and include/linux/nbd.h files.
 It's intended to be applied incrementally on top of my third patch (for
enhanced diagnostics support).

23 years ago[PATCH] nbd: enhanced diagnostics support
Andrew Morton [Thu, 10 Jul 2003 17:03:11 +0000 (10:03 -0700)]
[PATCH] nbd: enhanced diagnostics support

From: Lou Langholtz <ldl@aros.net>

This third patch (for enhancing diagnostics support) applies incrementally
after my last LKML'd patch (for cosmetic changes).  These changes introduce
configurable KERN_DEBUG level printk output for a variety of different
things that the driver does and provides the framework for enhanced future
debugging support as well.

23 years ago[PATCH] NBD: cosmetic cleanups
Andrew Morton [Thu, 10 Jul 2003 17:03:03 +0000 (10:03 -0700)]
[PATCH] NBD: cosmetic cleanups

From: Lou Langholtz <ldl@aros.net>

It's a helpful step in being better able to identify code inefficiencies
and problems particularly w.r.t.  locking.  It also modifies some of the
output messages for greater consistancy and better diagnostic support.

This second patch is a lead in that way to the third patch, which will
simply introduce the dprintk() debugging facility that my jumbo patch
originally had.

With the cosmetics patch and debugging enhancement (patch), it will make it
easier to fix or at least improve the locking bugs/races in NBD (that will
likely make up the fourth patch in my envisioned roadmap).

23 years ago[PATCH] fix for CPU scheduler load distribution
Andrew Morton [Thu, 10 Jul 2003 17:02:57 +0000 (10:02 -0700)]
[PATCH] fix for CPU scheduler load distribution

From: Ingo Molnar <mingo@elte.hu>

It makes hot-balancing happen in the 'busy tick' case as well, which should
spread out processes more agressively.

23 years ago[PATCH] separate locking for vfsmounts
Andrew Morton [Thu, 10 Jul 2003 17:02:50 +0000 (10:02 -0700)]
[PATCH] separate locking for vfsmounts

From: Maneesh Soni <maneesh@in.ibm.com>

While path walking we do follow_mount or follow_down which uses
dcache_lock for serialisation.  vfsmount related operations also use
dcache_lock for all updates. I think we can use a separate lock for
vfsmount related work and can improve path walking.

The following two patches does the same. The first one replaces
dcache_lock with new vfsmount_lock in namespace.c. The lock is
local to namespace.c and is not required outside. The second patch
uses RCU to have lock free lookup_mnt(). The patches are quite simple
and straight forward.

The lockmeter reults show reduced contention, and lock acquisitions
for dcache_lock while running dcachebench* on a 4-way SMP box

    SPINLOCKS         HOLD            WAIT
    UTIL  CON    MEAN(  MAX )   MEAN(  MAX )(% CPU)     TOTAL NOWAIT SPIN RJECT  NAME

  baselkm-2569:
    20.7% 20.9%  0.5us( 146us)  2.9us( 144us)(0.81%)  31590840 79.1% 20.9%    0%  dcache_lock
  mntlkm-2569:
    14.3% 13.6%  0.4us( 170us)  2.9us( 187us)(0.42%)  23071746 86.4% 13.6%    0%  dcache_lock

We get more than 8% improvement on 4-way SMP and 44% improvement on 16-way
NUMAQ while runing dcachebench*.

Average (usecs/iteration) Std. Deviation
(lower is better)
4-way SMP
  2.5.69 15739.3 470.90
  2.5.69-mnt 14459.6 298.51

16-way NUMAQ
  2.5.69 120426.5 363.78
  2.5.69-mnt  63225.8 427.60

*dcachebench is a microbenchmark written by Bill Hartner and is available at
http://www-124.ibm.com/developerworks/opensource/linuxperf/dcachebench/dcachebench.html

 vfsmount_lock.patch
 -------------------
 - Patch for replacing dcache_lock with new vfsmount_lock for all mount
   related operation. This removes the need to take dcache_lock while
   doing follow_mount or follow_down operations in path walking.

I re-ran dcachebench with 2.5.70 as base on 16-way NUMAQ box.

                 Average (usecs/iteration)       Std. Deviation
                 (lower is better)
16-way NUMAQ
2.5.70  120710.9   230.67
 + vfsmount_lock.patch   65209.6 242.97
    + lookup_mnt-rcu.patch  64042.3 416.61

So just the lock splitting (vfsmount_lock.patch) gives almost similar benifits

23 years ago[PATCH] Fix race condition between aio_complete and
Andrew Morton [Thu, 10 Jul 2003 17:02:43 +0000 (10:02 -0700)]
[PATCH] Fix race condition between aio_complete and

From: "Chen, Kenneth W" <kenneth.w.chen@intel.com>

We hit a memory ordering race condition on AIO ring buffer tail pointer
between function aio_complete() and aio_read_evt().

What happens is that on an architecture that has a relaxed memory ordering
model like IPF(ia64), explicit memory barrier is required in a SMP
execution environment.  Considering the following case:

1 CPU is executing a tight loop of aio_read_evt.  It is pulling event off
the ring buffer.  During that loop, another CPU is executing aio_complete()
where it is putting event into the ring buffer and then update the tail
pointer.  However, due to relaxed memory ordering model, the tail pointer
can be visible before the actual event is being updated.  So the other CPU
sees the updated tail pointer but picks up a staled event data.

A memory barrier is required in this case between the event data and tail
pointer update.  Same is true for the head pointer but the window of the
race condition is nil.  For function correctness, it is fixed here as well.

By the way, this bug is fixed in the major distributor's kernel on 2.4.x
kernel series for a while, but somehow hasn't been propagated to 2.5 kernel
yet.

23 years ago[PATCH] Bug fix in AIO initialization
Andrew Morton [Thu, 10 Jul 2003 17:02:37 +0000 (10:02 -0700)]
[PATCH] Bug fix in AIO initialization

From: "Chen, Kenneth W" <kenneth.w.chen@intel.com>

We hit this bug when we have the following scenario:

One process initializes an AIO context and then forks out many child
processes.  When those child processes exit, many BUG checks
(effectively kernel oops) were triggered from put_ioctx(ctx) in function
exit_aio().

The issue was that the AIO context was incorrectly copied upon forking
and mislead all child processes to think they have an IO context and
trying to free it where they really don't own.  The following patch fix
the issue.

23 years ago[PATCH] Set umask correctly for nfsd kernel threads
Andrew Morton [Thu, 10 Jul 2003 17:02:29 +0000 (10:02 -0700)]
[PATCH] Set umask correctly for nfsd kernel threads

From: Andreas Gruenbacher <agruen@suse.de>

Without acls, when creating files the umask is applied directly in the vfs.
ACLs require that the umask is applied at the file system level, depending on
whether or not the containing directory has a default acl.  The daemonize()
function makes kernel threads share their fs_struct structure with the init
process.  Among other things, fs_struct contains the umask, so all kernel
threads share their umask with init.

The kernel nfsd needs to create files with a umask of 0.  Init's umask cannot
simply be changed to 0 --- this would have side effects on init, and init
would have side effects on nfsd.  So this patch recreates a fs_struct
structure for nfsd kernel threads, and sets its umask to 0.

This fixes bug #721, <http://www.osdl.net/show_bug.cgi?id=721>.

23 years ago[PATCH] misc fixes
Andrew Morton [Thu, 10 Jul 2003 17:02:22 +0000 (10:02 -0700)]
[PATCH] misc fixes

- remove accidental debug code from ext3 commit.

- /proc/profile documentation fix (Randy Dunlap)

- use sb_breadahead() in ext2_preread_inode()

- unused var in mpage_writepages()

23 years ago[PATCH] make CONFIG_KALLSYMS default to "on"
Andrew Morton [Thu, 10 Jul 2003 17:02:16 +0000 (10:02 -0700)]
[PATCH] make CONFIG_KALLSYMS default to "on"

From: Diego Calleja Garcia <diegocg@teleline.es>

Move CONFIG_KALLSYMS out of the arch directory and into init/.

It defaults to "on" unless the user explicitly turns it off in the
"embedded systems" menu.

23 years ago[PATCH] kmap() -> kmap_atomic() in fs/exec.c
Andrew Morton [Thu, 10 Jul 2003 17:02:09 +0000 (10:02 -0700)]
[PATCH] kmap() -> kmap_atomic() in fs/exec.c

replace a kmap() with kmap_atomic()

23 years ago[PATCH] i_size atomic access
Andrew Morton [Thu, 10 Jul 2003 17:02:02 +0000 (10:02 -0700)]
[PATCH] i_size atomic access

From: Daniel McNeil <daniel@osdl.org>

This adds i_seqcount to the inode structure and then uses i_size_read() and
i_size_write() to provide atomic access to i_size.  This is a port of
Andrea Arcangeli's i_size atomic access patch from 2.4.  This only uses the
generic reader/writer consistent mechanism.

Before:
mnm:/usr/src/25> size vmlinux
   text    data     bss     dec     hex filename
2229582 1027683  162436 3419701  342e35 vmlinux

After:
mnm:/usr/src/25> size vmlinux
   text    data     bss     dec     hex filename
2225642 1027655  162436 3415733  341eb5 vmlinux

3.9k more text, a lot of it fastpath :(

It's a very minor bug, and the fix has a fairly non-minor cost.  The most
compelling reason for fixing this is that writepage() checks i_size.  If it
sees a transient value it may decide that page is outside i_size and will
refuse to write it.  Lost user data.

23 years ago[PATCH] i_size atomic access: infrastructure
Andrew Morton [Thu, 10 Jul 2003 17:01:54 +0000 (10:01 -0700)]
[PATCH] i_size atomic access: infrastructure

From: Daniel McNeil <daniel@osdl.org>

This adds a sequence counter only version of the reader/writer consistent
mechanism to seqlock.h This is used in the second part of this patch give
atomic access to i_size.

23 years ago[PATCH] wall_to_monotonic initialization fixes for
Andrew Morton [Thu, 10 Jul 2003 17:01:48 +0000 (10:01 -0700)]
[PATCH] wall_to_monotonic initialization fixes for

From: Tim Schmielau <tim@physik3.uni-rostock.de>

This patch adds (or fixes) initialization of wall_to_monotonic for a few
more architectures.

This should get rid of the strange uptime>14600 days reports, except on arm
whose arch file layout is too unfamiliar to me.

The patch is blessed by George Anzinger, but untested due to lack of
hardware.

23 years ago[PATCH] fix reiserfs for 64bit arches
Andrew Morton [Thu, 10 Jul 2003 17:01:40 +0000 (10:01 -0700)]
[PATCH] fix reiserfs for 64bit arches

From: Oleg Drokin <green@namesys.com>

From the time of reiserfs_file_write inclusion all 64bit arches were not
able to work with reiserfs for pretty stupid reason (incorrect "unsigned
long" definition of blocknumber type).

This fixes the problem.

23 years ago[PATCH] reiserfs dirty memory accounting fix
Andrew Morton [Thu, 10 Jul 2003 17:01:33 +0000 (10:01 -0700)]
[PATCH] reiserfs dirty memory accounting fix

The ClearPageDirty() in there is wrong - it doesn't adjust the VM's dirty
memory accounting.  The system thinks it's full of dirty memory and stops.

23 years ago[PATCH] remove proc_mknod()
Andrew Morton [Thu, 10 Jul 2003 17:01:26 +0000 (10:01 -0700)]
[PATCH] remove proc_mknod()

From: Christoph Hellwig <hch@lst.de>

It's not used anymore since ALSA switched to traditional devices and device
nodes in procfs are a bad idea in general..

Also update the docs.

23 years ago[PATCH] fix return of compat_sys_sched_getaffinity
Andrew Morton [Thu, 10 Jul 2003 17:01:19 +0000 (10:01 -0700)]
[PATCH] fix return of compat_sys_sched_getaffinity

From: rwhron@earthlink.net

It returns sizeof(compat_ulong_t) even if put_user() faulted.

23 years agoMerge from DRI CVS tree: avoid zero DRI "handles".
Linus Torvalds [Thu, 10 Jul 2003 16:40:43 +0000 (09:40 -0700)]
Merge from DRI CVS tree: avoid zero DRI "handles".

23 years agoUpdate radeon driver from DRI CVS: add more commands.
Linus Torvalds [Thu, 10 Jul 2003 16:33:51 +0000 (09:33 -0700)]
Update radeon driver from DRI CVS: add more commands.

(version 1.8.0 -> 1.9.0)

23 years agoUpdate r128 driver from DRI CVS: add support for ycbcr textures.
Linus Torvalds [Thu, 10 Jul 2003 16:30:25 +0000 (09:30 -0700)]
Update r128 driver from DRI CVS: add support for ycbcr textures.

(version 2.3.0 -> 2.4.0)

23 years agoUpdate i810 DRI driver from CVS to add page flipping.
Linus Torvalds [Thu, 10 Jul 2003 16:26:05 +0000 (09:26 -0700)]
Update i810 DRI driver from CVS to add page flipping.

(version 1.2.1 to 1.3.0)

23 years agoMerge comment updates from DRI CVS tree.
Linus Torvalds [Thu, 10 Jul 2003 16:18:05 +0000 (09:18 -0700)]
Merge comment updates from DRI CVS tree.

23 years agoMerge bk://kernel.bkbits.net/davem/net-2.5
Linus Torvalds [Thu, 10 Jul 2003 14:06:16 +0000 (07:06 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux