]> git.hungrycats.org Git - linux/log
linux
23 years agoUse a fixed per-cpu SYSENTER_MSR_ESP value by having the sysenter
Linus Torvalds [Mon, 10 Mar 2003 06:41:27 +0000 (22:41 -0800)]
Use a fixed per-cpu SYSENTER_MSR_ESP value by having the sysenter
entry routine load the real ESP0 off that per-cpu stack. Make this
even faster by putting the sysenter stack in the per-CPU TSS, so
that we can use the tss->esp0 value directly (which we have to
update on task switches anyway).

CAREFUL! This needs very subtle code for debug and NMI exceptions,
to make sure we don't run with the sysenter stack in any real kernel
code!

23 years agoRemove <asm-i386/xor.h>'s own home-made FPU begin/end macros,
Linus Torvalds [Mon, 10 Mar 2003 06:36:20 +0000 (22:36 -0800)]
Remove <asm-i386/xor.h>'s own home-made FPU begin/end macros,
use the real ones instead.

23 years ago[PATCH] v4l: video-buf update
Gerd Knorr [Mon, 10 Mar 2003 03:09:48 +0000 (19:09 -0800)]
[PATCH] v4l: video-buf update

This patch is a update for the video-buf mm helper module.  It has
some minor bugfixes and a number of signed/unsigned cleanups to make
gcc 3.3 happy.

23 years agoMove "used FPU status" into new non-atomic thread_info->status field.
Linus Torvalds [Mon, 10 Mar 2003 02:20:35 +0000 (18:20 -0800)]
Move "used FPU status" into new non-atomic thread_info->status field.

This allows us to avoid having to use atomic updates for the lazy FP
status setting, since we don't have to worry about other CPU's racing
on the fields.

Also, fix x86 FP state after fork() by making sure the FP is unlazied
_before_ we copy the state information. Otherwise, if a process did a
fork() while holding the FP state lazily in the registers, the child
would incorrectly unlazy bogus state.

