]> git.hungrycats.org Git - linux/log
linux
23 years ago[PATCH] fs accounting, part 2
Jens Axboe [Sun, 13 Jul 2003 04:30:00 +0000 (21:30 -0700)]
[PATCH] fs accounting, part 2

The accounting works now, but I still think this last bit should be
added as well.  This makes absolutely sure we only account fs requests,
at both ends. Better safe than sorry.

23 years ago[PATCH] new sysctl checking accesses userspace directly
Petr Vandrovec [Sun, 13 Jul 2003 04:29:09 +0000 (21:29 -0700)]
[PATCH] new sysctl checking accesses userspace directly

The recent change from Andi breaks here: tmp.name is user pointer, not
array in __sysctl_args, and so it is better to access it through
copy_from_user instead of directly.

23 years agoMerge bk://linux-dj.bkbits.net/agpgart
Linus Torvalds [Sun, 13 Jul 2003 04:26:51 +0000 (21:26 -0700)]
Merge bk://linux-dj.bkbits.net/agpgart
into home.osdl.org:/home/torvalds/v2.5/linux

23 years ago[AGPGART] Make frontend sparse clean.
Dave Jones [Sun, 13 Jul 2003 14:36:45 +0000 (15:36 +0100)]
[AGPGART] Make frontend sparse clean.
Didn't turn up anything particularly nasty, but it does clean up
usage of a few types that are passed around.
- Do the casts in the ioctl handler instead.
- Remove unused variables.
- __user annotations.

23 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.5
Linus Torvalds [Sun, 13 Jul 2003 04:25:57 +0000 (21:25 -0700)]
Merge bk://kernel.bkbits.net/davem/sparc-2.5
into home.osdl.org:/home/torvalds/v2.5/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[IPSEC]: Missing reqid check in xfrm_state_ok.
Herbert Xu [Sat, 12 Jul 2003 17:33:36 +0000 (10:33 -0700)]
[IPSEC]: Missing reqid check in xfrm_state_ok.

23 years ago[IPV4]: Kill slow timers from IPVS, they are superfluous and inefficient these days.
David S. Miller [Sat, 12 Jul 2003 17:23:25 +0000 (10:23 -0700)]
[IPV4]: Kill slow timers from IPVS, they are superfluous and inefficient these days.

23 years ago[IPV4]: Always use Jenkins hash in ipvs conn table, use get_random_bytes() to init...
David S. Miller [Sat, 12 Jul 2003 17:10:23 +0000 (10:10 -0700)]
[IPV4]: Always use Jenkins hash in ipvs conn table, use get_random_bytes() to init key.

23 years ago[IPV4]: Do not redefine config macros in net/ip_vs.h
David S. Miller [Sat, 12 Jul 2003 17:05:07 +0000 (10:05 -0700)]
[IPV4]: Do not redefine config macros in net/ip_vs.h

23 years agoMerge nuts.ninka.net:/home/davem/src/BK/network-2.5
David S. Miller [Sat, 12 Jul 2003 16:12:30 +0000 (09:12 -0700)]
Merge nuts.ninka.net:/home/davem/src/BK/network-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5

23 years agoMerge nuts.ninka.net:/home/davem/src/BK/sparcwork-2.5
David S. Miller [Sat, 12 Jul 2003 16:10:32 +0000 (09:10 -0700)]
Merge nuts.ninka.net:/home/davem/src/BK/sparcwork-2.5
into nuts.ninka.net:/home/davem/src/BK/sparc-2.5

23 years ago[NETLINK]: Just drop packets for kernel netlink socket with no data_ready handler.
James Morris [Sat, 12 Jul 2003 15:45:31 +0000 (08:45 -0700)]
[NETLINK]: Just drop packets for kernel netlink socket with no data_ready handler.

23 years ago[NET]: Fix typo in net-sysfs.c copyright.
Nivedita Singhvi [Sat, 12 Jul 2003 15:39:23 +0000 (08:39 -0700)]
[NET]: Fix typo in net-sysfs.c copyright.

23 years ago[NET]: Merge in IPVS layer.
Wensong Zhang [Sat, 12 Jul 2003 15:22:12 +0000 (08:22 -0700)]
[NET]: Merge in IPVS layer.

