03 Mar, 2007

1 commit


02 Mar, 2007

1 commit


21 Feb, 2007

2 commits


15 Feb, 2007

1 commit

  • After Al Viro (finally) succeeded in removing the sched.h #include in module.h
    recently, it makes sense again to remove other superfluous sched.h includes.
    There are quite a lot of files which include it but don't actually need
    anything defined in there. Presumably these includes were once needed for
    macros that used to live in sched.h, but moved to other header files in the
    course of cleaning it up.

    To ease the pain, this time I did not fiddle with any header files and only
    removed #includes from .c-files, which tend to cause less trouble.

    Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
    arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
    allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
    configs in arch/arm/configs on arm. I also checked that no new warnings were
    introduced by the patch (actually, some warnings are removed that were emitted
    by unnecessarily included header files).

    Signed-off-by: Tim Schmielau
    Acked-by: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tim Schmielau
     

13 Feb, 2007

1 commit

  • Many struct file_operations in the kernel can be "const". Marking them const
    moves these to the .rodata section, which avoids false sharing with potential
    dirty data. In addition it'll catch accidental writes at compile time to
    these shared resources.

    Signed-off-by: Arjan van de Ven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arjan van de Ven
     

12 Feb, 2007

5 commits

  • * master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (97 commits)
    [SCSI] zfcp: removed wrong comment
    [SCSI] zfcp: use of uninitialized variable
    [SCSI] zfcp: Invalid locking order
    [SCSI] aic79xx: use dma_get_required_mask()
    [SCSI] aic79xx: fix bracket mismatch in unused macro
    [SCSI] BusLogic: Replace 'boolean' by 'bool'
    [SCSI] advansys: clean up warnings
    [SCSI] 53c7xx: brackets fix in uncompiled code
    [SCSI] nsp_cs: remove old scsi code
    [SCSI] aic79xx: make ahd_match_scb() static
    [SCSI] DAC960: kmalloc->kzalloc/Casting cleanups
    [SCSI] scsi_kmap_atomic_sg(): check that local irqs are disabled
    [SCSI] Buslogic: local_irq_disable() is redundant after local_irq_save()
    [SCSI] aic94xx: update for v28 firmware
    [SCSI] scsi_error: Fix lost EH commands
    [SCSI] aic94xx: Add default bus reset handler
    [SCSI] aic94xx: Remove TMF result code munging
    [SCSI] libsas: Add an LU reset mechanism to the error handler
    [SCSI] libsas: Don't BUG when connecting two expanders via wide port
    [SCSI] st: fix Tape dies if wrong block size used, bug 7919
    ...

    Linus Torvalds
     
  • Converts 'boolean' to 'bool' and removes the 'boolean' typedef.

    Signed-off-by: Richard Knutsson
    Cc: Jens Axboe
    Cc: James Bottomley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Knutsson
     
  • Remove the unused kernel config option PARIDE_PARPORT.

    Signed-off-by: Robert P. J. Day
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Robert P. J. Day
     
  • - update documentation

    - use clear_bdi_congested/set_bdi_congested functions directly instead of
    old wrappers

    - removed DECLARE_BUF_AS_STRING macro

    Signed-off-by: Thomas Maier
    Cc: Peter Osterlund
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thomas Maier
     
  • The file init/initramfs.c is always compiled and linked in the kernel
    vmlinux even when BLK_DEV_RAM and BLK_DEV_INITRD are disabled and the
    system isn't using any form of an initramfs or initrd. In this situation
    the code is only used to unpack a (static) default initial rootfilesystem.
    The current init/initramfs.c code. usr/initramfs_data.o compiles to a size
    of ~15 kbytes. Disabling BLK_DEV_RAM and BLK_DEV_INTRD shrinks the kernel
    code size with ~60 Kbytes.

    This patch avoids compiling in the code and data for initramfs support if
    CONFIG_BLK_DEV_INITRD is not defined. Instead of the initramfs code and
    data it uses a small routine in init/noinitramfs.c to setup an initial
    static default environment for mounting a rootfilesystem later on in the
    kernel initialisation process. The new code is: 164 bytes of size.

    The patch is separated in two parts:
    1) doesn't compile initramfs code when CONFIG_BLK_DEV_INITRD is not set
    2) changing all plaforms vmlinux.lds.S files to not reserve an area of
    PAGE_SIZE when CONFIG_BLK_DEV_INITRD is not set.

    [deweerdt@free.fr: warning fix]
    Signed-off-by: Jean-Paul Saman
    Cc: Al Viro
    Cc:
    Signed-off-by: Frederik Deweerdt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jean-Paul Saman
     

