]> git.neil.brown.name Git - history.git/log
history.git
22 years ago[PATCH] OProfile: reduce allocations of MSR structs
John Levon [Thu, 21 Aug 2003 09:57:03 +0000 (02:57 -0700)]
[PATCH] OProfile: reduce allocations of MSR structs

Andi Kleen pointed out the MSRs array was a massive bloat source. Reduce
it somewhat by only allocating the amount actually needed for the CPU type.

Untested on Pentium IV - I don't have a machine.

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.5
Linus Torvalds [Thu, 21 Aug 2003 09:39:23 +0000 (02:39 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge bk://kernel.bkbits.net//home/mochel/linux-2.5-power
Linus Torvalds [Thu, 21 Aug 2003 08:14:26 +0000 (01:14 -0700)]
Merge bk://kernel.bkbits.net//home/mochel/linux-2.5-power
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge bk://cifs.bkbits.net/linux-2.5cifs
Linus Torvalds [Thu, 21 Aug 2003 08:13:11 +0000 (01:13 -0700)]
Merge bk://cifs.bkbits.net/linux-2.5cifs
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoremove spurious logging of message on "create if file does not exist" case (without...
Steve French [Thu, 21 Aug 2003 09:44:51 +0000 (02:44 -0700)]
remove spurious logging of message on "create if file does not exist" case (without O_EXCL) when file exists

22 years ago[NET]: Make sure interval member of struct tc_estimator is signed.
Michel Dänzer [Thu, 21 Aug 2003 08:09:09 +0000 (01:09 -0700)]
[NET]: Make sure interval member of struct tc_estimator is signed.

22 years agoretry socket write on EAGAIN. Fix oops in write when tcp session dead.
Steve French [Thu, 21 Aug 2003 08:08:44 +0000 (01:08 -0700)]
retry socket write on EAGAIN.  Fix oops in write when tcp session dead.

22 years ago[IPV6]: Fix dangling multicast device references.
David S. Miller [Thu, 21 Aug 2003 07:50:53 +0000 (00:50 -0700)]
[IPV6]: Fix dangling multicast device references.

When addrconf_ifdown() calls ipv6_mc_destroy_dev(), it has NULL'd
out dev->ip6_ptr, which means all in6_dev_get() calls will fail.
So pass an explicit idev into ipv6_dev_mc_dec() in this case so
that we don't leak the all-nodes multicast address reference to the
idev.

22 years ago[cpufreq] Update resume method.
Patrick Mochel [Thu, 21 Aug 2003 07:19:31 +0000 (00:19 -0700)]
[cpufreq] Update resume method.

From Dominik Brodowski.

- Can simplify, since the policy is already known, and we only need to kick
  the CPU.

- Make sure we set the right method in the sysdev driver.

22 years ago[apm] Fix calls to device_{suspend,resume}
Patrick Mochel [Thu, 21 Aug 2003 07:15:20 +0000 (00:15 -0700)]
[apm] Fix calls to device_{suspend,resume}

22 years ago[power] Fix typo.
Patrick Mochel [Thu, 21 Aug 2003 07:12:23 +0000 (00:12 -0700)]
[power] Fix typo.

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.5
Linus Torvalds [Thu, 21 Aug 2003 05:56:09 +0000 (22:56 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[power] Update documentation.
Patrick Mochel [Thu, 21 Aug 2003 05:49:17 +0000 (22:49 -0700)]
[power] Update documentation.

22 years ago[power] Fix locking in device_{suspend,resume}
Patrick Mochel [Thu, 21 Aug 2003 05:48:57 +0000 (22:48 -0700)]
[power] Fix locking in device_{suspend,resume}

We don't need to protect against multiple suspend calls, since subsequent
ones will happen on an empty (or at worst - short) list.

22 years agoMerge osdl.org:/home/mochel/src/kernel/linux-2.5-virgin
Patrick Mochel [Thu, 21 Aug 2003 05:27:06 +0000 (22:27 -0700)]
Merge osdl.org:/home/mochel/src/kernel/linux-2.5-virgin
into osdl.org:/home/mochel/src/kernel/linux-2.5-power

22 years ago[acpi] Make a dummy mp_congig_ioapic_for_sci() function.
Patrick Mochel [Thu, 21 Aug 2003 05:02:33 +0000 (22:02 -0700)]
[acpi] Make a dummy mp_congig_ioapic_for_sci() function.

22 years agoMerge http://linux-sound.bkbits.net/linux-sound
Linus Torvalds [Thu, 21 Aug 2003 04:58:51 +0000 (21:58 -0700)]
Merge http://linux-sound.bkbits.net/linux-sound
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[power] Make swsusp-only mm functions available when CONFIG_PM=y
Patrick Mochel [Thu, 21 Aug 2003 04:57:54 +0000 (21:57 -0700)]
[power] Make swsusp-only mm functions available when CONFIG_PM=y

Calls were moved to the PM core, so they must be compiled in to use them.

22 years ago[dmi] Ugh, fixup broken merge once and for all.
Patrick Mochel [Thu, 21 Aug 2003 04:56:44 +0000 (21:56 -0700)]
[dmi] Ugh, fixup broken merge once and for all.

- Didn't realize that mount_root_failed_msg() had been removed, so it was
  accidentally merged back in. It's gone again now, as well as the entire
  (unused) dmi_dump_system() function.

22 years ago[PATCH] remove cramfs maintainership
Jörn Engel [Thu, 21 Aug 2003 04:51:48 +0000 (21:51 -0700)]
[PATCH] remove cramfs maintainership

Dan hasn't been maintaining cramfs for some time.

Mark it orphan until somebody else takes it up.

22 years ago[power] Make sure MTRR uses right methods in sysdev_driver.
Patrick Mochel [Thu, 21 Aug 2003 04:48:21 +0000 (21:48 -0700)]
[power] Make sure MTRR uses right methods in sysdev_driver.

22 years ago[power] Fixup device suspend/resume function names.
Patrick Mochel [Thu, 21 Aug 2003 04:47:37 +0000 (21:47 -0700)]
[power] Fixup device suspend/resume function names.

- Revert names of functions back to device_{suspend,resume} since at least
  APM are still using them.

22 years agoMerge bk://kernel.bkbits.net/gregkh/linux/pci-2.6
Linus Torvalds [Thu, 21 Aug 2003 04:16:06 +0000 (21:16 -0700)]
Merge bk://kernel.bkbits.net/gregkh/linux/pci-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoHand Merge
Patrick Mochel [Thu, 21 Aug 2003 04:15:47 +0000 (21:15 -0700)]
Hand Merge

22 years ago[PATCH] keep cramfs silent, when it ought to be
Jörn Engel [Thu, 21 Aug 2003 04:15:42 +0000 (21:15 -0700)]
[PATCH] keep cramfs silent, when it ought to be

This removes the pointless cramfs message when booting with cramfs
compiled in but not as the root filesystem.

22 years agoMerge osdl.org:/home/mochel/src/kernel/linux-2.5-virgin
Patrick Mochel [Thu, 21 Aug 2003 04:01:44 +0000 (21:01 -0700)]
Merge osdl.org:/home/mochel/src/kernel/linux-2.5-virgin
into osdl.org:/home/mochel/src/kernel/linux-2.5-power

22 years agoMerge davem@nuts.ninka.net:/home/davem/src/BK/net-2.5
David S. Miller [Thu, 21 Aug 2003 03:55:43 +0000 (20:55 -0700)]
Merge davem@nuts.ninka.net:/home/davem/src/BK/net-2.5
into kernel.bkbits.net:/home/davem/net-2.5

22 years ago[TOKENRING]: expire timer improvements.
Stephen Hemminger [Thu, 21 Aug 2003 05:18:27 +0000 (22:18 -0700)]
[TOKENRING]: expire timer improvements.

Cleanup the timer code.  It works as is, but:
- use timer_ macro's when working with jiffies.
- cleanup the #define's
- make timer run sooner (ie when next entry will expire)
  rather than waiting till the next 10 minute quanta.
- print TTL value in seconds not jiffies
- change formatting to linux style in code the area affected.

22 years ago[TOKENRING]: fix the seq_file next operation.
Stephen Hemminger [Thu, 21 Aug 2003 05:17:17 +0000 (22:17 -0700)]
[TOKENRING]: fix the seq_file next operation.

Better version of my seq_file next operation.
Use current pointer to find next element.  Should be more
stable with changing list (no duplicate entries).

22 years ago[TOKENRING]: better hash function.
Stephen Hemminger [Thu, 21 Aug 2003 05:16:24 +0000 (22:16 -0700)]
[TOKENRING]: better hash function.

Rather than a simple for loop sum, use a better hash function
for the mac address.

Function repurposed from Lennert's bridge code.

22 years ago[TOKENRING]: mcast_addr need not be on stack.
Stephen Hemminger [Thu, 21 Aug 2003 05:15:17 +0000 (22:15 -0700)]
[TOKENRING]: mcast_addr need not be on stack.

Multicast address value is put on stack and can just be static const.

22 years ago[TOKENRING]: spin_lock consistency.
Stephen Hemminger [Thu, 21 Aug 2003 05:13:10 +0000 (22:13 -0700)]
[TOKENRING]: spin_lock consistency.

Use spin_lock on hash table consistently, this code is only called
from bottom half context, never from interrupt context so use spin_lock_bh.

22 years ago[TOKENRING]: Get rid of egregious typedef.
Stephen Hemminger [Thu, 21 Aug 2003 05:12:17 +0000 (22:12 -0700)]
[TOKENRING]: Get rid of egregious typedef.

22 years ago[NETROM]: Update wrt. ax25_cb refcounting changes.
Jeroen Vreeken [Thu, 21 Aug 2003 05:09:09 +0000 (22:09 -0700)]
[NETROM]: Update wrt. ax25_cb refcounting changes.

22 years ago[AX25]: Fix list usage and list locking in ax25_iface.c
Jeroen Vreeken [Thu, 21 Aug 2003 05:08:09 +0000 (22:08 -0700)]
[AX25]: Fix list usage and list locking in ax25_iface.c

22 years ago[AX25]: Use ->hard_header_len instead of some predicted worse case.
Jeroen Vreeken [Thu, 21 Aug 2003 05:06:48 +0000 (22:06 -0700)]
[AX25]: Use ->hard_header_len instead of some predicted worse case.

22 years ago[AX25]: Fix ax25_cb locking.
Jeroen Vreeken [Thu, 21 Aug 2003 05:04:47 +0000 (22:04 -0700)]
[AX25]: Fix ax25_cb locking.

- ax25_cb's use refcounting
- the ax25_cb list uses hlists
- Lots of socket locking.

22 years agoMerge nuts.ninka.net:/home/davem/src/BK/network-2.5
David S. Miller [Thu, 21 Aug 2003 03:47:23 +0000 (20:47 -0700)]
Merge nuts.ninka.net:/home/davem/src/BK/network-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5

22 years agoMerge kroah.com:/home/linux/BK/bleed-2.5
Greg Kroah-Hartman [Thu, 21 Aug 2003 03:13:50 +0000 (20:13 -0700)]
Merge kroah.com:/home/linux/BK/bleed-2.5
into kroah.com:/home/linux/BK/pci-2.5

22 years agoPCI: added the pci_pretty_name() macro to pci.h as 2 arches already had it.
Greg Kroah-Hartman [Thu, 21 Aug 2003 03:07:11 +0000 (20:07 -0700)]
PCI: added the pci_pretty_name() macro to pci.h as 2 arches already had it.

22 years ago[PATCH] v4l: remove stale CONFIG_VIDEO_PROC_FS
Gerd Knorr [Thu, 21 Aug 2003 02:53:10 +0000 (19:53 -0700)]
[PATCH] v4l: remove stale CONFIG_VIDEO_PROC_FS

 * makes the three USB drivers not use the procfs stuff, also added a
   warning that they should converted to sysfs.
 * Removes the leftover, obsolete VIDEO_PROC_FS config option, that
   should catch any other build failures too (if any).

22 years agoALSA update
Jaroslav Kysela [Thu, 21 Aug 2003 00:35:48 +0000 (02:35 +0200)]
ALSA update
  - updated documentation and timestamp

22 years agoSolved conflicts with ALSA CVS tree
Jaroslav Kysela [Thu, 21 Aug 2003 00:08:25 +0000 (02:08 +0200)]
Solved conflicts with ALSA CVS tree

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:33:01 +0000 (01:33 +0200)]
ALSA CVS update
D:2003/08/20 10:59:59
A:Jaroslav Kysela <perex@suse.cz>
F:usb/usbaudio.c:1.62->1.63
F:usb/usbaudio.h:1.20->1.21
F:usb/usbmixer.c:1.21->1.22
L:Synced USB audio driver with the latest 2.6 code

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:31:54 +0000 (01:31 +0200)]
ALSA CVS update
D:2003/08/16 10:54:09
A:Jaroslav Kysela <perex@suse.cz>
F:core/oss/pcm_oss.c:1.45->1.46
L:Fixed open for O_RDWR when capture is not available

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:30:45 +0000 (01:30 +0200)]
ALSA CVS update
D:2003/08/14 17:05:13
A:Takashi Iwai <tiwai@suse.de>
F:pci/ac97/ac97_codec.c:1.100->1.101
L:fix by James Courtier-Dutton <James@superbug.demon.co.uk>:
L:
L:Fixes ac3 passthru non-audio bit setting for AC97 codecs.
L:
L:I have :-
L:Card: Intel ICH5
L:Chip: Avance Logic ALC650 rev 0
L:
L:The problem I was having was that the spdif non-audio bit was not
L:being set.
L:This patch fixes that problem.

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:29:35 +0000 (01:29 +0200)]
ALSA CVS update
D:2003/08/14 12:05:38
A:Takashi Iwai <tiwai@suse.de>
F:drivers/opl3/opl3_lib.c:1.17->1.18
F:isa/gus/gusclassic.c:1.10->1.11
F:isa/gus/gusextreme.c:1.10->1.11
F:isa/gus/gusmax.c:1.11->1.12
F:pci/azt3328.c:1.2->1.3
F:pci/cs4281.c:1.43->1.44
F:pci/ens1370.c:1.47->1.48
F:pci/es1938.c:1.26->1.27
F:pci/es1968.c:1.51->1.52
F:pci/sonicvibes.c:1.25->1.26
F:pci/via82xx.c:1.45->1.46
F:pci/cs46xx/cs46xx_lib.c:1.62->1.63
F:pci/ice1712/ice1712.c:1.32->1.33
F:pci/ice1712/ice1724.c:1.14->1.15
F:pci/trident/trident_main.c:1.45->1.46
F:pci/ymfpci/ymfpci_main.c:1.40->1.41
F:sparc/amd7930.c:1.6->1.7
F:sparc/cs4231.c:1.8->1.9
L:fixed the wrong order of object destruction:
L:  a released object is referred after the *_free() call.

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:28:22 +0000 (01:28 +0200)]
ALSA CVS update
D:2003/08/14 11:55:18
A:Takashi Iwai <tiwai@suse.de>
F:pci/ymfpci/ymfpci_main.c:1.39->1.40
L:register dump in the proc file.

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:27:12 +0000 (01:27 +0200)]
ALSA CVS update
D:2003/08/13 14:14:31
A:Takashi Iwai <tiwai@suse.de>
F:arm/sa11xx-uda1341.c:1.11->1.12
L:fixed missing spin_lock_init().

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:26:02 +0000 (01:26 +0200)]
ALSA CVS update
D:2003/08/13 14:01:22
A:Takashi Iwai <tiwai@suse.de>
F:isa/opl3sa2.c:1.28->1.29
L:fixed the uninitialized spin_lock.

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:24:54 +0000 (01:24 +0200)]
ALSA CVS update
D:2003/08/11 13:37:56
A:Takashi Iwai <tiwai@suse.de>
F:Documentation/DocBook/writing-an-alsa-driver.tmpl:1.12->1.13
L:fix typos

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:23:47 +0000 (01:23 +0200)]
ALSA CVS update
D:2003/08/11 13:37:36
A:Takashi Iwai <tiwai@suse.de>
F:pci/intel8x0.c:1.87->1.88
L:fix mixed up vendor/device ID's for Asus P4P800

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:22:37 +0000 (01:22 +0200)]
ALSA CVS update
D:2003/08/11 10:20:00
A:Jaroslav Kysela <perex@suse.cz>
F:pci/es1968.c:1.49->1.50
L:Removed bob_lock spinlock

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:21:28 +0000 (01:21 +0200)]
ALSA CVS update
D:2003/08/07 15:18:56
A:Takashi Iwai <tiwai@suse.de>
F:pci/es1968.c:1.48->1.49
L:- hopefully fixed the capture.
L:- align the buffers in 4k.
L:- a bit code clean up.

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:20:19 +0000 (01:20 +0200)]
ALSA CVS update
D:2003/08/06 18:45:09
A:Takashi Iwai <tiwai@suse.de>
F:core/oss/pcm_plugin.c:1.15->1.16
F:core/oss/pcm_plugin.h:1.4->1.5
L:removed unused functions.

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:19:11 +0000 (01:19 +0200)]
ALSA CVS update
D:2003/08/06 18:44:50
A:Takashi Iwai <tiwai@suse.de>
F:pci/es1968.c:1.47->1.48
L:removed buggy copy callback.
L:the standard copy routine works properly.

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:18:01 +0000 (01:18 +0200)]
ALSA CVS update
D:2003/08/06 12:13:57
A:Takashi Iwai <tiwai@suse.de>
F:Documentation/ALSA-Configuration.txt:1.13->1.14
L:more descriptions for vx drivers.

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:16:53 +0000 (01:16 +0200)]
ALSA CVS update
D:2003/08/05 13:45:12
A:Takashi Iwai <tiwai@suse.de>
F:pci/es1968.c:1.46->1.47
L:- fixed corruption of stream linked list in the interrupt handler.
L:- clean up the unnecessary atomic_t and spinlocks.

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:15:44 +0000 (01:15 +0200)]
ALSA CVS update
D:2003/08/05 13:43:10
A:Takashi Iwai <tiwai@suse.de>
F:pci/es1968.c:1.45->1.46
L:- rewritten the pm whitelist as a static list.
L:- added more pci subsystem ids to the whitelist.

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:14:34 +0000 (01:14 +0200)]
ALSA CVS update
D:2003/08/05 13:42:23
A:Takashi Iwai <tiwai@suse.de>
F:pci/emu10k1/emufx.c:1.36->1.37
L:fixed typos.

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:13:26 +0000 (01:13 +0200)]
ALSA CVS update
D:2003/07/30 19:54:01
A:Jaroslav Kysela <perex@suse.cz>
F:include/emu10k1.h:1.29->1.30
L:Fixed typos (GRP->GPR)

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:12:17 +0000 (01:12 +0200)]
ALSA CVS update
D:2003/07/30 16:35:33
A:Takashi Iwai <tiwai@suse.de>
F:pci/es1968.c:1.44->1.45
L:added use_pm to the kernel boot parameter.

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:11:09 +0000 (01:11 +0200)]
ALSA CVS update
D:2003/07/30 15:39:38
A:Takashi Iwai <tiwai@suse.de>
F:pci/intel8x0.c:1.86->1.87
L:- improved the probe/resume function.
L:  check only the valid codec bits in chip_init() during resume.

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:09:57 +0000 (01:09 +0200)]
ALSA CVS update
D:2003/07/30 11:54:03
A:Takashi Iwai <tiwai@suse.de>
F:include/ac97_codec.h:1.30->1.31
F:pci/intel8x0.c:1.85->1.86
F:pci/via82xx.c:1.43->1.44
F:pci/ac97/ac97_codec.c:1.99->1.100
F:pci/ac97/ac97_patch.c:1.17->1.18
F:pci/ac97/ac97_patch.h:1.8->1.9
L:- added quirk type AC97_TUNE_AD_SHARING.
L:- added mask field to snd_ac97_quirk.
L:- new patch for AD1985.  set more config bits for line/mic sharing.
L:- rewritten quirk table in C99 init style.
L:- more quirks for intel ICH5/AD1985 boards.

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:08:44 +0000 (01:08 +0200)]
ALSA CVS update
D:2003/07/29 16:16:43
A:Jaroslav Kysela <perex@suse.cz>
F:pci/ice1712/ice1724.c:1.12->1.13
L:Fixed 192kHz support