23 years ago[SPARC]: Trap table alignment for Hyperspace (Keith Weselowsky).
Pete Zaitcev [Sat, 12 Jul 2003 15:13:40 +0000 (08:13 -0700)]
[SPARC]: Trap table alignment for Hyperspace (Keith Weselowsky).

23 years ago[SPARC]: Redo show_stack().
Pete Zaitcev [Sat, 12 Jul 2003 15:11:56 +0000 (08:11 -0700)]
[SPARC]: Redo show_stack().

23 years ago[SPARC]: hch's cond_syscall() for PCI syscalls, Alpha/PPC/etc. can use this too.
Pete Zaitcev [Sat, 12 Jul 2003 15:10:22 +0000 (08:10 -0700)]
[SPARC]: hch's cond_syscall() for PCI syscalls, Alpha/PPC/etc. can use this too.

23 years ago[SPARC]: defconfig for willy's scsi
Pete Zaitcev [Sat, 12 Jul 2003 15:07:16 +0000 (08:07 -0700)]
[SPARC]: defconfig for willy's scsi

23 years ago[SPARC]: Clean secondary System.map
Pete Zaitcev [Sat, 12 Jul 2003 15:05:43 +0000 (08:05 -0700)]
[SPARC]: Clean secondary System.map

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 agoDisable TI cardbus PCI IRQ routing code that was forward-ported
Linus Torvalds [Sat, 12 Jul 2003 13:28:15 +0000 (06:28 -0700)]
Disable TI cardbus PCI IRQ routing code that was forward-ported
from 2.4-ac - it seems to cause hangs for people.

23 years agoMark Bartlomiej as the IDE maintainer, about 3 months late ;)
Linus Torvalds [Sat, 12 Jul 2003 12:56:56 +0000 (05:56 -0700)]
Mark Bartlomiej as the IDE maintainer, about 3 months late ;)

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 ago[SPARC64]: Use mm->free_area_cache.
David S. Miller [Fri, 11 Jul 2003 20:06:47 +0000 (13:06 -0700)]
[SPARC64]: Use mm->free_area_cache.

23 years ago[SPARC64]: Implement force_successful_syscall().
David S. Miller [Fri, 11 Jul 2003 19:06:10 +0000 (12:06 -0700)]
[SPARC64]: Implement force_successful_syscall().

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 ago[SPARC64]: Ditch local KALLSYMS from Kconfig, update defconfig.
David S. Miller [Fri, 11 Jul 2003 17:30:34 +0000 (10:30 -0700)]
[SPARC64]: Ditch local KALLSYMS from Kconfig, update defconfig.

23 years agoMerge nuts.ninka.net:/home/davem/src/BK/sparcwork-2.5
David S. Miller [Fri, 11 Jul 2003 15:32:00 +0000 (08:32 -0700)]
Merge nuts.ninka.net:/home/davem/src/BK/sparcwork-2.5
into nuts.ninka.net:/home/davem/src/BK/sparc-2.5

23 years agoMerge nuts.ninka.net:/home/davem/src/BK/network-2.5
David S. Miller [Fri, 11 Jul 2003 15:28:47 +0000 (08:28 -0700)]
Merge nuts.ninka.net:/home/davem/src/BK/network-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5

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[IPV6]: Fix leaks of ndisc DST entries.
David S. Miller [Thu, 10 Jul 2003 19:17:39 +0000 (12:17 -0700)]
[IPV6]: Fix leaks of ndisc DST entries.

23 years ago[NET,COMPAT]: Delete bogus icmpv6 filter translation code.
David S. Miller [Thu, 10 Jul 2003 18:09:47 +0000 (11:09 -0700)]
[NET,COMPAT]: Delete bogus icmpv6 filter translation code.

A long time ago in a land far far away the icmpv6 filter
code bogusly used the "unsigned long" based bitops and
thus we had all kinds of endianness problems wrt. 32-bit
apps running on 64-bit machines.  These days the icmpv6
code explicitly uses u32 fixed types and thus no translations
are necessary.

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.