08 Feb, 2007

1 commit


06 Jan, 2007

1 commit

  • Fix http://bugzilla.kernel.org/show_bug.cgi?id=7667

    This is because the packet driver tries to send down read/write BLOCK_PC
    commands that don't use a bio and do not use sg lists.

    The right fix is to replace all the packet_command stuff in the packet
    driver by scsi_execute() which needs to be lifted from scsi code to
    the block code for that.

    Fix the bug for now. It's not the full way to a generic execute block pc
    infrastcuture but fixes the bug for the time being.

    Signed-off-by: Christoph Hellwig
    Acked-by: Peter Osterlund
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     

31 Dec, 2006

1 commit

  • RAID_UNKNOWN is used even when PROC_FS=n, so move it outside of the
    CONFIG_PROC_FS block.

    drivers/block/cciss.c:1910: error: 'RAID_UNKNOWN' undeclared (first use in this function)

    Signed-off-by: Randy Dunlap
    Cc:
    Cc: Jens Axboe
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     

23 Dec, 2006

1 commit

  • Fix a bug that only appears when AoE goes over a network card that does not
    support scatter-gather. The headers in the linear part of the skb appeared
    to be larger than they really were, resulting in data that was offset by 24
    bytes.

    This patch eliminates the offset data on cards that don't support
    scatter-gather or have had scatter-gather turned off. There remains an
    unrelated issue that I'll address in a separate email.

    Fixes bugzilla #7662

    Signed-off-by: "Ed L. Cashin"
    Cc:
    Cc: Greg KH
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ed L. Cashin
     

21 Dec, 2006

1 commit

  • * 'for-linus' of git://brick.kernel.dk/data/git/linux-2.6-block:
    [PATCH] block: document io scheduler allow_merge_fn hook
    [PATCH] cfq-iosched: don't allow sync merges across queues
    [PATCH] Fixup blk_rq_unmap_user() API
    [PATCH] __blk_rq_unmap_user() fails to return error
    [PATCH] __blk_rq_map_user() doesn't need to grab the queue_lock
    [PATCH] Remove queue merging hooks
    [PATCH] ->nr_sectors and ->hard_nr_sectors are not used for BLOCK_PC requests
    [PATCH] cciss: fix XFER_READ/XFER_WRITE in do_cciss_request
    [PATCH] cciss: set default raid level when reading geometry fails

    Linus Torvalds
     

20 Dec, 2006

1 commit


18 Dec, 2006

2 commits

  • This patch fixes a stupid bug. Sometime during the 2tb enhancement I ended up
    replacing the macros XFER_READ and XFER_WRITE with h->cciss_read and
    h->cciss_write respectively. It seemed to work somehow at least on x86_64 and
    ia64. I don't know how. But people started complaining about command timeouts
    on older controllers like the 64xx series and only on ia32. This resolves the
    issue reproduced in our lab. Please consider this for inclusion.

    Thanks,
    mikem

    Signed-off-by: Mike Miller
    Signed-off-by: Jens Axboe

    Mike Miller
     
  • This patch sets a default raid level on a volume that either does not support
    reading the geometry or reports an invalid geometry for whatever reason. We
    were always setting some values for heads and sectors but never set a raid
    level. This caused lots of problems on some buggy firmware. Please consider
    this for inclusion.

    Thanks,
    mikem

    Signed-off-by: Mike Miller
    Signed-off-by: Jens Axboe

    Mike Miller
     