22 years agoALSA CVS update
Jaroslav Kysela [Wed, 20 Aug 2003 23:07:29 +0000 (01:07 +0200)]
ALSA CVS update
D:2003/07/28 14:50:51
A:Takashi Iwai <tiwai@suse.de>
F:pci/rme9652/hdsp.c:1.41->1.42
L:added the support for rev 50 cards.

22 years agoFix tridentfd for 'name' move, and avoid compile warnings
Linus Torvalds [Wed, 20 Aug 2003 19:01:56 +0000 (12:01 -0700)]
Fix tridentfd for 'name' move, and avoid compile warnings

22 years agoNCR5380: don't play games with NCR5380_proc_info() - just mark it
Linus Torvalds [Wed, 20 Aug 2003 18:36:31 +0000 (11:36 -0700)]
NCR5380: don't play games with NCR5380_proc_info() - just mark it
static unconditionally, to allow multiple built-in modules.

22 years ago[PATCH] fix /proc mm_struct refcounting bug
Andrew Morton [Wed, 20 Aug 2003 17:29:16 +0000 (10:29 -0700)]
[PATCH] fix /proc mm_struct refcounting bug

From: Suparna Bhattacharya <suparna@in.ibm.com>

The /proc code's bare atomic_inc(&mm->count) is racy against __exit_mm()'s
mmput() on another CPU: it calls mmput() outside task_lock(tsk), and
task_lock() isn't appropriate locking anyway.

So what happens is:

CPU0           CPU1

      mmput()
      ->atomic_dec_and_lock(mm->mm_users)
                                          atomic_inc(mm->mm_users)
      ->list_del(mm->mmlist)
                                          mmput()
                                          ->atomic_dec_and_lock(mm->mm_users)
                                          ->list_del(mm->mmlist)

And the double list_del() of course goes splat.

So we use mmlist_lock to synchronise these steps.

The patch implements a new mmgrab() routine which increments mm_users only if
the mm isn't already going away.  Changes get_task_mm() and proc_pid_stat()
to call mmgrab() instead of a direct atomic_inc(&mm->mm_users).

Hugh, there's some cruft in swapoff which looks like it should be using
mmgrab()...

22 years ago[PATCH] Fix CPU boot problem
Andrew Morton [Wed, 20 Aug 2003 17:29:07 +0000 (10:29 -0700)]
[PATCH] Fix CPU boot problem

From: Dave Hansen <haveblue@us.ibm.com>

Hmmm.  This is looking like fallout from the massive wli-bomb.  Here's
the loop that controls the cpu booting, before and after cpumask_t:

- for (bit = 0; kicked < NR_CPUS && bit < BITS_PER_LONG; bit++)
+ for (bit = 0; kicked < NR_CPUS && bit < MAX_APICS; bit++)
apicid = cpu_present_to_apicid(bit);

"kicked" only gets incremented for CPUs that were successfully booted,
so it doesn't help terminate the loop much.  MAX_APICS is 256 on summit,
which is *MUCH* bigger than BITS_PER_LONG.
cpu_2_logical_apicid[NR_CPUS] which is referenced from
cpu_present_to_apicid() is getting referenced up to MAX_APICs, which is
bigger than NR_CPUS.  Overflow.  Bang.  garbage != BAD_APICID :)

22 years ago[PATCH] missing io_apic.h inclusions
Andrew Morton [Wed, 20 Aug 2003 17:28:59 +0000 (10:28 -0700)]
[PATCH] missing io_apic.h inclusions

From: Emilio Gallego Arias <egallego@telefonica.net>

Apparently a couple of files now need io_apic.h.

22 years ago[PATCH] export device_suspend() and device_resume()
Andrew Morton [Wed, 20 Aug 2003 17:28:52 +0000 (10:28 -0700)]
[PATCH] export device_suspend() and device_resume()

apm.c (at least) needs these.

22 years ago[PATCH] fix for htree corruption
Andrew Morton [Wed, 20 Aug 2003 17:28:44 +0000 (10:28 -0700)]
[PATCH] fix for htree corruption

From: chrisl@vmware.com

Fixes the "perl installer weirdness" problem which a few people have been
reporting.