23 years agoCache the MSR_IA32_SYSENTER_CS value in the per-CPU TSS (using
Linus Torvalds [Sun, 9 Mar 2003 10:49:41 +0000 (02:49 -0800)]
Cache the MSR_IA32_SYSENTER_CS value in the per-CPU TSS (using
the otherwise unused cpl1 entry for SS), so that we can avoid
re-loading it on task switches if it doesn't change.

23 years agoFix nanosleep() problem noticed by Todd Mokros <tmokros@neo.rr.com>.
Linus Torvalds [Sun, 9 Mar 2003 10:48:06 +0000 (02:48 -0800)]
Fix nanosleep() problem noticed by Todd Mokros <tmokros@neo.rr.com>.

If we raced on a timer expire, we'd get a negative timeout and think
that is was a _huge_ positive timeout.

23 years agoFix up i387 task switching bug introduced by Andi Kleen's patch
Linus Torvalds [Sun, 9 Mar 2003 03:25:32 +0000 (19:25 -0800)]
Fix up i387 task switching bug introduced by Andi Kleen's patch
to speed it up - use the proper bitmask for clearing "used-fpu"
state.

23 years ago[PATCH] Fast path context switch - microoptimize FPU reload
Andi Kleen [Sun, 9 Mar 2003 02:32:51 +0000 (18:32 -0800)]
[PATCH] Fast path context switch - microoptimize FPU reload

Following some changes on x86-64.

When cpu_has_fxsr is defined to 1 like in many kernels unlazy_fpu can
collapse to three instructions. For that inlining is a very good idea.
Otherwise it's 10 instructions or so, which can be still inlined.

We don't need the lock prefix to test our local thread flags state.
Unfortunately test_thread_flag currently always uses test_bit which
has a LOCK on SMP, but that's unnecessary. LOCK is costly on P4,
so it's a good idea to avoid it.

Work around this for now by testing directly. Better would be
probably to define __set_bit for all architectures to not guarantee
atomicity and then always use that for local thread_info accesses
in linux/thread_info.h

23 years ago[PATCH] fix oprofile on x86 > 1 counter
John Levon [Sun, 9 Mar 2003 02:31:41 +0000 (18:31 -0800)]
[PATCH] fix oprofile on x86 > 1 counter

Without this we have a choice between dropping lots of counter events
for counters > 0, or getting dazed and confused.  This brings it inline
with the 2.4 module code.  Tested on my 2-way.

Also fix a typo from Steven Cole, and remove some unnecessary code

23 years agoMerge http://linux-scsi.bkbits.net/scsi-for-linus-2.5
Linus Torvalds [Sun, 9 Mar 2003 01:28:04 +0000 (17:28 -0800)]
Merge http://linux-scsi.bkbits.net/scsi-for-linus-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge raven.il.steeleye.com:/home/jejb/BK/scsi-misc-2.5
James Bottomley [Sun, 9 Mar 2003 02:48:42 +0000 (20:48 -0600)]
Merge raven.il.steeleye.com:/home/jejb/BK/scsi-misc-2.5
into raven.il.steeleye.com:/home/jejb/BK/scsi-for-linus-2.5

23 years agoMerge bk://linux-dj.bkbits.net/cpufreq
Linus Torvalds [Sun, 9 Mar 2003 01:21:39 +0000 (17:21 -0800)]
Merge bk://linux-dj.bkbits.net/cpufreq
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[PATCH] NUMA scheduler fixup
Martin J. Bligh [Sat, 8 Mar 2003 14:39:04 +0000 (06:39 -0800)]
[PATCH] NUMA scheduler fixup

From: Ingo Molnar <mingo@elte.hu>

This cleans up the NUMA scheduler to have separate triggers for idle
and busy rebalance ratio, preventing some complex interactions where
idle cpus can cause busy ones to busy rebalance more often. The core
functionality of this patch is rebalace_tick().

Tested in -mjb tree for over 1 month ... no problems at all found -
retested on top of 64-bk3 with new scheduler updates.

23 years ago[PATCH] fix a warning in eepro100.c
Andrew Morton [Sat, 8 Mar 2003 14:06:03 +0000 (06:06 -0800)]
[PATCH] fix a warning in eepro100.c

Remove the unneeded forward declaration of eepro100_remove_one().

It is defeating the __attribute__(unused) tag on the definition of
eepro100_remove_one() and is causing a "defined but not used" warning.

23 years ago[PATCH] revert the "remove kernel_flag" patch
Andrew Morton [Sat, 8 Mar 2003 14:05:54 +0000 (06:05 -0800)]
[PATCH] revert the "remove kernel_flag" patch

With CONFIG_SMP=n, CONFIG_PREEMPT=y, CONFIG_DEBUG_SPINLOCK=y we get many
undefined refs to kernel_flag.

This is because spinlock debugging works on uniprocessor kernels now, and it
stores state inside the spinlock structure to do this.

Having working spinlock debugging on UP kernels seems more important than
saving four bytes, so...

23 years ago[PATCH] remove compile warning from serial console initcall
Andrew Morton [Sat, 8 Mar 2003 14:05:45 +0000 (06:05 -0800)]
[PATCH] remove compile warning from serial console initcall

Patch from: "Martin J. Bligh" <mbligh@aracnet.com>

This tiny patch removes the new compiler warning from my build - the new
console_initcall mechanism seems to require int from console_init ...  I made
serial8250_console_init look like con_init

23 years ago[PATCH] rpc_delete_timer race fix
Andrew Morton [Sat, 8 Mar 2003 14:05:36 +0000 (06:05 -0800)]
[PATCH] rpc_delete_timer race fix

Patch from Ulrich Weigand <weigand@immd1.informatik.uni-erlangen.de>

Fix a race wherein timer_pending() returns false, but the timer handler is
actually running on another CPU.  We need to call del_timer_sync()
regardless, so we wait for completion of the handler.

23 years ago[PATCH] missing spin_unlock() in sysfs_remove_dir()
Andrew Morton [Sat, 8 Mar 2003 14:05:27 +0000 (06:05 -0800)]
[PATCH] missing spin_unlock() in sysfs_remove_dir()

missing spin_unlock() in sysfs_remove_dir()

23 years ago[PATCH] raw.c: dev_t cleanup and oops fix
Andrew Morton [Sat, 8 Mar 2003 11:28:57 +0000 (03:28 -0800)]
[PATCH] raw.c: dev_t cleanup and oops fix

Patch from Andries.Brouwer@cwi.nl

The next patch in the dev_t series eliminates the last applied use
of MAX_BLKDEV - only the definition in major.h remains.

Sneaky as I am, I combine this patch with the fix for an Oops:
On open, raw_open does
filp->f_dentry->d_inode->i_mapping =
bdev->bd_inode->i_mapping;
storing a pointer to bdev stuff.
But on release this pointer stayed, the block device is not
referenced anymore and disappears, and the next open references
undefined stuff.
I checked, and this can actually cause an Oops - scenario:

  # raw /dev/raw/raw12 /dev/hdf
  # dd if=/dev/raw/raw12 of=/dev/null bs=512 count=1
  # raw /dev/raw/raw12 0 0
  # dd if=/dev/raw/raw12 of=/dev/null bs=512 count=1

Oops.

More precisely the problem is that dentry_open does
file_ra_state_init(&f->f_ra, inode->i_mapping);
And file_ra_state_init uses mapping->backing_dev_info->ra_pages.
Ugly, to use so much information about the inode even before
the inode has been opened.

In the patch below I reset i_mapping upon release of the raw device.

akpm: I fixed a typo and exported default_backing_dev_info to GPL modules for
this.

23 years ago[PATCH] Disable the "Unknown IO_APIC" message
Andrew Morton [Sat, 8 Mar 2003 11:28:48 +0000 (03:28 -0800)]
[PATCH] Disable the "Unknown IO_APIC" message

This message is the source of 90% of the traffic on linux-smp and is now
starting to fill up kernel bugzilla.

Nobody has ever actually done anything about it and the message is wasting
people's time.  Ingo acked this change.

23 years ago[PATCH] Larger buffer for /proc/interrupts display
Andrew Morton [Sat, 8 Mar 2003 11:28:39 +0000 (03:28 -0800)]
[PATCH] Larger buffer for /proc/interrupts display

Patch from Zwane Mwaikambo <zwane@linuxpower.ca>

Scale the buffer which is used for accumulating the /proc/interrupts output.
On large SMP it overflows.

23 years ago[PATCH] fix SMP lockup in eepro100 with ethtool on unused
Andrew Morton [Sat, 8 Mar 2003 11:28:30 +0000 (03:28 -0800)]
[PATCH] fix SMP lockup in eepro100 with ethtool on unused

Patch from Jason Lunz <lunz@falooley.org>

When support for the GSET and SSET ethtool ioctls was added to eepro100.c in
2.4.20, the tx lock was overloaded to serialize their use.  Unfortunately,
this lock is only initialized in dev->open(), causing ethtool to deadlock the
machine when used on an unconfigured eepro100 interface.

The fix is to initialize the spinlock at probe time.

23 years ago[PATCH] i386 show_interrupts() fix
Andrew Morton [Sat, 8 Mar 2003 11:28:20 +0000 (03:28 -0800)]
[PATCH] i386 show_interrupts() fix

show_interrupts() is accidentally modifying the incoming seq_file pointer.
It goes oops if seq_printf() returns non-zero.

23 years ago[PATCH] protect 'action' in show_interrupts
Andrew Morton [Sat, 8 Mar 2003 11:28:10 +0000 (03:28 -0800)]
[PATCH] protect 'action' in show_interrupts

Patch from Zwane Mwaikambo <zwane@linuxpower.ca>

On SMP or preemptible kernels, every instance of show_interrupts() is oopsily
racy wrt request_irq() and free_irq().

Fix that up by taking the irq_desc_t's lock while walking the action list.

23 years ago[PATCH] Extended attribute sharing and debug macro typo fixes
Andrew Morton [Sat, 8 Mar 2003 11:27:42 +0000 (03:27 -0800)]
[PATCH] Extended attribute sharing and debug macro typo fixes

Patch from Andreas Gruenbacher <agruen@suse.de>

Tony Dziedzic has found two bugs in the extended attributes code. Patches with
explanations are attached.

1: Extended attribute sharing on ext2/ext3 not working

   The mb_cache_entry_insert function constantly returns an -EBUSY error
   instead of 0, which causes the xattr cache that is needed by the xattr
   sharing mechanism on ext2/ext3 to not share anything.  This patch fixes
   the problem.  (It is possible that after applying this fix we will hit
   bugs in code that wasn't used before.)

2: Oops in one of the xattr debug statements: The old_bh variable is NULL
   if an inode that previously had no EA's assigned would share an EA block
   with another inode.  (This was hidden by the xattr sharing bug).

23 years ago[PATCH] fix memory leak in load_elf_binary()
Andrew Morton [Sat, 8 Mar 2003 11:27:24 +0000 (03:27 -0800)]
[PATCH] fix memory leak in load_elf_binary()

- Fix an error-path leak of memory and a dentry in load_elf_binary()
  (spotted by Oleg Drokin).

- Tidy up the handling of bad executable images: return -ENOEXEC rather
  than 0.  (We've committed suicide anyway, so probably nobody gets to see
  this).

- Fix up the logic in load_aout_interp().  It gets itself all set up to
  return -ENOEXEC but there is in fact no path by which it can do this.  Just
  return ~0UL on errors, like load_elf_interp().

23 years ago[PATCH] ext2: fix error-path double-free
Andrew Morton [Sat, 8 Mar 2003 11:27:07 +0000 (03:27 -0800)]
[PATCH] ext2: fix error-path double-free

Fix a double-kfree on an ext2 error path.  Reported by Oleg Drokin.

23 years ago[PATCH] hugetlb unmap_vmas() SMP && PREEMPT fix
Andrew Morton [Sat, 8 Mar 2003 11:26:43 +0000 (03:26 -0800)]
[PATCH] hugetlb unmap_vmas() SMP && PREEMPT fix

Patch from Kevin Pedretti <pedretti@ieee.org>

The unmap_vmas() logic is designed to chew away at all the pages without
holding off preemption for too long.  But with CONFIG_SMP=y and
CONFIG_PREEMPT=y the number of pages which we batch up between rescheduling
opportunities is not a multiple of HPAGE_SIZE.  So unmap_vmas() ends up
calling unmap_hugepage_range() with a poorly aligned&sized region, and it
goes BUG.

Fix that up by ensuring that we always work across hugepage regions in
HPAGE_SIZE chunks.

23 years ago[PATCH] usercopy checks in old_readdir()
Andrew Morton [Sat, 8 Mar 2003 11:26:21 +0000 (03:26 -0800)]
[PATCH] usercopy checks in old_readdir()

Fix up some unchecked copy_to_user()s

23 years ago[PATCH] fix div-by-zero in bonding.c
Andrew Morton [Sat, 8 Mar 2003 11:25:58 +0000 (03:25 -0800)]
[PATCH] fix div-by-zero in bonding.c

Patch from: Shmulik Hen <hshmulik@intel.com>

The following patch fixes a division by zero bug in the bonding module that
happens when transmitting through a bond with no slaves, in the XOR bonding
mode.

23 years ago[PATCH] move CONFIG_SWAP around
Andrew Morton [Sat, 8 Mar 2003 11:25:21 +0000 (03:25 -0800)]
[PATCH] move CONFIG_SWAP around

Patch from Tom Rini <trini@kernel.crashing.org>

Take CONFIG_SWAP out of the top-level menu into the general setup menu.  Make
it dependent on CONFIG_MMU and common to all architectures.

23 years ago[PATCH] Fix copy_page_range()'s handling of invalid pages
Andrew Morton [Sat, 8 Mar 2003 11:24:48 +0000 (03:24 -0800)]
[PATCH] Fix copy_page_range()'s handling of invalid pages

Patch from Xavier Bru  <Xavier.Bru@bull.net>

If copy_page_range encounters a pte which maps an invalid pageframe it will
proceed to try to add an rmap entry against that page.  This causes oopses
when an application which has mapped an IO device via /dev/mem forks.

Fix that up by correctly skipping the page_add_rmap() for these pte's.

23 years ago[PATCH] slab debug: symbolic output in caller tracking
Andrew Morton [Sat, 8 Mar 2003 11:24:29 +0000 (03:24 -0800)]
[PATCH] slab debug: symbolic output in caller tracking

use print_symbol() to decode the offender's program counter.

23 years ago[PATCH] slab debug: track caller program counter
Andrew Morton [Sat, 8 Mar 2003 11:24:12 +0000 (03:24 -0800)]
[PATCH] slab debug: track caller program counter

Patch from Manfred Spraul <manfred@colorfullife.com>

A patch that records the last kfree caller's program counter
and prints that if a poison check fails.

23 years ago[PATCH] slab use-after-free detector
Andrew Morton [Sat, 8 Mar 2003 11:23:55 +0000 (03:23 -0800)]
[PATCH] slab use-after-free detector

Patch from Petr Vandrovec <vandrove@vc.cvut.cz>

Modifies check_poison function to not only verify that last byte is
POISON_END, but also that all preceeding bytes are either POISON_BEFORE or
POISON_AFTER bytes.

23 years ago[PATCH] Fix vm_area_struct slab corruption
Andrew Morton [Sat, 8 Mar 2003 11:23:39 +0000 (03:23 -0800)]
[PATCH] Fix vm_area_struct slab corruption

Patch from Hugh Dickins <hugh@veritas.com>

Hugh's patch fixes vm_area_struct slab corruption due to mremap's move_vma
mistaking how do_munmap splits vmas in one case.

Neither of us are very happy with it - it is fragile, and obscure.  Hugh will
revisit this later, but for now it should fix up the potential memory
corruption.

23 years ago[PATCH] Make diskstats per-cpu using kmalloc_percpu
Andrew Morton [Sat, 8 Mar 2003 11:23:21 +0000 (03:23 -0800)]
[PATCH] Make diskstats per-cpu using kmalloc_percpu

Patch from Ravikiran G Thirumalai <kiran@in.ibm.com>

Makes the disk stats on struct gendisk per-cpu.

23 years ago[PATCH] Allow VFS readahead to fall to zero
Andrew Morton [Sat, 8 Mar 2003 11:23:08 +0000 (03:23 -0800)]
[PATCH] Allow VFS readahead to fall to zero

Some workloads really, really want to have no readahead.  Databases which are
perfoming small synchronous I/Os against a file which has extremely poor
layout.  Any readahead at all is a lose here.

But the current readahead code refuses to adapt that low.

Fix it up so that we can indeed adaptively disable readahead altogether, and
do not start it again until we have seen max_readahead()'s worth of
consecutive reads.

23 years ago[PATCH] Implement sendfile() for NFS
Andrew Morton [Sat, 8 Mar 2003 11:22:58 +0000 (03:22 -0800)]
[PATCH] Implement sendfile() for NFS

Patch from Trond Myklebust <trond.myklebust@fys.uio.no>

Implement sendfile() for the NFS client.  This is required for loop-on-NFS
support.

23 years ago[PATCH] fix possible latency in balance_dirty_pages()
Andrew Morton [Sat, 8 Mar 2003 11:22:49 +0000 (03:22 -0800)]
[PATCH] fix possible latency in balance_dirty_pages()

Tasks which throttle in balance_dirty_pages() will loop until the amount of
dirty memory falls below the configured dirty_ratio.

This exposes the possibility that one task could be stuck in there for
arbitrary periods of time due to page dirtying activity by other tasks.

The patch changes the logic so that tasks will break out of the loop if they
have written enough pages, regardless of the current dirty memory limits.

Here "enough" pages is 1.5x the number of pages which they just dirtied.

If the amount of dirty memory in the machine happens to still exceed
dirty_ratio (say, due to MAP_SHARED activity) then the task will again
throttle after dirtying a single page.  But there is now an upper limit on
the time for which a single task will be captured in balance_dirty_pages().

23 years ago[PATCH] register_blkdev cleanups
Andrew Morton [Sat, 8 Mar 2003 11:22:37 +0000 (03:22 -0800)]
[PATCH] register_blkdev cleanups

Patch from Andries.Brouwer@cwi.nl

The following patch does the following:

- static const char *blkdevs[MAX_BLKDEV]; disappears
- get_blkdev_list, (un)register_blkdev, __bdevname
  are moved from block_dev.c to genhd.c
- the third "fops" parameter of register_blkdev was unused;
  now removed everywhere
- zillions of places had printk("cannot get major") upon
  error return from register_blkdev; removed all of these
  and inserted a single printk in register_blkdev.

Of course the reason for the patch is that one fixed size
array is eliminated.

23 years ago[CPUFREQ] Move pci define to pci_ids.h
Dave Jones [Sat, 8 Mar 2003 07:46:06 +0000 (06:46 -0100)]
[CPUFREQ] Move pci define to pci_ids.h

23 years ago[CPUFREQ] update documentation
Dave Jones [Sat, 8 Mar 2003 07:39:57 +0000 (06:39 -0100)]
[CPUFREQ] update documentation

The sysfs directory where the cpufreq-related files are stored changed due
to the new device interface code, so the documentation needs to be updated
accordingly. Also, add some information about the reference counting and the
exporting of sysfs files by the drivers.

23 years ago[CPUFREQ] allow cpufreq drivers to export sysfs files
Dave Jones [Sat, 8 Mar 2003 07:39:21 +0000 (06:39 -0100)]
[CPUFREQ] allow cpufreq drivers to export sysfs files

This patch lets cpufreq drivers export per-CPU files in the cpufreq and
cpu-specific sysfs directory. As an example, a file
"scaling_available_frequencies" is added to the p4-clockmod.c driver.

23 years ago[CPUFREQ] add support for ICH4-M chipset in speedstep driver
Dave Jones [Sat, 8 Mar 2003 07:38:32 +0000 (06:38 -0100)]
[CPUFREQ] add support for ICH4-M chipset in speedstep driver

Intel ICH4-M soutbridges use exactly the same register interface for SpeedStep
as ICH2-M and ICH3-M southbridges -- which makes adding support for this
bridge (almost) trivial

23 years ago[CPUFREQ] updated cpufreq ref-counting and locking scheme
Dave Jones [Sat, 8 Mar 2003 07:37:39 +0000 (06:37 -0100)]
[CPUFREQ] updated cpufreq ref-counting and locking scheme

This patch takes use of the now-working cpufreq_interface.kset and
cpufreq_policy.kobj to use reference counting within the cpufreq core
wherever this is more appropriate than the previous approach -- using one
semaphore. Additionally, the callbacks to the driver modules are protected
now.

23 years ago[CPUFREQ] remove unneeded code
Dave Jones [Sat, 8 Mar 2003 07:36:56 +0000 (06:36 -0100)]
[CPUFREQ] remove unneeded code

- no cpufreq driver uses the frequency table helper "setpolicy" any more
  ("target" is much more appropriate for them anyways) - so remove
  that helper
- all cpufreq drivers use the advanced registration process, so some
  compatibility code can safely be removed.

23 years ago[CPUFREQ] fix userspace governor.
Dave Jones [Sat, 8 Mar 2003 07:36:30 +0000 (06:36 -0100)]
[CPUFREQ] fix userspace governor.
Let's put the sysfs file exported by the cpufreq userspace governor also
into the cpufreq/ - subdirectory of /sys/devices/sys/cpu0/.

23 years ago[CPUFREQ] fix cpufreq core breakage(s)
Dave Jones [Sat, 8 Mar 2003 07:35:48 +0000 (06:35 -0100)]
[CPUFREQ] fix cpufreq core breakage(s)

- update two more cpufreq-related sysfs files to the new interface
  code
- always store the new, user-requested policy in another struct
  cpufreq_policy so that we can safely fall back to the old one in
  case something fails (this equals the behaviour before Pat's patch)
- the kobject which was registered in cpufreq_add_dev was inside a variable
  private to this function -- so the whole cpufreq sysfs interface returned
  -EINVAL.

23 years agoFix loop problem in SCSI error handler sense collection
James Bottomley [Sat, 8 Mar 2003 03:03:45 +0000 (21:03 -0600)]
Fix loop problem in SCSI error handler sense collection

Also remove previous work around so sense is collected now if the
driver doesn't do it automatically.

Also fix a problem where the retries get reset when the command is
reissued (we only want the retries set when the command is first
created).

23 years agoFix DMA to stack problem in scsi_error.c
James Bottomley [Sat, 8 Mar 2003 02:58:09 +0000 (20:58 -0600)]
Fix DMA to stack problem in scsi_error.c

23 years agoCorrect nested variable thinko in scsi_error.c
James Bottomley [Sat, 8 Mar 2003 02:56:52 +0000 (20:56 -0600)]
Correct nested variable thinko in scsi_error.c

23 years agoMerge raven.il.steeleye.com:/home/jejb/BK/linux-2.5.64-interim
James Bottomley [Sat, 8 Mar 2003 02:45:00 +0000 (20:45 -0600)]
Merge raven.il.steeleye.com:/home/jejb/BK/linux-2.5.64-interim
into raven.il.steeleye.com:/home/jejb/BK/scsi-misc-2.5

23 years ago[PATCH] 6/6 cacheline align files_lock
Martin J. Bligh [Sat, 8 Mar 2003 02:24:13 +0000 (18:24 -0800)]
[PATCH] 6/6 cacheline align files_lock

I'm getting a lot of cacheline bounce from .text.lock.file_table due to
false sharing of the cahceline. The following patch just aligns the lock
in it's own cacheline.

23 years ago[PATCH] 5/6 Provide basic documentation for profiling
Martin J. Bligh [Sat, 8 Mar 2003 02:24:04 +0000 (18:24 -0800)]
[PATCH] 5/6 Provide basic documentation for profiling

People keep asking for this info, and Andrew asked me to put it under the
Documentation directory ... provides really simple instructions for taking
a profile so that users can report performance changes in a useful way.

23 years ago[PATCH] 4/6 Fix the type of get_zholes_size for NUMA-Q
Martin J. Bligh [Sat, 8 Mar 2003 02:23:57 +0000 (18:23 -0800)]
[PATCH] 4/6 Fix the type of get_zholes_size for NUMA-Q

From Andy Whitcroft

Fix the type of get_zholes_size for NUMA-Q

23 years ago[PATCH] 3/6 Convert physnode_map to u8
Martin J. Bligh [Sat, 8 Mar 2003 02:23:49 +0000 (18:23 -0800)]
[PATCH] 3/6 Convert physnode_map to u8

From Andy Whitcroft

Convert physnode_map from an int to a u8 to save cachelines.

23 years ago[PATCH] 2/6 Make CONFIG_NUMA work on non-numa machines.
Martin J. Bligh [Sat, 8 Mar 2003 02:23:42 +0000 (18:23 -0800)]
[PATCH] 2/6 Make CONFIG_NUMA work on non-numa machines.

From Andy Whitcroft

A few very simple changes in order to make CONFIG_NUMA work everywhere, so
the distros can build one common binary kernel for distributions.

23 years ago[PATCH] 1/6 Share common physnode_map code between NUMA-Q and Summit
Martin J. Bligh [Sat, 8 Mar 2003 02:23:33 +0000 (18:23 -0800)]
[PATCH] 1/6 Share common physnode_map code between NUMA-Q and Summit

From Andy Whitcroft

Share a common physnode_map structure between NUMA-Q and Summit.

23 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.5
Linus Torvalds [Sat, 8 Mar 2003 00:36:09 +0000 (16:36 -0800)]
Merge bk://kernel.bkbits.net/davem/sparc-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge bk://linux-dj.bkbits.net/watchdog
Linus Torvalds [Fri, 7 Mar 2003 23:58:29 +0000 (15:58 -0800)]
Merge bk://linux-dj.bkbits.net/watchdog
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[WATCHDOG] amd7xx_tco updates from Zwane, and nuke EXPORT_NO_SYMBOLS
Dave Jones [Sat, 8 Mar 2003 08:46:47 +0000 (07:46 -0100)]
[WATCHDOG] amd7xx_tco updates from Zwane, and nuke EXPORT_NO_SYMBOLS

23 years agoMerge http://linux-isdn.bkbits.net/linux-2.5.isdn
Linus Torvalds [Fri, 7 Mar 2003 23:48:12 +0000 (15:48 -0800)]
Merge http://linux-isdn.bkbits.net/linux-2.5.isdn
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge davem@nuts.ninka.net:/home/davem/src/BK/sparc-2.5
David S. Miller [Fri, 7 Mar 2003 23:44:17 +0000 (15:44 -0800)]
Merge davem@nuts.ninka.net:/home/davem/src/BK/sparc-2.5
into kernel.bkbits.net:/home/davem/sparc-2.5

23 years ago[SPARC64]: Make sure update_process_times runs inside of irq_{enter,exit} region.
David S. Miller [Fri, 7 Mar 2003 23:53:17 +0000 (15:53 -0800)]
[SPARC64]: Make sure update_process_times runs inside of irq_{enter,exit} region.

23 years ago[PATCH] no need for kernel_flag on UP
Robert Love [Fri, 7 Mar 2003 23:42:49 +0000 (15:42 -0800)]
[PATCH] no need for kernel_flag on UP

This is a minor cleanup.  We currently define and declare the BKL's
kernel_flag spinlock on either SMP or PREEMPT, which means a UP+PREEMPT
machine gets it.

We only need the actual lock on SMP.

23 years agoMerge tp1.ruhr-uni-bochum.de:/scratch/kai/kernel/v2.5/linux-2.5
Kai Germaschewski [Fri, 7 Mar 2003 15:53:08 +0000 (09:53 -0600)]
Merge tp1.ruhr-uni-bochum.de:/scratch/kai/kernel/v2.5/linux-2.5
into tp1.ruhr-uni-bochum.de:/scratch/kai/kernel/v2.5/linux-2.5.isdn

23 years ago[SPARC64]: Translate AUTOFS_IOC_EXPIRE_MULTI ioctl.
Marcel Holtmann [Fri, 7 Mar 2003 15:01:14 +0000 (07:01 -0800)]
[SPARC64]: Translate AUTOFS_IOC_EXPIRE_MULTI ioctl.

23 years agoIgnore initramfs cpio file
Linus Torvalds [Fri, 7 Mar 2003 11:37:53 +0000 (03:37 -0800)]
Ignore initramfs cpio file

23 years agoAvoid warning due to missing return value
Linus Torvalds [Fri, 7 Mar 2003 11:36:34 +0000 (03:36 -0800)]
Avoid warning due to missing return value

23 years ago[SPARC64]: Update defconfig.
David S. Miller [Fri, 7 Mar 2003 11:26:50 +0000 (03:26 -0800)]
[SPARC64]: Update defconfig.

23 years agoMerge nuts.ninka.net:/home/davem/src/BK/sparcwork-2.5
David S. Miller [Fri, 7 Mar 2003 11:19:26 +0000 (03:19 -0800)]
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[SPARC64]: Use pci_remove_bus_device to delete, found by Ben Collins.
David S. Miller [Fri, 7 Mar 2003 11:08:39 +0000 (03:08 -0800)]
[SPARC64]: Use pci_remove_bus_device to delete, found by Ben Collins.

23 years ago[FRAMEBUFFER]: Convert SBUS LEO driver to new APIs.
David S. Miller [Fri, 7 Mar 2003 10:43:11 +0000 (02:43 -0800)]
[FRAMEBUFFER]: Convert SBUS LEO driver to new APIs.

23 years agoMerge bk://kernel.bkbits.net/gregkh/linux/initramfs-2.5
Linus Torvalds [Fri, 7 Mar 2003 09:10:08 +0000 (01:10 -0800)]
Merge bk://kernel.bkbits.net/gregkh/linux/initramfs-2.5
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years agokbuild: handle any failures of the gen_init_cpio or initramfs image to stop the build.
Greg Kroah-Hartman [Fri, 7 Mar 2003 08:46:13 +0000 (00:46 -0800)]
kbuild: handle any failures of the gen_init_cpio or initramfs image to stop the build.

This also shows how to add files to the initramfs build, but is
commented out.

Patch originally done by Kai.

23 years agogen_init_cpio: Add the ability to add files to the cpio image.
Greg Kroah-Hartman [Fri, 7 Mar 2003 08:39:06 +0000 (00:39 -0800)]
gen_init_cpio: Add the ability to add files to the cpio image.

23 years ago[SPARC]: One too many chars in INIT_C_CC
David S. Miller [Fri, 7 Mar 2003 07:37:48 +0000 (23:37 -0800)]
[SPARC]: One too many chars in INIT_C_CC

23 years agoMerge bk://cifs.bkbits.net/linux-2.5cifs
Linus Torvalds [Fri, 7 Mar 2003 07:20:43 +0000 (23:20 -0800)]
Merge bk://cifs.bkbits.net/linux-2.5cifs
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years agoFix oops in getdfs when null path passed in on mount. Fix oops when changed readsize...
Steve French [Fri, 7 Mar 2003 11:01:46 +0000 (05:01 -0600)]
Fix oops in getdfs when null path passed in on mount.  Fix oops when changed readsize caused readpages problem.  Add support for altering rsize so can reduce pages read across net
below default of 4

23 years ago[PATCH] remove some braindamage from drivers/scsi/pcmcia/Kconfig
Christoph Hellwig [Fri, 7 Mar 2003 04:30:33 +0000 (22:30 -0600)]
[PATCH] remove some braindamage from drivers/scsi/pcmcia/Kconfig

It contains one user-selectable option that does nothing but hiding the
four pcmcia drivers if not seleted (although we have an extra menu for
them!) one one that does exactly nothing.  Remove those two.

23 years ago[PATCH] "interactivity changes", sched-2.5.64-B2
Ingo Molnar [Fri, 7 Mar 2003 04:19:30 +0000 (20:19 -0800)]
[PATCH] "interactivity changes", sched-2.5.64-B2

This fixes the SMP runqueue locking bug when updating the wakers
priority.  It also includes:

 - only update the priority and do a requeueing if the sleep average has
   changed. (this does not happen for pure CPU hogs or pure interactive
   tasks, so no need to requeue/recalc-prio in that case.) [All the
   necessary values are available at that point already, so gcc should
   have an easy job making this branch really cheap.]

 - do not do a full task activation in the migration-thread path - that is
   supposed to be near-atomic anyway.

 - fix up comments

I solved the SMP locking bug by moving the requeueing outside of
try_to_wake_up().  It does not matter that the priority update is not
atomically done now, since the current process wont do anything
inbetween.  (well, it could get preempted in a preemptible kernel, but
even that wont do any harm.)

23 years ago[PATCH] Some parisc updates for SCSI
Matthew Wilcox [Fri, 7 Mar 2003 03:14:42 +0000 (21:14 -0600)]
[PATCH] Some parisc updates for SCSI

The config stanza for SCSI_ZALON was in the wrong place, so move it.
Make SCSI_NCR53C8XX conflict with SCSI_ZALON.
Give ncr53c8xx and sym53c8xx names
Fill in detach and release methods unconditionally.
Call pci_set_master() in sym53c8xx.
Both these drivers need interrupt.h, not sched.h

23 years ago[PATCH] Turn off aio printk meant for debugging (2.5.64)
Stephen Hemminger [Fri, 7 Mar 2003 02:43:32 +0000 (18:43 -0800)]
[PATCH] Turn off aio printk meant for debugging (2.5.64)

The following messages are of interest only when debugging aio.
Otherwise, they are just console clutter.

23 years ago[PATCH] fs/locks.c: fix bugs
Matthew Wilcox [Fri, 7 Mar 2003 02:43:25 +0000 (18:43 -0800)]
[PATCH] fs/locks.c: fix bugs

- Remove broken lock accounting
- Introduce __locks_delete_block()
- Stop using kdevname()
- Fix locks_remove_posix()

23 years ago[PATCH] more "interactivity changes", sched-B2
Ingo Molnar [Fri, 7 Mar 2003 02:41:00 +0000 (18:41 -0800)]
[PATCH] more "interactivity changes", sched-B2

 - fix a (now-) bug in kernel/softirq.c, it did a wakeup outside any
   atomic regions, which falsely identified random processes as a
   non-atomic wakeup, and which causes random priority boost to be
   distributed.

 - reset the initial idle thread's priority back to PRIO_MAX after doing
   the wakeup_forked_process() - correct preemption relies on this.

 - update current->prio immediately after a backboost.

 - clean up effective_prio() & sleep_avg calculations so that there are
   fewer RT-task special cases.  This has the advantage of the sleep_avg
   being maintained even for RT tasks - this could be advantegous for
   tasks that briefly enter/exit RT mode.

23 years ago[PATCH] memleak in drivers/char/vt.c
Oleg Drokin [Fri, 7 Mar 2003 00:42:40 +0000 (16:42 -0800)]
[PATCH] memleak in drivers/char/vt.c

Seems there is a memleak on error exit path in drivers/char/vt.c, here's
the patch.  Found with help of smatch + enhanced unfree script.

23 years ago[PATCH] NUMA scheduler breakage
Ingo Molnar [Thu, 6 Mar 2003 23:48:46 +0000 (15:48 -0800)]
[PATCH] NUMA scheduler breakage

__activate_task() and wake_up_forked_process() should call
nr_running_inc(rq) rather than doing a rq->nr_running++.

Noted by Rick Lindsley

23 years ago[PATCH] Fix arch/alpha/vmlinux.lds.S typos.
Marc Zyngier [Thu, 6 Mar 2003 23:44:05 +0000 (15:44 -0800)]
[PATCH] Fix arch/alpha/vmlinux.lds.S typos.

The console initcall patch that went in contains a typo that prevents
alpha from building.

23 years ago[PATCH] Fix fs/binfmt_elf.c build
Marc Zyngier [Thu, 6 Mar 2003 23:43:58 +0000 (15:43 -0800)]
[PATCH] Fix fs/binfmt_elf.c build

The stack reducing patch that recently went in prevent alpha from
building (missing some ELF_CORE_COPY_XFPREGS ifdefs). The excluded
patch fixes it.

23 years ago[PATCH] noirqbalance still doesn't do anything
Zwane Mwaikambo [Thu, 6 Mar 2003 23:43:51 +0000 (15:43 -0800)]
[PATCH] noirqbalance still doesn't do anything

This one simply sets TARGET_CPUS to cpu_callout_map instead of
cpu_online_map so that when we finally do boot we actually use the other
cpus for servicing interrupts.

23 years ago[PATCH] revert pfn_to_nid change.
Martin J. Bligh [Thu, 6 Mar 2003 23:43:45 +0000 (15:43 -0800)]
[PATCH] revert pfn_to_nid change.

This change was wrong. pfn_to_nid is a macro.

23 years ago[PATCH] Fix NUMA scheduler problem after interactivity merge
Martin J. Bligh [Thu, 6 Mar 2003 23:43:37 +0000 (15:43 -0800)]
[PATCH] Fix NUMA scheduler problem after interactivity merge

NODE_THRESHOLD got accidentally dropped in the interactive scheduler
changes merge. This puts it back.

23 years ago[PATCH] Squash warning in ohci-pci.c on PowerBooks
David Gibson [Thu, 6 Mar 2003 23:43:30 +0000 (15:43 -0800)]
[PATCH] Squash warning in ohci-pci.c on PowerBooks

Apple PowerBooks want <asm/prom.h> in ohci-pci.c for the prototype of
pci_device_to_OF_node().  This patch adds it to the already present
list of PowerBook specific #includes:

23 years ago[PATCH] Squash warnings in usb-serial.c
David Gibson [Thu, 6 Mar 2003 23:43:23 +0000 (15:43 -0800)]
[PATCH] Squash warnings in usb-serial.c

This squashes (gcc-3.2) "label and end of compound statement
deprecated" warnings in usb-serial.c.

23 years agoMerge http://lia64.bkbits.net/to-linus-2.5
Linus Torvalds [Thu, 6 Mar 2003 23:39:16 +0000 (15:39 -0800)]
Merge http://lia64.bkbits.net/to-linus-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge bk://ldm.bkbits.net/linux-2.5-core
Linus Torvalds [Thu, 6 Mar 2003 23:36:24 +0000 (15:36 -0800)]
Merge bk://ldm.bkbits.net/linux-2.5-core
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoISDN/HiSax: Remove amd7930.c
Kai Germaschewski [Thu, 6 Mar 2003 19:23:06 +0000 (13:23 -0600)]
ISDN/HiSax: Remove amd7930.c

This has been around for many years but was never finished. No
need to carry it on to yet another stable kernel.

23 years agoISDN/HiSax: Get rid of CARD_* defines
Kai Germaschewski [Thu, 6 Mar 2003 19:20:29 +0000 (13:20 -0600)]
ISDN/HiSax: Get rid of CARD_* defines

hisax.h defined a CARD_* macro for each CONFIG option, which
is totally unnecessary, just use the CONFIG option directly.

23 years agoISDN/HiSax: Remove unused ISDN_CHIP_* macros
Kai Germaschewski [Thu, 6 Mar 2003 19:08:04 +0000 (13:08 -0600)]
ISDN/HiSax: Remove unused ISDN_CHIP_* macros

They were only defined, never used.