14 Dec, 2006

5 commits

  • * 'for-linus' of git://brick.kernel.dk/data/git/linux-2.6-block:
    [PATCH] Fixup cciss error handling
    [PATCH] Allow as-iosched to be unloaded
    [PATCH 2/2] cciss: remove calls to pci_disable_device
    [PATCH 1/2] cciss: map out more memory for config table
    [PATCH] Propagate down request sync flag

    Resolve trivial whitespace conflict in drivers/block/cciss.c manually.

    Linus Torvalds
     
  • Run this:

    #!/bin/sh
    for f in $(grep -Erl "\([^\)]*\) *k[cmz]alloc" *) ; do
    echo "De-casting $f..."
    perl -pi -e "s/ ?= ?\([^\)]*\) *(k[cmz]alloc) *\(/ = \1\(/" $f
    done

    And then go through and reinstate those cases where code is casting pointers
    to non-pointers.

    And then drop a few hunks which conflicted with outstanding work.

    Cc: Russell King , Ian Molton
    Cc: Mikael Starvik
    Cc: Yoshinori Sato
    Cc: Roman Zippel
    Cc: Geert Uytterhoeven
    Cc: Ralf Baechle
    Cc: Paul Mackerras
    Cc: Kyle McMartin
    Cc: Benjamin Herrenschmidt
    Cc: Martin Schwidefsky
    Cc: "David S. Miller"
    Cc: Jeff Dike
    Cc: Greg KH
    Cc: Jens Axboe
    Cc: Paul Fulghum
    Cc: Alan Cox
    Cc: Karsten Keil
    Cc: Mauro Carvalho Chehab
    Cc: Jeff Garzik
    Cc: James Bottomley
    Cc: Ian Kent
    Cc: Steven French
    Cc: David Woodhouse
    Cc: Neil Brown
    Cc: Jaroslav Kysela
    Cc: Takashi Iwai
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Robert P. J. Day
     
  • The BLK_DEV_SWIM_IOP driver has:
    - already been marked as BROKEN in 2.6.0 three years ago and
    - is still marked as BROKEN.

    Drivers that had been marked as BROKEN for such a long time seem to be
    unlikely to be revived in the forseeable future.

    But if anyone wants to ever revive this driver, the code is still
    present in the older kernel releases.

    Signed-off-by: Adrian Bunk
    Cc: Jens Axboe
    Acked-by: Geert Uytterhoeven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Remove calls to pci_disable_device except in fail_all_cmds. The
    pci_disable_device function does something nasty to Smart Array controllers
    that pci_enable_device does not undo. So if the driver is unloaded it
    cannot be reloaded.

    Also, customers can disable any pci device via the ROM Based Setup Utility
    (RBSU). If the customer has disabled the controller we should not try to
    blindly enable the card from the driver. Please consider this for
    inclusion.

    Signed-off-by: Mike Miller
    Acked-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Miller
     
  • Map out more memory for our config table. It's required to reach offset
    0x214 to disable DMA on the P600. I'm not sure how I lost this hunk.
    Please consider this for inclusion.

    Signed-off-by: Mike Miller
    Cc: Jens Axboe
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Miller
     

13 Dec, 2006

3 commits

  • The previous cciss commit removed the err_out_disable_pdev label, but
    there was still a user of that. Fix that up.

    Signed-off-by: Jens Axboe

    Jens Axboe
     
  • This patch removes calls to pci_disable_device except in fail_all_cmds. The
    pci_disable_device function does something nasty to Smart Array controllers
    that pci_enable_device does not undo. So if the driver is unloaded it cannot be
    reloaded.

    Also, customers can disable any pci device via the ROM Based Setup Utility
    (RBSU). If the customer has disabled the controller we should not try to
    blindly enable the card from the driver. Please consider this for inclusion.

    Signed-off-by: Mike Miller
    Acked-by: Alan Cox
    Signed-off-by: Jens Axboe

    mike.miller@hp.com
     
  • This patch maps out more memory for our config table. It's required to reach
    offset 0x214 to disable DMA on the P600. I'm not sure how I lost this hunk.
    Please consider this for inclusion.

    Signed-off-by: Mike Miller
    Signed-off-by: Jens Axboe

    mike.miller@hp.com
     

