Skip to contentSkip to conversation

2.5.64-mm7

DISCUSSION Andrew Morton 4 participants 5 messages Mar 15, 2003

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.5/2.5.64/2.5.64-mm7/

kernel.org rsync seems broken, so it is also at

http://www.zip.com.au/~akpm/linux/patches/2.5/2.5.64/2.5.64-mm7/

. Niggling bugs in the anticipatory scheduler are causing problems. I've
reset the default to elevator=deadline until we get these fixed up.

. Added Alex's ext2 lock_super-removal patches

. The brlock removal patches are back

. Added /proc/sysrq-trigger. Writing a character to this has the same
effect as typing ALT-sysrq-that_character.

This is so that sysrq facilities are available remotely.

. Lots of new PCI handling code here from Russell King <[email protected]>

Changes since 2.5.64-mm6:

-nfsd-disable-softirq.patch
-lockd-lockup-fix-2.patch
-reiserfs-fix-memleaks.patch
-nfsd-memleak-fix.patch

Merged

+as-eject-BUG-fix.patch

Fix an anticipatory scheduler BUG when cdroms are ejected

+deadline-default.patch

Default to deadline scheduler

+scheduler-starvation-fixes.patch

CPU scheduler tweaks

+timer-cleanup.patch
+timer-readdition-fix.patch

Fix timer livelock

+oprofile-timer-fix.patch

Oprofile fix

+htree-nfs-fix-2.patch

Another fix for ext3/htree on NFS servers

+ext2-balloc-fix.patch

Fix logic in the ext2 block allocator

+ext2-no-lock_super.patch
+ext2-no-lock-super-whitespace-fixes.patch
+ext2-no-lock_super-fix-1.patch
+ext2-no-lock_super-fix-2.patch
+ext2-no-lock_super-fix-3.patch
+ext2-no-lock_super-fix-4.patch
+ext2-no-lock_super-fix-5.patch
+ext2-no-lock_super-fix-6.patch
+ext2-no-lock_super-fix-7.patch

Removal of lock_super in the ext2 block allocator

+brlock-removal-1.patch
+brlock-removal-2.patch
+brlock-removal-3.patch
+brlock-removal-4.patch
+brlock-removal-5.patch

Second pass of the brlock removal patches

+pgd_index-comments.patch

Add some comments

+pci-6.patch
+pci-7.patch
+pci-8.patch
+pci-9.patch
+pci-10.patch
+pci-11.patch
+pci-12.patch
+pci-13.patch
+pci-14.patch
+pci-15.patch

Some of Russell King's PCI patches.

+proc-sysrq-trigger.patch

Create /proc/sysrq-trigger

+aio-bits-fix.patch

AIO fixes

+clean-inode-fix.patch

Forgot to initialise inode->i_rdev

All 116 patches:

linus.patch
Latest from Linus

mm.patch
add -mmN to EXTRAVERSION

kgdb.patch

noirqbalance-fix.patch
Fix noirqbalance

config_spinline.patch
uninline spinlocks for profiling accuracy.

ppc64-reloc_hide.patch

ppc64-pci-patch.patch
Subject: pci patch

ppc64-aio-32bit-emulation.patch
32/64bit emulation for aio

ppc64-64-bit-exec-fix.patch
Pass the load address into ELF_PLAT_INIT()

ppc64-scruffiness.patch
Fix some PPC64 compile warnings

ppc64-compat-flock.patch
compat_sys_fcntl{,64} 2/9 ppc64 part

ppc64-eeh-fix.patch
ppc64 build fix

ppc64-socketcall-fix.patch

sym-do-160.patch
make the SYM driver do 160 MB/sec

config-PAGE_OFFSET.patch
Configurable kenrel/user memory split

ptrace-flush.patch
cache flushing in the ptrace code

buffer-debug.patch
buffer.c debugging

warn-null-wakeup.patch

ext3-truncate-ordered-pages.patch
ext3: explicitly free truncated pages

reiserfs_file_write-5.patch

tcp-wakeups.patch
Use fast wakeups in TCP/IPV4

rcu-stats.patch
RCU statistics reporting

ext3-journalled-data-assertion-fix.patch
Remove incorrect assertion from ext3

nfs-speedup.patch

nfs-oom-fix.patch
nfs oom fix

sk-allocation.patch
Subject: Re: nfs oom

nfs-more-oom-fix.patch

rpciod-atomic-allocations.patch
Make rcpiod use atomic allocations

linux-isp.patch

isp-update-1.patch

remove-unused-congestion-stuff.patch
Subject: [PATCH] remove unused congestion stuff

as-iosched.patch
anticipatory I/O scheduler

as-debug-BUG-fix.patch

as-eject-BUG-fix.patch
AS: don't go BUG during cdrom eject

cfq-2.patch
CFQ scheduler, #2

deadline-default.patch
deafult to deadline IO scheduler

smalldevfs.patch
smalldevfs

remap-file-pages-2.5.63-a1.patch
Subject: [patch] remap-file-pages-2.5.63-A1

hugh-remap-fix.patch
hugh's file-offset-in-pte fix

fremap-limit-offsets.patch
fremap: limit remap_file_pages() file offsets

fremap-all-mappings.patch
Make all executable mappings be nonlinear

filemap_populate-speedup.patch
filemap_populate speedup

file-offset-in-pte-x86_64.patch
x86_64: support for file offsets in pte's

file-offset-in-pte-ppc64.patch

objrmap-2.5.62-5.patch
object-based rmap

objrmap-nonlinear-fixes.patch
objrmap fix for nonlinear

scheduler-tunables.patch
scheduler tunables

scheduler-starvation-fixes.patch
CPU scheduler starvation fixes

timer-cleanup.patch
timer code cleanup

timer-readdition-fix.patch
timer re-addition lockup fix

show_task-free-stack-fix.patch
show_task() fix and cleanup

yellowfin-set_bit-fix.patch
yellowfin driver set_bit fix

htree-nfs-fix.patch
Fix ext3 htree / NFS compatibility problems

update_atime-ng.patch
inode a/c/mtime modification speedup

one-sec-times.patch
Implement a/c/time speedup in ext2 & ext3

task_prio-fix.patch
simple task_prio() fix

register-tty_devclass.patch
Register tty_devclass before use

set_current_state-fs.patch
use set_current_state in fs

set_current_state-mm.patch
use set_current_state in mm

copy_thread-leak-fix.patch
Fix memory leak in copy_thread

slab_store_user-large-objects.patch
slab debug: perform redzoning against larger objects

file_list_lock-contention-fix.patch
file_list_lock contention fixes

tty_files-fixes.patch
file->f_list locking in tty_io.c

file_list_cleanup.patch
file_list cleanup

file_list-remove-free_list.patch
file_table: remove the private freelist

file-list-less-locking.patch
file_list: less locking

vt_ioctl-stack-use.patch
stack reduction in drivers/char/vt_ioctl.c

fix-mem-equals.patch
Fix mem= options

no-mmu-stubs.patch
a few missing stubs for !CONFIG_MMU

nommu-slab.patch
slab changes for !CONFIG_MMU

nfs-memleak-fix.patch
memleak in fs/nfs/inode.c::nfs_get_sb()

ufs-memleak-fix.patch
Memleak in fs/ufs/util.c

hugetlb-unmap_vmas-fix.patch
fix the fix for unmap_vmas & hugepages

early-writeback-init.patch
Early writeback initialisation

posix-timers-update.patch
posix timers update

e100-memleak-fix.patch
Memleak in e100 driver

pcmcia-1-kill-get_foo_map.patch
pcmcia: 1/6 kill get_*_map

pcmcia-2-remove-bus_foo-abstractions.patch
pcmcia: 2/6: Remove bus_* abstractions

pcmcia-3-add-SOCKET_CARDBUS_CONFIG.patch
pcmcia: 3/6: add SOCKET_CARDBUS_CONFIG flag

pcmcia-4-add-locking.patch
pcmcia: 4/6: Add some locking to rsrc_mgr.c

pcmcia-5-add-CONFIG_PCMCIA_PROBE.patch
pcmcia 5/6: Introduce CONFIG_PCMCIA_PROBE

pcmcia-6-remove-old-cardbus-clients.patch
pcmcia: 6/6: Remove support for old cardbus clients

oops-counters.patch
OOPS instance counters

io_apic-DO_ACTION-cleanup.patch
io-apic.c: DO_ACTION cleanup

ext2-ext3-noatime-fix.patch
Ext2/3 noatime and dirsync sometimes ignored

oprofile-timer-fix.patch
fix oprofile timer race

htree-nfs-fix-2.patch
htree nfs fix

ext2-balloc-fix.patch
ext2: block allocation fix

ext2-no-lock_super.patch
concurrent block allocation for ext2

ext2-no-lock-super-whitespace-fixes.patch

ext2-no-lock_super-fix-1.patch

ext2-no-lock_super-fix-2.patch

ext2-no-lock_super-fix-3.patch

ext2-no-lock_super-fix-4.patch

ext2-no-lock_super-fix-5.patch

ext2-no-lock_super-fix-6.patch

ext2-no-lock_super-fix-7.patch

brlock-removal-1.patch
Brlock removal 1/5 - core

brlock-removal-2.patch
brlock removal 2/5: remove brlock from snap and vlan

brlock-removal-3.patch
brlock removal 3/5: remove brlock from bridge

brlock-removal-4.patch
brlock removal 4/5: removal from ipv4/ipv6

brlock-removal-5.patch
brlock removal 5/5: remove brlock code

pgd_index-comments.patch
pgd_index/pmd_index/pte_index commentary

pci-6.patch

pci-7.patch

pci-8.patch

pci-9.patch

pci-10.patch

pci-11.patch

pci-12.patch

pci-13.patch

pci-14.patch

pci-15.patch

proc-sysrq-trigger.patch
/proc/sysrq-trigger: trigger sysrq functions via /proc

aio-bits-fix.patch
kiocbClear should use clear_bit instead of set_bit

clean-inode-fix.patch
initialise inode->i_rdev

#1 lore raw

Review

Quoted 12 lines
(quoted diff) +10 -0
+pci-6.patch
+pci-7.patch
+pci-8.patch
+pci-9.patch
+pci-10.patch
+pci-11.patch
+pci-12.patch
+pci-13.patch
+pci-14.patch
+pci-15.patch
 
 Some of Russell King's PCI patches.

Following comments from Ivan, the following patches changed:

pci-9

only enable ROM resources if res->flags has PCI_ROM_ADDRESS_ENABLE set.

pci-10

don't use PCI_BUS_NUM_RESOURCES here - PPC machines can (in theory) have more than 4 primary bus resources.

pci-11

breaks Alpha Nautilus host bridge sizing - patch dropped from patch set.

For those trying the above out, please apply the following patch on top of -mm7:

drivers/pci/setup-res.c +1 -2
diff -ur orig/drivers/pci/setup-res.c linux/drivers/pci/setup-res.c
@@ -55,8 +55,7 @@
 	if (resno < 6) {
 		reg = PCI_BASE_ADDRESS_0 + 4 * resno;
 	} else if (resno == PCI_ROM_RESOURCE) {
-		res->flags |= PCI_ROM_ADDRESS_ENABLE;
-		new |= PCI_ROM_ADDRESS_ENABLE;
+		new |= res->flags & PCI_ROM_ADDRESS_ENABLE;
 		reg = dev->rom_base_reg;
 	} else {
 		/* Hmm, non-standard resource. */
drivers/pci/probe.c +1 -1
diff -ur orig/drivers/pci/probe.c linux/drivers/pci/probe.c
@@ -256,7 +256,7 @@
 		child->subordinate = 0xff;
 
 		/* Set up default resource pointers and names.. */
-		for (i = 0; i < PCI_BUS_NUM_RESOURCES; i++) {
+		for (i = 0; i < 4; i++) {
 			child->resource[i] = &bridge->resource[PCI_BRIDGE_RESOURCES+i];
 			child->resource[i]->name = child->name;
 		}
drivers/pci/setup-bus.c +35 -164

276 lines not on this page · raw message

Signature · 2 lines
Russell King ([email protected])                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html
#2 lore raw

Re: 2.5.64-mm7 - dies on smp with raid

In reply to Andrew Morton

mm7 crashed where mm2 works.
The machine is a dual celeron with two scsi disks with some raid-1 & raid-0 partitions.

deadline or anicipatory scheduler does not make a difference. It dies anyway, attempting to kill init.

Here's what I managed to write down before the 30 second reboot kicked in:

EIP is at md_wakeup_thread

stack:
do_md_run
autorun_array
autorun_devices
autostart_arrays
md_ioctl
dentry_open
kmem_cache_free
blkdev_ioctl
sys_ioctl
init
init

This happened during the boot process. The kernel is compiled with gcc 2.95.4 from debian testing. The machine uses devfs

Helge Hafting

#3 lore raw

Re: 2.5.64-mm7 - dies on smp with raid

Quoted 26 lines · Helge Hafting

mm7 crashed where mm2 works.
The machine is a dual celeron with two scsi disks with some raid-1 & raid-0 partitions.

deadline or anicipatory scheduler does not make a difference. It dies anyway, attempting to kill init.

Here's what I managed to write down before the 30 second reboot kicked in:

EIP is at md_wakeup_thread

stack:
do_md_run
autorun_array
autorun_devices
autostart_arrays
md_ioctl
dentry_open
kmem_cache_free
blkdev_ioctl
sys_ioctl
init
init

Quoted 3 lines

This happened during the boot process. The kernel is compiled with gcc 2.95.4 from debian testing. The machine uses devfs

A lot of md updates went into Linus's tree overnight. Can you get some more details for Neil?

Here is a wild guess:

drivers/md/md.c renamed from drivers/md/md.c~a +2 -0
diff -puN drivers/md/md.c~a drivers/md/md.c
@@ -2818,6 +2818,8 @@ int md_thread(void * arg)
 
 void md_wakeup_thread(mdk_thread_t *thread)
 {
+	if (!thread)
+		return;
 	dprintk("md: waking up MD thread %p.\n", thread);
 	set_bit(THREAD_WAKEUP, &thread->flags);
 	wake_up(&thread->wqueue);

_

#4 lore raw

Re: 2.5.64-mm7 - dies on smp with raid

Quoted 11 lines · On Saturday March 15, [email protected] wrote:

A lot of md updates went into Linus's tree overnight. Can you get some more details for Neil?

Here is a wild guess:

diff -puN drivers/md/md.c~a drivers/md/md.c

drivers/md/md.c int md_thread(void * arg) · line 2825

Quoted 8 lines
drivers/md/md.c renamed from drivers/md/md.c~a +2 -0
@@ -2818,6 +2818,8 @@ int md_thread(void * arg)
 
 void md_wakeup_thread(mdk_thread_t *thread)
 {
+	if (!thread)
+		return;
 	dprintk("md: waking up MD thread %p.\n", thread);
 	set_bit(THREAD_WAKEUP, &thread->flags);
 	wake_up(&thread->wqueue);

Looks like a good guess to me.

I hadn't considered raid0/linear properly in that last change suite. They don't have a thread so there is nothing to wake up.

There are two places where the wrong thing will happen:
do_md_run where it also calls md_update_sb which doesn't
hurt but isn't really needed (there is never any point updating the superblock metadata for raid0/linear).
restart_array where we switch back to read/write and wakeup
the thread to see if there is anything to do.

We either need this "if(!thread)" test inside md_wakeup_thread or at those two call sites, in which case we can avoid md_update_sb as well.

I send one to Linus later...

Thanks,
NeilBrown