The bug is triggered by creating the index.  Coping out the index we assume
the dirents start with the first entry after "." "..".

It can make the first previous deleted entry reappear.  In the past we set
inode to zero for an empty entry so this is not a problem.  That is not
true any more.

Also, there were a few places where we were altering inode times after
running ext3_mark_inode_dirty().  We should be doing that beforehand.

22 years ago[PATCH] dmi_scan warning fix
Andrew Morton [Wed, 20 Aug 2003 17:28:35 +0000 (10:28 -0700)]
[PATCH] dmi_scan warning fix

dmi_dump_system() is only used if CONFIG_ACPI_BOOT.

22 years ago[PATCH] update Documentation/filesystems/Locking
Andrew Morton [Wed, 20 Aug 2003 17:28:27 +0000 (10:28 -0700)]
[PATCH] update Documentation/filesystems/Locking

From: Matthew Wilcox <willy@debian.org>

Here's an update to Documentation/filesystems/Locking.

22 years ago[PATCH] fix intel copy_to_user()
Andrew Morton [Wed, 20 Aug 2003 17:28:19 +0000 (10:28 -0700)]
[PATCH] fix intel copy_to_user()

A `cat /dev/kmem' oopses the kernel.  This is because new Intel
copy_to_user() doesn't handle segfaults against the kernel-side source
address of the copy.

It is not obvious how to fix read_kmem(), and handling faults on either
source or dest is traditional behaviour, so fix it in the copy function by
adding exception table entries for the reads as well as the writes.

22 years ago[PATCH] dscc4: module refcounting
Andrew Morton [Wed, 20 Aug 2003 17:28:11 +0000 (10:28 -0700)]
[PATCH] dscc4: module refcounting

From: Francois Romieu <romieu@fr.zoreil.com>

Recent MOD_{INC/DEC}_USE_COUNT removal missed a MOD_DEC_USE_COUNT.

22 years ago[PATCH] dscc4: various
Andrew Morton [Wed, 20 Aug 2003 17:28:03 +0000 (10:28 -0700)]
[PATCH] dscc4: various

From: Francois Romieu <romieu@fr.zoreil.com>

- silly indentation;
- let's be more user-friendly with manufacturer specific (mis)feature:
  + s/CONFIG_DSCC4_CLOCK_ON_TWO_PORTS_ONLY/CONFIG_DSCC4_PCISYNC/
  + KConfig adequate entry
- broken warning message.

22 years ago[PATCH] dscc4: CCR1 register fixes
Andrew Morton [Wed, 20 Aug 2003 17:27:55 +0000 (10:27 -0700)]
[PATCH] dscc4: CCR1 register fixes

From: Francois Romieu <romieu@fr.zoreil.com>

CCR1 register voodoo: asic handles itself the flow control.

22 years ago[PATCH] dscc4: reset changes
Andrew Morton [Wed, 20 Aug 2003 17:27:47 +0000 (10:27 -0700)]
[PATCH] dscc4: reset changes

From: Francois Romieu <romieu@fr.zoreil.com>

Workaround for lack of true reset:
- devices/ports are put in silent mode at ifconfig down time but some
  state is kept around to allow 'ifconfig up' issuing at a later time.
  Device specific structures are allocated when the pci asic is
  probed: dscc4_init_ring() moves from dscc4_open() to dscc4_found1().
- try to use reset related board-specific feature at module removal
  time if available. Comments in the code explain the whole story.
  Not a complicated feature but it is unavailable on the cards I own
  and no user gave me feedback -> currently untested.
  It shouldn't harm anyway.

22 years ago[PATCH] dscc4: scc changes
Andrew Morton [Wed, 20 Aug 2003 17:27:39 +0000 (10:27 -0700)]
[PATCH] dscc4: scc changes

From: Francois Romieu <romieu@fr.zoreil.com>

- more #define for specific bits;
- more scc_patchl use;
- just say no to bozo programming:
  + SCC core _really_ disabled at startup;
  + Interrupts Mask Register setup and SCC core activation are
    done as late as possible (i.e. in dscc4_open());
  + they are reverted if dscc4_open() fails;
  + as well as unconditionnaly in dscc4_close();
- more or less paranoid quirk in Xpr handler.

22 years ago[PATCH] dscc4: debug messages
Andrew Morton [Wed, 20 Aug 2003 17:27:30 +0000 (10:27 -0700)]
[PATCH] dscc4: debug messages

From: Francois Romieu <romieu@fr.zoreil.com>

More conditional debug messages.

22 years ago[PATCH] dscc4: clock mode commentary
Andrew Morton [Wed, 20 Aug 2003 17:27:22 +0000 (10:27 -0700)]
[PATCH] dscc4: clock mode commentary

From: Francois Romieu <romieu@fr.zoreil.com>

Clock modes on dscc4 are feature-rich enough to deserve some explanation.

22 years ago[PATCH] dscc4: commentary
Andrew Morton [Wed, 20 Aug 2003 17:27:14 +0000 (10:27 -0700)]
[PATCH] dscc4: commentary

From: Francois Romieu <romieu@fr.zoreil.com>

Short comments so I can figure why things are done this way.

22 years ago[PATCH] opl3sa2 uninitialised spinlock
Andrew Morton [Wed, 20 Aug 2003 17:27:06 +0000 (10:27 -0700)]
[PATCH] opl3sa2 uninitialised spinlock

opl3sa2 forgot to initialise the spinlock.

22 years ago[PATCH] Allow O_EXCL on a block device to claim exclusive use.
Andrew Morton [Wed, 20 Aug 2003 17:26:57 +0000 (10:26 -0700)]
[PATCH] Allow O_EXCL on a block device to claim exclusive use.

From: NeilBrown <neilb@cse.unsw.edu.au>

The blockdev layer has a concept of 'claiming' a device, so for example it
can be claimed when a filesystem is mounted or when it is included into a
raid array.  Only one subsystem can claim it at a time.

This patch matches this functionality available to user-space via the
O_EXCL flag to open.

This allows user-space programs to easily test if a device is currently
mounted etc, and to prevent a device from being mounted or otherwise
claimed.

22 years ago[PATCH] When a partition is claimed, claim the whole device
Andrew Morton [Wed, 20 Aug 2003 17:26:48 +0000 (10:26 -0700)]
[PATCH] When a partition is claimed, claim the whole device

From: NeilBrown <neilb@cse.unsw.edu.au>

Current devices can be 'claimed' by filesystems (when mounting) or
md/raid (when being included in an array) or 'raw' or ....
This stop concurrent access by these systems.

However it is still possible for one system to claim the whole device
and a second system to claim one partition, which is not good.

With this patch, when a partition is claimed, the whole device is
claimed for partitioning.  So you cannot have a partition and the
whole devices claimed at the same time (except if the whole device
is claimed for partitioning).

22 years ago[PATCH] vmscan: give dirty referenced pages another pass
Andrew Morton [Wed, 20 Aug 2003 17:26:39 +0000 (10:26 -0700)]
[PATCH] vmscan: give dirty referenced pages another pass

In a further attempt to prevent dirty pages from being written out from the
LRU, don't write them if they were referenced.  This gives those pages
another trip around the inactive list.  So more of them are written via
balance_dirty_pages().

It speeds up an untar-of-five-kernel trees by 5% on a 256M box, presumably
because balance_dirty_pages() has better IO patterns.

It largely fixes the problem which Gerrit talked about at the kernel summit:
the individual writepage()s of dirty pages coming off the tail of the LRU are
reduced by 83% in their database workload.

I'm a bit worried that it increases scanning and OOM possibilities under
nutty VM stress cases, but nothing untoward has been noted during its four
weeks in -mm, so...

22 years ago[PATCH] ext3 block allocator cleanup
Andrew Morton [Wed, 20 Aug 2003 17:26:30 +0000 (10:26 -0700)]
[PATCH] ext3 block allocator cleanup

This just reorganizes some ghastly goto-and-retry-spaghetti in the core of
the ext3 block allocator.

I wrote this ages ago in preparation for fixing the find_next_usable_block()
CPU pigginess problem, but that proved to be quite nontrivial.

The patch has been in -mm for a long time and Martin has recently confirmed
that it introduces no performance regression in SDET and kernbench.

22 years ago[PATCH] misc fixes
Andrew Morton [Wed, 20 Aug 2003 17:26:21 +0000 (10:26 -0700)]
[PATCH] misc fixes

- nmi_watchdog documentation typo ("Randy.Dunlap" <rddunlap@osdl.org>)

- ikconfig proc requires CONFIG_PROC_FS ("Randy.Dunlap" <rddunlap@osdl.org>)

- visws build fix (Andrey Panin <pazke@donpac.ru>)

- VM lock ranking comment update

22 years agofix white space
Steve French [Wed, 20 Aug 2003 17:14:50 +0000 (10:14 -0700)]
fix white space

22 years agoUSB serial console: fix compile warning
Linus Torvalds [Wed, 20 Aug 2003 17:10:13 +0000 (10:10 -0700)]
USB serial console: fix compile warning

22 years agoultrastor.c: fix bitmap operation type
Linus Torvalds [Wed, 20 Aug 2003 17:09:20 +0000 (10:09 -0700)]
ultrastor.c: fix bitmap operation type

22 years agoaha1740: work around 'name' field removal.
Linus Torvalds [Wed, 20 Aug 2003 17:08:13 +0000 (10:08 -0700)]
aha1740: work around 'name' field removal.

22 years agoaacraid: fix "flags" save value.
Linus Torvalds [Wed, 20 Aug 2003 17:06:58 +0000 (10:06 -0700)]
aacraid: fix "flags" save value.

22 years agoFix "jiffies" comparison in seeq8005.c: it's an unsigned long.
Linus Torvalds [Wed, 20 Aug 2003 17:05:07 +0000 (10:05 -0700)]
Fix "jiffies" comparison in seeq8005.c: it's an unsigned long.

22 years agoFB: fix broken tridentfb.c driver due to device.name change.
Greg Kroah-Hartman [Wed, 20 Aug 2003 09:59:06 +0000 (02:59 -0700)]
FB: fix broken tridentfb.c driver due to device.name change.

22 years agoVideo: fix broken saa7111.c driver due to i2c structure changes.
Greg Kroah-Hartman [Wed, 20 Aug 2003 09:49:58 +0000 (02:49 -0700)]
Video: fix broken saa7111.c driver due to i2c structure changes.

22 years ago[PATCH] PCI: add PCI_NAME_SIZE instead of using DEVICE_NAME_SIZE
Greg Kroah-Hartman [Wed, 20 Aug 2003 09:48:01 +0000 (02:48 -0700)]
[PATCH] PCI: add PCI_NAME_SIZE instead of using DEVICE_NAME_SIZE

based on a patch from OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

22 years ago[PATCH] PCI: undo recent pci_setup_bridge() change
Ivan Kokshaysky [Wed, 20 Aug 2003 09:33:09 +0000 (02:33 -0700)]
[PATCH] PCI: undo recent pci_setup_bridge() change

That patch went into mainline by mistake - it was initial variant of a
fix for the problem with disabled P2P bridges. Which has already been
fixed properly in -test3.