09 Dec, 2006

6 commits


08 Dec, 2006

7 commits

  • * master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (48 commits)
    [NETFILTER]: Fix non-ANSI func. decl.
    [TG3]: Identify Serdes devices more clearly.
    [TG3]: Use msleep.
    [TG3]: Use netif_msg_*.
    [TG3]: Allow partial speed advertisement.
    [TG3]: Add TG3_FLG2_IS_NIC flag.
    [TG3]: Add 5787F device ID.
    [TG3]: Fix Phy loopback.
    [WANROUTER]: Kill kmalloc debugging code.
    [TCP] inet_twdr_hangman: Delete unnecessary memory barrier().
    [NET]: Memory barrier cleanups
    [IPSEC]: Fix inetpeer leak in ipv4 xfrm dst entries.
    audit: disable ipsec auditing when CONFIG_AUDITSYSCALL=n
    audit: Add auditing to ipsec
    [IRDA] irlan: Fix compile warning when CONFIG_PROC_FS=n
    [IrDA]: Incorrect TTP header reservation
    [IrDA]: PXA FIR code device model conversion
    [GENETLINK]: Fix misplaced command flags.
    [NETLIK]: Add a pointer to the Generic Netlink wiki page.
    [IPV6] RAW: Don't release unlocked sock.
    ...

    Linus Torvalds
     
  • Allow nbd to expose the nbd-client daemon's PID in /sys/block/nbd/pid.

    This is helpful for tracking connection status of a device and for
    determining which nbd devices are currently in use.

    Signed-off-by: Paul Clements
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Clements
     
  • Let's remove this pre-historic paride building script.

    Signed-off-by: Adrian Bunk
    Acked-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • CONFIG_PARIDE depends on CONFIG_PARPORT_PC, so there's no reason for
    these #ifdef's.

    Signed-off-by: Adrian Bunk
    Acked-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Building CCISS SCSI tape support in-kernel when SCSI=m causes build errors,
    so require SCSI support to be =y or same as CCISS SCSI tape support.

    drivers/built-in.o: In function `cciss_remove_one':
    cciss.c:(.text+0x79d4c): undefined reference to `scsi_remove_host'
    cciss.c:(.text+0x79d55): undefined reference to `scsi_host_put'
    drivers/built-in.o: In function `cciss_update_non_disk_devices':
    cciss.c:(.text+0x7bb54): undefined reference to `scsi_device_type'
    cciss.c:(.text+0x7bcc8): undefined reference to `scsi_device_type'
    cciss.c:(.text+0x7be81): undefined reference to `scsi_device_type'
    cciss.c:(.text+0x7bf81): undefined reference to `scsi_device_type'
    drivers/built-in.o: In function `cciss_proc_write':
    cciss.c:(.text+0x7c175): undefined reference to `scsi_host_alloc'
    cciss.c:(.text+0x7c1ed): undefined reference to `scsi_add_host'
    cciss.c:(.text+0x7c1f9): undefined reference to `scsi_scan_host'
    cciss.c:(.text+0x7c206): undefined reference to `scsi_host_put'
    make: *** [.tmp_vmlinux1] Error 1

    Signed-off-by: Randy Dunlap
    Acked-by: Mike Miller
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • This patch makes module init return proper value instead of -1 (-EPERM).

    Cc: Tim Waugh
    Signed-off-by: Akinobu Mita
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Akinobu Mita
     
  • paride_register() returns 1 on success, 0 on failure and module init
    code looks like

    static int __init foo_init(void)
    {
    return paride_register(&foo) - 1;
    }

    which is not what one get used to. Converted to usual 0/-E convention.

    In case of kbic driver, unwind registration. It was just

    return (paride_register(&k951)||paride_register(&k971))-1;

    Signed-off-by: Alexey Dobriyan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan