18 Apr, 2006
1 commit
-
Fix a crash when running hpacucli with multiple logical volumes on a cciss
controller. We were not properly initializing the disk->queue and causing
a fault.Thanks to Hasso Tepper for reporting the problem. Thanks to Steve Cameron
for root causing the problem. Most of the patch just moves things around.
The fix is a one-liner.Signed-off-by: Mike Miller
Signed-off-by: Stephen Cameron
Signed-off-by: Andrew Morton
Signed-off-by: Greg Kroah-Hartman
01 Apr, 2006
1 commit
-
The boot cmdline is parsed in parse_early_param() and
parse_args(,unknown_bootoption).And __setup() is used in obsolete_checksetup().
start_kernel()
-> parse_args()
-> unknown_bootoption()
-> obsolete_checksetup()If __setup()'s callback (->setup_func()) returns 1 in
obsolete_checksetup(), obsolete_checksetup() thinks a parameter was
handled.If ->setup_func() returns 0, obsolete_checksetup() tries other
->setup_func(). If all ->setup_func() that matched a parameter returns 0,
a parameter is seted to argv_init[].Then, when runing /sbin/init or init=app, argv_init[] is passed to the app.
If the app doesn't ignore those arguments, it will warning and exit.This patch fixes a wrong usage of it, however fixes obvious one only.
Signed-off-by: OGAWA Hirofumi
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
29 Mar, 2006
7 commits
-
Replace all occurences of 0xff.. in calls to function pci_set_dma_mask()
and pci_set_consistant_dma_mask() with the corresponding DMA_xBIT_MASK from
linux/dma-mapping.h.Signed-off-by: Matthias Gehre
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
They deal with wrapping correctly and are nicer to read.
Signed-off-by: Marcelo Feitoza Parisi
Signed-off-by: Alexey Dobriyan
Cc: Jens Axboe
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
A size_t can't be < 0.
(akpm: and rw_verify_area() already did that check)
Signed-off-by: Adrian Bunk
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
The Coverity checker found this off-by-one error.
Signed-off-by: Adrian Bunk
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
If the user specified `major=0' (odd thing to do), pt.c will use dynamic
allocation. We need to pick up that major for subsequent unregister_chrdev().Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
If the user specified `major=0' (odd thing to do), pg.c will use dynamic
allocation. We need to pick up that major for subsequent unregister_chrdev().Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
It's purely cosmetic, but with the patch there's no longer a
BLK_DEV_RAM_COUNT setting in the .config if BLK_DEV_RAM=n.Signed-off-by: Adrian Bunk
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
27 Mar, 2006
7 commits
-
this patch removes a warning about an unused label, by
moving the label into the ifdef.Signed-off-by: Eric Sesterhenn
Signed-off-by: Jens Axboe -
this patch converts drivers/block to kzalloc usage.
Compile tested with allyesconfig.Signed-off-by: Eric Sesterhenn
Signed-off-by: Jens Axboe -
Modify well over a dozen mempool users to call mempool_create_slab_pool()
rather than calling mempool_create() with extra arguments, saving about 30
lines of code and increasing readability.Signed-off-by: Matthew Dobson
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
This patch changes several mempool users, all of which are basically just
wrappers around kmalloc(), to use the common mempool_kmalloc/kfree, rather
than their own wrapper function, removing a bunch of duplicated code.Signed-off-by: Matthew Dobson
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Cc: Al Viro
Cc: Christoph Hellwig
Cc: Zdenek Pavlas
Signed-off-by: H. Peter Anvin
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Check that kernel_thread() succeeded, so we don't wait for something which
cannot happen.Signed-off-by: Herbert Poetzl
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
free_irq() should not be executed from softirq context.
Found by the lock validator. The fix is to push fd_free_irq() into
keventd. The code validates fine with this patch applied.(akpm: this is revolting, but so is floppy.c)
[akpm@osdl.org: added flush_scheduled_work()]
Signed-off-by: Ingo Molnar
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
26 Mar, 2006
6 commits
-
* master.kernel.org:/pub/scm/linux/kernel/git/gregkh/aoe-2.6:
[PATCH] aoe [3/3]: update version to 22
[PATCH] aoe [2/3]: don't request ATA device ID on ATA error
[PATCH] aoe [1/3]: support multiple AoE listeners
[PATCH] aoe: do not stop retransmit timer when device goes down
[PATCH] aoe [8/8]: update driver version number
[PATCH] aoe [7/8]: update driver compatibility string
[PATCH] aoe [6/8]: update device information on last close
[PATCH] aoe [5/8]: allow network interface migration on packet retransmit
[PATCH] aoe [4/8]: use less confusing driver name
[PATCH] aoe [3/8]: increase allowed outstanding packets
[PATCH] aoe [2/8]: support dynamic resizing of AoE devices
[PATCH] aoe [1/8]: zero packet data after skb allocation -
* git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial: (21 commits)
BUG_ON() Conversion in drivers/video/
BUG_ON() Conversion in drivers/parisc/
BUG_ON() Conversion in drivers/block/
BUG_ON() Conversion in sound/sparc/cs4231.c
BUG_ON() Conversion in drivers/s390/block/dasd.c
BUG_ON() Conversion in lib/swiotlb.c
BUG_ON() Conversion in kernel/cpu.c
BUG_ON() Conversion in ipc/msg.c
BUG_ON() Conversion in block/elevator.c
BUG_ON() Conversion in fs/coda/
BUG_ON() Conversion in fs/binfmt_elf_fdpic.c
BUG_ON() Conversion in input/serio/hil_mlc.c
BUG_ON() Conversion in md/dm-hw-handler.c
BUG_ON() Conversion in md/bitmap.c
The comment describing how MS_ASYNC works in msync.c is confusing
rcu: undeclared variable used in documentation
fix typos "wich" -> "which"
typo patch for fs/ufs/super.c
Fix simple typos
tabify drivers/char/Makefile
... -
Initramfs initrd images do not need a ramdisk device, so remove this
restriction in Kconfig. BLK_DEV_RAM=n saves about 13k on i386. Also
without ramdisk device there's no need for "dry run", so initramfs unpacks
much faster.People using cramfs, squashfs, or gzipped ext2/minix initrd images are
probably smart enough not to turn off ramdisk support by accident.Cc: Al Viro
Cc: Christoph Hellwig
Cc: "H. Peter Anvin"
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
In latest -mm a number of section mismatch warnings are generated for
floppy.o like the following:WARNING: drivers/block/floppy.o - Section mismatch: reference to \
.init.data: from .text between 'init_module' (at offset 0x6976) and \
'cleanup_module'The warning are caused by a reference to floppy_init() which is __init from
init_module() which is not declared __init. Declaring init_module() _init
fixes this.Signed-off-by: Sam Ravnborg
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
MODULE_PARM was actually breaking: recent gcc version optimize them out as
unused. It's time to replace the last users, which are generally in the
most unloved drivers anyway.Signed-off-by: Rusty Russell
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
If we can detect a problem at compile time, the compilation should fail.
Signed-off-by: Adrian Bunk
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
25 Mar, 2006
1 commit
-
this changes if() BUG(); constructs to BUG_ON() which is
cleaner, contains unlikely() and can better optimized away.Signed-off-by: Eric Sesterhenn
Signed-off-by: Adrian Bunk
24 Mar, 2006
16 commits
-
Fixes for annoying gcc-4.1 compile warnings "value computed not used".
Simply cast to void.(akpm: Linus will go ballistic...)
Signed-off-by: Takashi Iwai
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
We need set_page_dirty() to return true if it actually transitioned the page
from a clean to dirty state. This wasn't right in a couple of places. Do a
kernel-wide audit, fix things up.This leaves open the possibility of returning a negative errno from
set_page_dirty() sometime in the future. But we don't do that at present.Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
floppy98 went out together with the rest of PC98 subarch. Remove stale
Makefile entry that remained.Signed-off-by: Arthur Othieno
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Increase version number to 22.
Signed-off-by: "Ed L. Cashin"
-
On an ATA error response, take the device down instead of
sending another ATA device identify command.Signed-off-by: "Ed L. Cashin"
-
Always clone incoming skbs, allowing other AoE listeners
to exist in the kernel.Signed-off-by: "Ed L. Cashin"
Signed-off-by: Greg Kroah-Hartman -
This patch is a bugfix that follows and depends on the
eight aoe driver patches sent January 19th.Signed-off-by: "Ed L. Cashin"
Signed-off-by: Greg Kroah-Hartman -
Update aoe driver version number.
Signed-off-by: "Ed L. Cashin"
Signed-off-by: Greg Kroah-Hartman -
The aoe driver is not compatible with 2.6 kernels older
than 2.6.2.Signed-off-by: "Ed L. Cashin"
Signed-off-by: Greg Kroah-Hartman -
Instead of making the user wait or do it manually, refresh
device information on its last close by issuing a config
query to the device.Signed-off-by: "Ed L. Cashin"
Signed-off-by: Greg Kroah-Hartman -
Retransmit to the current network interface for an AoE device.
Signed-off-by: "Ed L. Cashin"
-
Users were confused by the driver being called "aoe-2.6-$version".
This form looks less like a Linux kernel version number.Signed-off-by: "Ed L. Cashin"
Signed-off-by: Greg Kroah-Hartman -
Increase the number of AoE packets per device that can be outstanding
at one time, increasing performance.Signed-off-by: "Ed L. Cashin"
Signed-off-by: Greg Kroah-Hartman -
Allow the driver to recognize AoE devices that have changed size.
Devices not in use are updated automatically, and devices that are in
use are updated at user request.Signed-off-by: "Ed L. Cashin"
Signed-off-by: Greg Kroah-Hartman -
Zero the data in new socket buffers to prevent leaking information.
Signed-off-by: "Ed L. Cashin"
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Jens Axboe
23 Mar, 2006
1 commit
-
Semaphore to mutex conversion.
The conversion was generated via scripts, and the result was validated
automatically via a script as well.Signed-off-by: Ingo Molnar
Cc: Paul Clements
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds