]> git.hungrycats.org Git - linux/log
linux
22 years agoLinux 2.5.65 v2.5.65
Linus Torvalds [Mon, 17 Mar 2003 05:36:50 +0000 (21:36 -0800)]
Linux 2.5.65

22 years agoMerge kroah.com:/home/greg/linux/BK/bleed-2.5
Greg Kroah-Hartman [Mon, 17 Mar 2003 02:43:39 +0000 (18:43 -0800)]
Merge kroah.com:/home/greg/linux/BK/bleed-2.5
into kroah.com:/home/greg/linux/BK/gregkh-2.5

22 years ago[PATCH] signal fix for wedge on multithreaded core dump
Roland McGrath [Mon, 17 Mar 2003 00:25:22 +0000 (16:25 -0800)]
[PATCH] signal fix for wedge on multithreaded core dump

This is a fix made almost a month ago, during the flurry of signal changes.
I didn't realize until today that this hadn't made it into 2.5.  Sorry
about the delay.

This fix is necessary to avoid sometimes wedging in uninterruptible sleep
when doing a multithreaded core dump triggered by a process signal (kill)
rather than a trap.  You can reproduce the problem by running your favorite
multithreaded program (NPTL) and then using "kill -SEGV" on it.  It will
often wedge.  The actual fix could be just a two line diff:

+                       if (current->signal->group_exit)
+                               goto dequeue;

after the group_exit_task check.  That is the fix that has been used in
Ingo's backport for weeks and tested heavily (well, as heavily as core
dumping ever gets tested, but it's been in our production systems).

But I broke the hair out into a separate function.  The patch below has the
same effect as the two-liner, and no other difference.  I have tested
2.5.64 with this patch and it works for me, though I haven't beat on it.

The way the wedge happens is that for a core-dump signal group_send_sig_info
does a group stop of other threads before the one thread handles the fatal
signal.  If the fatal thread gets into do_coredump and coredump_wait first,
then other threads see the group stop and suspend with SIGKILL pending.
All other fatal cases clear group_stop_count, so this is the only way this
ever happens.  Checking group_exit fixes it.  I didn't make do_coredump
clear group_stop_count because doing it with the appropriate ordering and
locking doesn't fit the organization that code.

22 years ago[PATCH] fix affs/super.c
Andries E. Brouwer [Mon, 17 Mar 2003 00:21:10 +0000 (16:21 -0800)]
[PATCH] fix affs/super.c

Mounting a non-affs filesystem as affs crashes the kernel.
The reason is the
sbi = kmalloc(sizeof(struct affs_sb_info), GFP_KERNEL);
memset(sbi, 0, sizeof(*AFFS_SB));
where the second sizeof is 1, so that sbi is not zeroed at all.

Also, avoid a warning for printk of sector_t in amigaffs.h.

22 years ago[PATCH] extra tokens after endif
Jens Axboe [Mon, 17 Mar 2003 00:21:00 +0000 (16:21 -0800)]
[PATCH] extra tokens after endif

22 years ago[PATCH] honor hard barrier in deadline
Jens Axboe [Mon, 17 Mar 2003 00:20:50 +0000 (16:20 -0800)]
[PATCH] honor hard barrier in deadline

Previously, we only honored barriers wrt merging. Really honor them now,
move all pending requests to dispatch list and add the hard barrier at
the back.

22 years agokbuild: Fix asm/offset.h generation
Kai Germaschewski [Mon, 17 Mar 2003 04:11:24 +0000 (22:11 -0600)]
kbuild: Fix asm/offset.h generation

gen-asm-offsets, the most common user of the new filechk function, needs
to be fed input from $< (the first prerequisite).

22 years agoMerge bk://linuxusb@bkbits.net/linus-2.5
Greg Kroah-Hartman [Sun, 16 Mar 2003 15:29:12 +0000 (07:29 -0800)]
Merge bk://linuxusb@bkbits.net/linus-2.5
into kroah.com:/home/linux/linux/BK/gregkh-2.5

22 years ago[PATCH] miropcm20-rds.c compile fixes
Andrew Morton [Sun, 16 Mar 2003 15:23:33 +0000 (07:23 -0800)]
[PATCH] miropcm20-rds.c compile fixes

Patch from Adrian Bunk <bunk@fs.tum.de>

It would be nice if everyone would try to compile the patched files
before submitting patches...

22 years ago[PATCH] fix raid0 oops
Andrew Morton [Sun, 16 Mar 2003 15:23:25 +0000 (07:23 -0800)]
[PATCH] fix raid0 oops

raid0 doesn't have a thread, so md_wakeup_thread() derefs NULL.

Neil may end up doing this differently, but meanwhile....

22 years ago[PATCH] AFFS fixes
Andrew Morton [Sun, 16 Mar 2003 15:23:17 +0000 (07:23 -0800)]
[PATCH] AFFS fixes

Patch from Roman Zippel <zippel@linux-m68k.org>

- remove lock_kernel() (It was buggy too - there are at present two missing
  unlock_kernel()s)

- fixes a bitmap corruption problem.

22 years ago[PATCH] initialise inode->i_rdev
Andrew Morton [Sun, 16 Mar 2003 15:23:09 +0000 (07:23 -0800)]
[PATCH] initialise inode->i_rdev

From latest -aa kernels.

22 years ago[PATCH] kiocbClear should use clear_bit instead of set_bit
Andrew Morton [Sun, 16 Mar 2003 15:23:02 +0000 (07:23 -0800)]
[PATCH] kiocbClear should use clear_bit instead of set_bit

Patch from: Suparna Bhattacharya <suparna@in.ibm.com>

Just an obvious fix.
The kiocbClearX macros were doing a set_bit !
They should be calling clear_bit.
Ran into this now that I'm actually using kiocbClearKicked.

22 years ago[PATCH] ext2: block allocation fix
Andrew Morton [Sun, 16 Mar 2003 15:22:55 +0000 (07:22 -0800)]
[PATCH] ext2: block allocation fix

Patch from Alex Tomas <bzzz@tmi.comex.ru>

There is a logic error in ext2_new_block().  If we manage to reserve some
blocks in the final blockgroup, local variable `bit' will be equal to
sbi->s_groups_count and we erroneously assume that the allocation failed.

Fix that up by testing local variable `group_alloc' instead.

22 years ago[PATCH] Ext2/3 noatime and dirsync fixes
Andrew Morton [Sun, 16 Mar 2003 15:22:47 +0000 (07:22 -0800)]
[PATCH] Ext2/3 noatime and dirsync fixes

Patch from "Theodore Ts'o" <tytso@mit.edu>

I recently noticed a bug in ext2/3; newly created inodes which inherit
the noatime flag from their containing directory do not respect noatime
until the inode is flushed from the inode cache and then re-read later.
This is because the code which checks the ext2 no-atime attribute and
then sets the S_NOATIME in inode->i_flags is present in
ext2_read_inode(), but not in ext2_new_inode().

I fixed this in 2.4, and then found an even worse bug in the 2.5 code;
the DIRSYNC flag is completely ignored *except* in the case where a
directory is newly created using mkdir and its parent directory has the
DIRSYNC flag.  S_DIRSYNC doesn't get set in the ext2_new_inode() or the
ext2_ioctl() paths (which is used by chattr).

This patch centralizes the code which translates the ext2 flags in the
raw ext2 inode to the appropriate flag values in inode->i_flags in a
single location.  This fixes the bug, makes things cleaner, and also
removes 30 lines of code and 128 bytes of compiled x86 text in the
bargain.

22 years ago[PATCH] Fix memleak in e100 driver
Andrew Morton [Sun, 16 Mar 2003 15:22:39 +0000 (07:22 -0800)]
[PATCH] Fix memleak in e100 driver

Patch from Oleg Drokin <green@linuxhacker.ru>

    There is a memleak in e100 driver from intel, both in 2.4 and 2.5
    e100_ethtool_gstrings does not free "strings" variable if it cannot
    copy it to userspace.

22 years ago[PATCH] Early writeback initialisation
Andrew Morton [Sun, 16 Mar 2003 15:22:32 +0000 (07:22 -0800)]
[PATCH] Early writeback initialisation

Patch from Anders Gustafsson <andersg@0x63.nu>

We're getting a division-by-zero in the writeback code during early rootfs
population, because writeback has not yet been initialised.

Fix that by performing an explicit initialisation rather than relying on
initcall ordering.

22 years ago[PATCH] fix the fix for unmap_vmas & hugepages
Andrew Morton [Sun, 16 Mar 2003 15:22:24 +0000 (07:22 -0800)]
[PATCH] fix the fix for unmap_vmas & hugepages

Patch from Kevin Pedretti <pedretti@ieee.org>

The previous fix for unmapping hugetlb regions could still produce incorrect
alignments if the munmap request covers multiple VMA's.

Fix it by always unmapped the entire hugepage VMA inside the inner loop.

22 years ago[PATCH] Fix mem= options
Andrew Morton [Sun, 16 Mar 2003 15:22:16 +0000 (07:22 -0800)]
[PATCH] Fix mem= options

Patch from "Randy.Dunlap" <rddunlap@osdl.org>

Reverts the recent alteration of the format of the `mem=' option.  This is
because `mem=' is interpreted by bootloaders and may not be freely changed.

Instead, the new functionality to set specific memory region usages is
provided via the new "memmap=" option.

The documentation for memmap= is added, and the documentation for mem= is
updated.

22 years ago[PATCH] fix devfs oops
Andrew Morton [Sun, 16 Mar 2003 15:22:09 +0000 (07:22 -0800)]
[PATCH] fix devfs oops

The recent (untested?) "cleanup" removed a null-pointer test.

22 years agoMerge http://linux-isdn.bkbits.net/linux-2.5.make
Linus Torvalds [Sun, 16 Mar 2003 14:33:24 +0000 (06:33 -0800)]
Merge http://linux-isdn.bkbits.net/linux-2.5.make
into home.transmeta.com:/home/torvalds/v2.5/linux

22 years ago[PATCH] fsmenu update
Randy Dunlap [Sun, 16 Mar 2003 13:46:08 +0000 (05:46 -0800)]
[PATCH] fsmenu update

As requested by Andrew, this moves the hugetlbfs config option
into the Pseudo filesystems section near tmpfs.

22 years ago[PATCH] add support to m68knommu linker script for console init section
Greg Ungerer [Sun, 16 Mar 2003 13:45:48 +0000 (05:45 -0800)]
[PATCH] add support to m68knommu linker script for console init section

Also fix some spelling.

22 years ago[PATCH] fix spelling in m68knommu signal.c
Greg Ungerer [Sun, 16 Mar 2003 13:45:38 +0000 (05:45 -0800)]
[PATCH] fix spelling in m68knommu signal.c

22 years ago[PATCH] fix spelling in m68knommu comem PCI support code
Greg Ungerer [Sun, 16 Mar 2003 13:45:30 +0000 (05:45 -0800)]
[PATCH] fix spelling in m68knommu comem PCI support code

22 years agoMerge bk://bk.arm.linux.org.uk:14691/linux-2.5-pci/
Linus Torvalds [Sun, 16 Mar 2003 13:44:54 +0000 (05:44 -0800)]
Merge bk://bk.arm.linux.org.uk:14691/linux-2.5-pci/
into home.transmeta.com:/home/torvalds/v2.5/linux

22 years ago[PCI] pci-15: Fix setup-bus.c resource sizing.
Russell King [Sun, 16 Mar 2003 23:28:51 +0000 (23:28 +0000)]
[PCI] pci-15: Fix setup-bus.c resource sizing.

Patch from Ivan Kokshaysky

This fixes long standing typo ('size' instead of 'r_size') which causes
overestimate of the bridge memory ranges calculated in pbus_size_mem().
For example, if we have a device with one 1Mb and one 2Mb memory ranges
behind the bridge, calculated size and alignment of the bridge memory
window will be 4Mb and 2Mb respectively, while the correct values are
3Mb and 1Mb.

22 years ago[PCI] pci-14: Add the Mobility Electronics EV1000 PCI device numbers.
Russell King [Sun, 16 Mar 2003 23:24:45 +0000 (23:24 +0000)]
[PCI] pci-14: Add the Mobility Electronics EV1000 PCI device numbers.

22 years ago[PCI] pci-13: unuse pci_do_scan_bus()
Russell King [Sun, 16 Mar 2003 23:21:31 +0000 (23:21 +0000)]
[PCI] pci-13: unuse pci_do_scan_bus()

In an attempt to "unuse" pci_do_scan_bus() so it can be eventually
killed, make pci_scan_bus_parented() call the new pci_scan_child_bus()
and pci_bus_add_devices().  The only remaining callers are the
hotplug drivers.

Eventually, pci_bus_add_devices() will be removed from this function -
it is intended that architectures should call this after they have
done any setups and fixups to the scanned bus.

It is legal to call pci_bus_add_devices() on a bus which has already
had this function called, so architectures could update today.

22 years ago[PCI] pci-12: Add #defines for cardbus specifics
Russell King [Sun, 16 Mar 2003 23:10:44 +0000 (23:10 +0000)]
[PCI] pci-12: Add #defines for cardbus specifics

Pull out the bits of cardbus configuration - the secondary latency
timer, and the number of bus numbers we reserve.

22 years ago[PCI] pci-11: use u32 for bus numbers/latency not unsigned long
Russell King [Sun, 16 Mar 2003 23:06:27 +0000 (23:06 +0000)]
[PCI] pci-11: use u32 for bus numbers/latency not unsigned long

pci_read_config_dword() takes a u32 pointer, not unsigned long.

22 years ago[PCI] pci-10: Miscellaneous cleanups to probe.c
Russell King [Sun, 16 Mar 2003 22:59:17 +0000 (22:59 +0000)]
[PCI] pci-10: Miscellaneous cleanups to probe.c

Miscellaneous cleanups to probe.c:
        - make code/comments wrap before column 80.
        - remove extraneous space.

22 years ago[PCI] pci-9: Kill per-architecture pcibios_update_resource()
Russell King [Sun, 16 Mar 2003 22:17:24 +0000 (22:17 +0000)]
[PCI] pci-9: Kill per-architecture pcibios_update_resource()

Kill pcibios_update_resource(), replacing it with pci_update_resource().
pci_update_resource() uses pcibios_resource_to_bus() to convert a
resource to a device BAR - the transformation should be exactly the
same as the transformation used for the PCI bridges.

pci_update_resource "knows" about 64-bit BARs, but doesn't attempt to
set the high 32-bits to anything non-zero - currently no architecture
attempts to do something different.  If anyone cares, please fix; I'm
going to reflect current behaviour for the time being.

Ivan pointed out the following architectures need to examine their
pcibios_update_resource() implementation - they should make sure that
this new implementation does the right thing.  #warning's have been
added where appropriate.

ia64
mips
mips64

This cset also includes a fix for the problem reported by AKPM where
64-bit arch compilers complain about the resource mask being placed
in a u32.

22 years ago[PCI] pci-8: pci_resource_to_bus()
Russell King [Sun, 16 Mar 2003 21:56:53 +0000 (21:56 +0000)]
[PCI] pci-8: pci_resource_to_bus()

Convert pcibios_fixup_pbus_ranges() into something more generic, namely
pcibios_resource_to_bus() - we are really trying to convert resources
to something to program into bus registers for bridge windows, and in
fact, PCI device BARs.

This is necessary since some architectures, namely Alpha, ARM and PARISC
have an offset between PCI addressing and host-based addressing, so
resources need to be adjusted when read or when written back to the bus.

We provide a generic version in asm-generic/pci.h, which most
architectures use.

This patch finds the following architectures with something to think
consider:

        - ppc, ppc64
                adjusts resources for devices, but not buses.
This is inconsistent, and leads to improperly
programmed windows/BARs.

PPC people (Anton) has a replacement PCI resource implementation
which should do the right thing.

22 years ago[PCI] pci-7: Remove second argument to pcibios_update_resource()
Russell King [Sun, 16 Mar 2003 21:42:43 +0000 (21:42 +0000)]
[PCI] pci-7: Remove second argument to pcibios_update_resource()

Patch from Ivan Kokshaysky

remove the "parent" or "root" second argument to
pcibios_update_resource().  This highlights the following
architectures doing something wrong in their implementation:

        - ia64
        - mips it8172
        - mips "generic mips boards"
        - mips64 "generic mips boards"
        - mips64 IP27

22 years ago[PCI] pci-6 - Fix scanning of non-zero functions
Russell King [Sun, 16 Mar 2003 21:33:30 +0000 (21:33 +0000)]
[PCI] pci-6 - Fix scanning of non-zero functions

Fix breakage in pci-3 - we scanned all functions if function 0 was not
present.  This causes some host bridges to lock up when scanning devfn
255 on PPC machines.

22 years agoMerge http://linux-scsi.bkbits.net/scsi-for-linus-2.5
Linus Torvalds [Sun, 16 Mar 2003 13:36:33 +0000 (05:36 -0800)]
Merge http://linux-scsi.bkbits.net/scsi-for-linus-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

22 years ago[PATCH] sched-2.5.64-bk10-D0
Ingo Molnar [Sun, 16 Mar 2003 13:35:21 +0000 (05:35 -0800)]
[PATCH] sched-2.5.64-bk10-D0

This removes/fixes a few whitespaces and removes the MAX_PRIO setting in
the init task path which is unnecessary and which might even lead to
bugs - MAX_PRIO is outside the valid range and technically the init
thread is not an idle thread yet at this point.

22 years ago[PATCH] sched-2.5.64-bk10-C4
Ingo Molnar [Sun, 16 Mar 2003 13:35:14 +0000 (05:35 -0800)]
[PATCH] sched-2.5.64-bk10-C4

This fixes a fundamental (and long-standing) bug in the sleep-average
estimator which is the root cause of the "contest process_load" problems
reported by Mike Galbraith and Andrew Morton, and which problem is
addressed by Mike's patch.

The bug is the following: the sleep_time code in activate_task()
over-estimates the true sleep time by 0.5 jiffies on average (0.5 msecs
on recent 2.5 kernels).  Furthermore, for highly context-switch
intensive and CPU-intensive workloads it means a constant 1 jiffy
over-estimation.  This turns the balance of giving and removing ticks
and nils the effect of the CPU busy-tick, catapulting the task(s) to
highly interactive status - while in reality they are constantly burning
CPU time.

The fix is to round down sleep_time, not to round it up.  This slightly
under-estimates the sleep time, but this is not a real problem, any task
with a sleep time in the 1 jiffy range will see timekeeping granularity
artifacts from various parts of the kernel anyway.  We could use rdtsc
to estimate the sleep time, but i think that's unnecessary overhead.

The fixups in Mike's scheduler patch (which is in -mm8) basically work
around this bug.  The patch below definitely fixes the contest-load
starvation bug, but it remains to be seen what other effects it has on
interactivity.  In any case, this bug in the estimator is real and if
there's any other interactivity problem around then we need to deal with
it ontop of this patch.

This bug has been in the O(1) scheduler from day 1 on basically, so i'm
quite hopeful that a number of interactivity complaints are fixed by
this patch.

22 years agoMerge raven.il.steeleye.com:/home/jejb/BK/scsi-misc-2.5
James Bottomley [Sun, 16 Mar 2003 04:39:57 +0000 (22:39 -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

22 years agorevert fs/block_dev.c change for hot resize: breaks initrd
James Bottomley [Sun, 16 Mar 2003 04:36:09 +0000 (22:36 -0600)]
revert fs/block_dev.c change for hot resize: breaks initrd

22 years agoscsi_debug version 1.68 mark III
Douglas Gilbert [Sun, 16 Mar 2003 03:05:30 +0000 (21:05 -0600)]
scsi_debug version 1.68 mark III

Changelog since version 1.68 mark II:
  - merge Mike Anderson's probe() cleanup
     - num_devs is now "per host"
     - num_devs is sysfs writeable
  - add slave_alloc skeleton code

So to simulate 154 disks (for example) one might use:
  # modprobe scsi_debug add_host=11 num_devs=14

With max_luns at its default value of 2, 14 is the
maximum number of devices per host scsi_debug will
respond to (i.e. 7 targets, each with 2 lus).

Documentation updated at:
http://www.torque.net/sg/sdebug25.html

22 years agoMerge
Kai Germaschewski [Sat, 15 Mar 2003 17:54:11 +0000 (11:54 -0600)]
Merge

22 years agokbuild: Fix output when linking vmlinux
Kai Germaschewski [Sat, 15 Mar 2003 17:50:13 +0000 (11:50 -0600)]
kbuild: Fix output when linking vmlinux

make's line continuation without explicit backslashes is a mystery
to me, and in this case, vmlinux got linked, but the linker command
was not written to the screen. Works again now.

22 years agoMerge vaio.(none):/home/kai/kernel/v2.5/linux-2.5
Kai Germaschewski [Sat, 15 Mar 2003 16:43:12 +0000 (10:43 -0600)]
Merge vaio.(none):/home/kai/kernel/v2.5/linux-2.5
into vaio.(none):/home/kai/kernel/v2.5/linux-2.5.make

22 years agoMerge bk://lsm@bkbits.net/linus-2.5
Greg Kroah-Hartman [Sat, 15 Mar 2003 12:55:59 +0000 (04:55 -0800)]
Merge bk://lsm@bkbits.net/linus-2.5
into kroah.com:/home/linux/linux/BK/lsm-2.5

22 years ago[PATCH] typos only
Randy Dunlap [Sat, 15 Mar 2003 09:19:40 +0000 (01:19 -0800)]
[PATCH] typos only

No code changes; still builds OK.

22 years ago[PATCH] update filesystems config. menu
Randy Dunlap [Sat, 15 Mar 2003 09:19:32 +0000 (01:19 -0800)]
[PATCH] update filesystems config. menu

This is Robert PJ Day's patch that updates the filesystems
config menu.  It had become a bit ad hoc (jumbled:) and this
patch attempts to arrange it more logically.

22 years ago[PATCH] gtk front end
Roman Zippel [Sat, 15 Mar 2003 09:17:45 +0000 (01:17 -0800)]
[PATCH] gtk front end

This adds the gtk front end by Romain Liévin <roms@tilp.info>

22 years ago[PATCH] add menuconfig support to the front ends
Roman Zippel [Sat, 15 Mar 2003 09:17:30 +0000 (01:17 -0800)]
[PATCH] add menuconfig support to the front ends

This adds the support for the menuconfig to the front ends.
qconf also has now an ".." entry to make it more obvious
how to get to a parent menu.

22 years ago[PATCH] add menuconfig support
Roman Zippel [Sat, 15 Mar 2003 09:17:18 +0000 (01:17 -0800)]
[PATCH] add menuconfig support

This adds the support for the menuconfig keyword, which allows to define
a config symbol and a submenu with a single step, e.g. instead of

menu "SCSI device support"

config SCSI
tristate "SCSI device support"

this is now enough:

menuconfig SCSI
tristate "SCSI device support"

22 years ago[PATCH] menu structure fix
Roman Zippel [Sat, 15 Mar 2003 09:17:12 +0000 (01:17 -0800)]
[PATCH] menu structure fix

A menu entry was possibly inserted to high in the menu hierarchie if
the previous entry was a derived config symbol.

22 years ago[PATCH] restore old config behaviour for dependencies on 'm'
Roman Zippel [Sat, 15 Mar 2003 09:17:04 +0000 (01:17 -0800)]
[PATCH] restore old config behaviour for dependencies on 'm'

This restores the old config behaviour for dependencies on 'm',
such entries are only activ if CONFIG_MODULES is enabled as well.

22 years agoMerge bk://bk.arm.linux.org.uk
Linus Torvalds [Sat, 15 Mar 2003 09:15:11 +0000 (01:15 -0800)]
Merge bk://bk.arm.linux.org.uk
into home.transmeta.com:/home/torvalds/v2.5/linux

22 years ago[TTY] Register tty devclass before use.
Russell King [Sat, 15 Mar 2003 10:37:42 +0000 (10:37 +0000)]
[TTY] Register tty devclass before use.

Register the tty devclass with sysfs before tty drivers initialise -
sysfs requires structures to be registered before use.  This is
required for the previous serial csets, as well as any drivers which
are initialising using __initcall() or module_init().

22 years agoMerge http://ppc.bkbits.net/for-linus-ppc64
Linus Torvalds [Sat, 15 Mar 2003 09:11:44 +0000 (01:11 -0800)]
Merge http://ppc.bkbits.net/for-linus-ppc64
into home.transmeta.com:/home/torvalds/v2.5/linux

22 years agoMerge bk://ppc.bkbits.net/for-linus-ppc64
Anton Blanchard [Sun, 16 Mar 2003 16:41:23 +0000 (03:41 +1100)]
Merge bk://ppc.bkbits.net/for-linus-ppc64
into samba.org:/home/anton/ppc64/for-linus-ppc64

22 years agoMerge samba.org:/scratch/anton/sfr
Anton Blanchard [Sun, 16 Mar 2003 16:26:01 +0000 (03:26 +1100)]
Merge samba.org:/scratch/anton/sfr
into samba.org:/scratch/anton/linux-2.5_ppc64

22 years agoMerge bk://ppc.bkbits.net/for-linus-ppc64
Anton Blanchard [Sun, 16 Mar 2003 16:23:37 +0000 (03:23 +1100)]
Merge bk://ppc.bkbits.net/for-linus-ppc64
into samba.org:/home/anton/ppc64/for-linus-ppc64

22 years agoppc64: remove -finline-limit now that we force inlines
Anton Blanchard [Sun, 16 Mar 2003 16:18:15 +0000 (03:18 +1100)]
ppc64: remove -finline-limit now that we force inlines

22 years agoMerge samba.org:/scratch/anton/linux-2.5
Anton Blanchard [Sun, 16 Mar 2003 16:09:46 +0000 (03:09 +1100)]
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/sfr

22 years agoMerge bk://linux-dj.bkbits.net/cpufreq
Linus Torvalds [Sat, 15 Mar 2003 03:29:12 +0000 (19:29 -0800)]
Merge bk://linux-dj.bkbits.net/cpufreq
into home.transmeta.com:/home/torvalds/v2.5/linux

22 years agoppc64: compat_sys_fcntl from Stephen Rothwell, remove socketcall emulation
Anton Blanchard [Sat, 15 Mar 2003 03:26:35 +0000 (14:26 +1100)]
ppc64: compat_sys_fcntl from Stephen Rothwell, remove socketcall emulation

22 years agoRevert duplicate <linux/stddef.h> addition.
Linus Torvalds [Sat, 15 Mar 2003 01:52:27 +0000 (17:52 -0800)]
Revert duplicate <linux/stddef.h> addition.

22 years agoPPC32: Don't reregister existing /proc/irq entries.
Paul Mackerras [Sun, 16 Mar 2003 09:37:36 +0000 (20:37 +1100)]
PPC32: Don't reregister existing /proc/irq entries.

22 years agoPPC32: Make sure interrupts are disabled in IPI handlers.
Paul Mackerras [Sun, 16 Mar 2003 09:36:04 +0000 (20:36 +1100)]
PPC32: Make sure interrupts are disabled in IPI handlers.

22 years agoPPC32: Set max_pfn correctly.
Paul Mackerras [Sun, 16 Mar 2003 09:34:55 +0000 (20:34 +1100)]
PPC32: Set max_pfn correctly.

22 years agoPPC32: Better check for when we should expand the stack.
Paul Mackerras [Sun, 16 Mar 2003 09:33:18 +0000 (20:33 +1100)]
PPC32: Better check for when we should expand the stack.

22 years agoMerge bk://stop.crashing.org/linux-2.5-misc
Paul Mackerras [Sun, 16 Mar 2003 06:27:28 +0000 (17:27 +1100)]
Merge bk://stop.crashing.org/linux-2.5-misc
into samba.org:/home/paulus/kernel/for-linus-ppc

22 years agoMerge samba.org:/home/paulus/kernel/linux-2.5
Paul Mackerras [Sun, 16 Mar 2003 05:15:27 +0000 (16:15 +1100)]
Merge samba.org:/home/paulus/kernel/linux-2.5
into samba.org:/home/paulus/kernel/for-linus-ppc

22 years agoMerge samba.org:/home/paulus/kernel/linux-2.5
Paul Mackerras [Sat, 15 Mar 2003 07:25:40 +0000 (18:25 +1100)]
Merge samba.org:/home/paulus/kernel/linux-2.5
into samba.org:/home/paulus/kernel/for-linus-ppc

22 years agoMerge samba.org:/scratch/anton/linux-2.5
Anton Blanchard [Fri, 14 Mar 2003 23:47:32 +0000 (10:47 +1100)]
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/sfr

22 years ago[PATCH] sg version 3.5.28 for lk 2.5.64
Douglas Gilbert [Fri, 14 Mar 2003 12:56:34 +0000 (06:56 -0600)]
[PATCH] sg version 3.5.28 for lk 2.5.64

Changelog:
   - remove hosts, host_strs and host_hdr from sg's
     procfs interface **
   - add sysfs interface for allow_dio, def_reserved_size
     and version ***
   - switch boot time and module parameters to Rusty's
     moduleparam.h interface. This means, for example,
     the boot time "sg_def_reserved_size" parameter
     changes to "sg.def_reserved_size".

** Christoph moved the host listing functionality into
    a more central sysfs position (i.e. not dependent on
    sg). However scsi_debug is the only LLD that I can
    get to post any "host" info under the new arrangement.

    Should devices, device_strs and device_hdrs also be
    moved out of sg's procfs interface?

*** I find sg's "debug" in its procfs interface very
     useful for debugging (sg itself amongst other things).
     However it does not seem suitable for sysfs. Should
     it move?

22 years ago[PATCH] reduce stack in qlogicfc.c
Randy Dunlap [Fri, 14 Mar 2003 12:54:22 +0000 (06:54 -0600)]
[PATCH] reduce stack in qlogicfc.c

This is a start on reducing the stack usage in qlogicfc.c::
isp2x00_make_portdb().  I think that the stack reduction portion
of it is fine, but I'm concerned about the function returning
early due to kmalloc() failure, without making the port database.

[reduces stack from 0xc38 to 0x34 bytes (P4 UP, gcc 2.96)]

Can anyone suggest way(s) to have the isp2x00_make_portdb() function
called over and over again until it gets its job done?
Or does anyone even still use this driver?

22 years ago[PATCH] scsi_debug in 2.5.64
Douglas Gilbert [Fri, 14 Mar 2003 12:48:23 +0000 (06:48 -0600)]
[PATCH] scsi_debug in 2.5.64

Here is a second attempt to patch scsi_debug in
2.5.64 . My reference version was out of sync in
my previous posting.

Changelog:
   - add recovered error injection (this is a bit
     different to the patch proposed by Kurt Garloff)
   - fix flakiness in scsi_cmnd::result when errors
     are being injected
   - fix medium error injection
   - make "every_nth" writeable in sysfs
   - small re-arrangement of error flags in "opts"
   - clean up some of the naming

Updated http://www.torque.net/sg/sdebug25.html

This patch does not include Mike Anderson's sysfs
probe() cleanup.

In 2.5.64 scsi error handling is flaky and sysfs is
especially flaky in 2.5.64-bk3. I'll send some finding
to the list when things stabilize a bit. [For anyone
who is bored, try following the tortured sequence
of scsi commands generated by the block/sd/mid-level
layers in response to a persistent medium error.]

22 years ago[PATCH] aacraid driver for 2.5
Mark Haverkamp [Fri, 14 Mar 2003 12:45:16 +0000 (06:45 -0600)]
[PATCH] aacraid driver for 2.5

This changes the cmd_per_lun element of the aacraid Scsi_Host_Template
to 1.  The larger number is not needed and exceeds the depth limit for
scsi_adjust_queue_depth.  Also updated struct initializers.

22 years ago[PATCH] Re: hot scsi disk resize
Alex Tomas [Fri, 14 Mar 2003 12:43:43 +0000 (06:43 -0600)]
[PATCH] Re: hot scsi disk resize

Hi!

Here is new version of the patch. All procfs-related stuff has been removed.
One may rescan device size writing something to /sysfs/.../<scsi device>/rescan:

root@zefir:~# echo 1 >/sysfs/bus/scsi/devices/0\:0\:1\:0/rescan
root@zefir:~# dmesg
scsi0:A:1:0: Tagged Queuing enabled.  Depth 64
scsi: host 0 channel 0 id 1 lun16384 has a LUN larger than allowed by the host adapter
SCSI device sda: 2097152 512-byte hdwr sectors (1074 MB)
SCSI device sda: drive cache: write through
 sda: unknown partition table
Attached scsi disk sda at scsi0, channel 0, id 1, lun 0
SCSI device sda: 125829120 512-byte hdwr sectors (64425 MB)
root@zefir:~#

22 years agofix jiffies compare warning in osst
Willem Riede [Fri, 14 Mar 2003 12:41:24 +0000 (06:41 -0600)]
fix jiffies compare warning in osst

On 2003.03.11 14:13 Christoph Hellwig wrote:
>
> --- 1.39/drivers/scsi/osst.c Sun Feb  2 17:50:23 2003
> +++ edited/drivers/scsi/osst.c Mon Mar 10 14:35:46 2003
> @@ -777,7 +777,7 @@
>  #define OSST_POLL_PER_SEC 10
>  static int osst_wait_frame(OS_Scsi_Tape * STp, Scsi_Request ** aSRpnt, int curr, int minlast, int to)
>  {
> - long startwait     = jiffies;
> + unsigned long startwait = jiffies;
>   char  * name          = tape_name(STp);
>  #if DEBUG
>   char notyetprinted = 1;
> @@ -1288,7 +1288,7 @@
>   int             logical_blk_num  = ntohl(STp->buffer->aux->logical_blk_num)
>   - (nframes + pending - 1) * blks_per_frame;
>   char          * name             = tape_name(STp);
> - long startwait        = jiffies;
> + unsigned long startwait        = jiffies;
>  #if DEBUG
>   int dbg              = debugging;
>  #endif
> @@ -1477,7 +1477,7 @@
>   int expected  = 0;
>   int attempts  = 1000 / skip;
>   int flag      = 1;
> - long startwait = jiffies;
> + unsigned long startwait = jiffies;
>  #if DEBUG
>   int dbg       = debugging;
>  #endif
> -

There are five functions that use jiffies. You fixed three of them.
If this change is done (and that's fine with me) it should be done
with this patch:

22 years agoscsi_softirq queue is now list_head, eliminate bh_next
Luben Tuikov [Fri, 14 Mar 2003 12:35:45 +0000 (06:35 -0600)]
scsi_softirq queue is now list_head, eliminate bh_next

The following patch gets rid of softscsi_data struct and
array for the more manageable
static struct list_head done_q[NR_CPUS] __cacheline_aligned;

Thus, scsi_cmnd::bh_next is eliminated, since it was used only
in the scsi softirq processing code.

The comments are updated.

80 chars per line for the affected functions: scsi_done()
and scsi_softirq().

Eliminated is the double loop in scsi_softirq() -- this is
better handled in do_softirq() and gives the system a ``breather''.
(There are pros and cons for either side and if you guys
think that it was better with the double loop, I'll change it and
resubmit the patch.)

22 years ago[PATCH] fix possible NULL pointer dereference in scsi_scan.c
Christoph Hellwig [Fri, 14 Mar 2003 12:11:09 +0000 (06:11 -0600)]
[PATCH] fix possible NULL pointer dereference in scsi_scan.c

If the sdev allocation fails and q is non-null we could dereference
sdev->request_queue.  While at it reformat the function to use
goto-based cleanup - that's much easier to parse.

22 years ago[PATCH] remove scsi_eh_retry_cmd
Andrew Morton [Fri, 14 Mar 2003 12:10:37 +0000 (06:10 -0600)]
[PATCH] remove scsi_eh_retry_cmd

Compile warnings are useful...

22 years agoMerge
Linus Torvalds [Fri, 14 Mar 2003 11:52:58 +0000 (03:52 -0800)]
Merge

22 years ago[PATCH] switch over /proc/bus/i2c to seq_file interface
Christoph Hellwig [Fri, 14 Mar 2003 11:35:40 +0000 (03:35 -0800)]
[PATCH] switch over /proc/bus/i2c to seq_file interface

22 years ago[PATCH] fix up the i2c locking changes
Christoph Hellwig [Fri, 14 Mar 2003 11:35:33 +0000 (03:35 -0800)]
[PATCH] fix up the i2c locking changes

There was one place where we missed an unlock, in addition some more
code cleanups.

22 years ago[PATCH] fix OOPS in i2c sysctl registration
Christoph Hellwig [Fri, 14 Mar 2003 11:35:27 +0000 (03:35 -0800)]
[PATCH] fix OOPS in i2c sysctl registration

I had to rewrite the code from scratch to understand what it does,
but at least it doesn't OOPS anymore on boot..

22 years agoMerge bk://kernel.bkbits.net/jgarzik/random-2.5
Linus Torvalds [Fri, 14 Mar 2003 11:32:59 +0000 (03:32 -0800)]
Merge bk://kernel.bkbits.net/jgarzik/random-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

22 years agoMerge bk://thebsh.namesys.com/bk/reiser3-linux-2.5-relocation-fix
Linus Torvalds [Fri, 14 Mar 2003 10:14:19 +0000 (02:14 -0800)]
Merge bk://thebsh.namesys.com/bk/reiser3-linux-2.5-relocation-fix
into home.transmeta.com:/home/torvalds/v2.5/linux

22 years agoreiserfs: Correctly free all the allocated memory if open of the journal failed.
Oleg Drokin [Fri, 14 Mar 2003 22:17:32 +0000 (01:17 +0300)]
reiserfs: Correctly free all the allocated memory if open of the journal failed.
  Also added \n to some error messages.

22 years ago[PATCH] export platform_bus_type
Jean Tourrilhes [Fri, 14 Mar 2003 10:13:27 +0000 (02:13 -0800)]
[PATCH] export platform_bus_type

22 years ago[PATCH] kNFSd: Introduce CROSSMNT flag for knfsd
Neil Brown [Fri, 14 Mar 2003 10:12:01 +0000 (02:12 -0800)]
[PATCH] kNFSd: Introduce CROSSMNT flag for knfsd

Now that we have working up-calls to userspace,
CROSSMNT makes sense.
If CROSSMNT is set for an export, and we too a
LOOKUP which crosses a mountpoint, we initiate an
upcall to find out if and how that filesystem
is exported.

22 years ago[PATCH] kNFSd: Rename NFSEXP_CROSSMNT to NFSEXP_NOHIDE
Neil Brown [Fri, 14 Mar 2003 10:11:55 +0000 (02:11 -0800)]
[PATCH] kNFSd: Rename NFSEXP_CROSSMNT to NFSEXP_NOHIDE

becase nohide is the user-space visible name
for the flag, and we are about to define a real
CROSSMNT.

22 years ago[PATCH] kNFSd: Assort fixes to nfsd auth cache stuff.
Neil Brown [Fri, 14 Mar 2003 10:11:49 +0000 (02:11 -0800)]
[PATCH] kNFSd: Assort fixes to nfsd auth cache stuff.

1/ call cache_fresh when replacing a cache entry (instead of only
  when updating) so that up-calls waiting on the replaced entry continue.

2/ in svcauth_unix_accept, don't put the verifier until all tests have
   succeeded.

3/ calculate size of request-being-deferred correctly.

22 years ago[PATCH] kNFSd: Fix deadlock problem in lockd.
Neil Brown [Fri, 14 Mar 2003 10:11:42 +0000 (02:11 -0800)]
[PATCH] kNFSd: Fix deadlock problem in lockd.

nlmsvc_lock calls nlmsvc_create_block with file->f_sema
held.
nlmsvc_create_block calls nlmclnt_lookup_host which might
call nlm_gc_hosts which might, eventually, try to claim
file->f_sema for the same file -> deadlock.

nlmsvc_create_block does not need any protection under
any lock as lockd is single-threaded and _create_block
only plays with internal data structures.

So we release the f_sema before calling in, and make sure
it gets claimed again afterwards.

22 years ago[PATCH] kNFSd: Fix race in svcsock.c
Neil Brown [Fri, 14 Mar 2003 10:11:35 +0000 (02:11 -0800)]
[PATCH] kNFSd: Fix race in svcsock.c

From: Trond Myklebust <trond.myklebust@fys.uio.no>

knfsd needs to disable soft interrupts when calling
csum_partial_copy_to_xdr().

At the moment there's a nasty conflict between the RPC server and
client. The problem arises when you get to xdr_partial_copy_from_skb()
(and the kmap_atomic()); the RPC client can end up calling the same
function from a ->data_ready() soft interrupt, and corrupt any data
the knfsd process may have copied.

22 years ago[PATCH] kNFSd: Fix exit-without-free bug in nfsd
Neil Brown [Fri, 14 Mar 2003 10:11:30 +0000 (02:11 -0800)]
[PATCH] kNFSd: Fix exit-without-free bug in nfsd

22 years ago[PATCH] md: Add new superblock format for md
Neil Brown [Fri, 14 Mar 2003 10:09:26 +0000 (02:09 -0800)]
[PATCH] md: Add new superblock format for md

Superblock format '1' resolves a number of issues with
superblock format '0'.
It is more dense and can support many more sub-devices.
It does not contains un-needed redundancy.
It adds a few new useful fields

22 years ago[PATCH] md: Allow md to select between superblock formats
Neil Brown [Fri, 14 Mar 2003 10:09:20 +0000 (02:09 -0800)]
[PATCH] md: Allow md to select between superblock formats

The code to understand a specific superblock format is
already highly localised in md.  This patch defines a
user-space interface for selecting which superblock format
to use, and obeys that selection.

Md currently has a concept of 3 version numbers:
 A major version number
 A minor version number
 A patch version number

There historically seems to be some confusion about whether
these refer to a version of the superblock layout,
or a version of the software.

We will now define that:
   the "major_version" defines the superblock handler.
      '0' is the current superblock format.  All new formats
          will need new numbers.
   the "minor_version" can specify minor variations in the
      superblock, such as different location on the device
   the "patch_version" will be used to indicate new extenstions
      to the software.. patch_version=1 will mean multiple superblock
      support.

A superblock version number is selected by specifing major_version
in SET_ARRAY_INFO ioctl.

This patch:
  Updates Documentation/md.txt with details of new interface.
  Generalises desc_nr handling and makes sure that an array never
  has two devices with the same desc_nr.
  makes sure mddev->major_version is always valid and is 0 by default.
  uses mddev->major_version to select superblock handlers.
  Modifies set_array_info to just record version number if raid_disks==0
  Makes sure max_disks is always set correctly.
  Determines device size when reading superblock, or a hot-add/add-new.

22 years ago[PATCH] md: Allow components of MD raid array to have data start at offset from start...
Neil Brown [Fri, 14 Mar 2003 10:09:13 +0000 (02:09 -0800)]
[PATCH] md: Allow components of MD raid array to have data start at offset from start of device.

Normally the data stored on a component of a RAID array is stored
from the start of the device.  This patch allows a per-device
data_offset so the data can start elsewhere. This will allow
RAID arrays where the metadata is at the head of the device
rather than the tail.

22 years ago[PATCH] md: Fix bad interaction between sync checkpointing and recovery
Neil Brown [Fri, 14 Mar 2003 10:09:06 +0000 (02:09 -0800)]
[PATCH] md: Fix bad interaction between sync checkpointing and recovery

Md devices (raid1/raid5) can resync or recover.
There are similar but importantly different.
resync happens after an unclean shutdown
recovery happens when a failed drive is being replaced by a hot spare.

The sync-checkpoint code confused the two somewhat and this causes
problems.

This patch makes sure "recovery_cp" only relates to resync,
not recovery.
It also fixes a small problem with recording spares in
the superblock.

22 years ago[PATCH] md: Fulltime delayed 'safe_mode' for md
Neil Brown [Fri, 14 Mar 2003 10:09:01 +0000 (02:09 -0800)]
[PATCH] md: Fulltime delayed 'safe_mode' for md

From: Angus Sawyer <angus.sawyer@dsl.pipex.com>

If there are no writes for 20 milliseconds, write out superblock
to mark array as clean.  Write out superblock with
dirty flag before allowing any further write to succeed.

If an md thread gets signaled with SIGKILL, reduce the
delay to 0.

Also tidy up some printk's and make sure writing the
superblock isn't noisy.