27 Aug, 2007

1 commit

  • While debugging issues with the VDS server I made the
    driver use partition 2 to get at the whole disk since
    this is the "whole disk" partition in the Sun disk
    label.

    We really should use slice 0xff which really means
    the whole physical disk in the VIO disk protocol.
    Otherwise things won't work well on a disk image
    that doesn't have a proper disk label on it.

    Signed-off-by: David S. Miller

    David S. Miller
     

23 Aug, 2007

1 commit

  • Introduce CONFIG_CHECK_SIGNATURE to control inclusion of check_signature()
    and avoid problems on platforms that don't have readb().

    Let the few legacy (ISA || PCI || X86) drivers that need check_signature()
    select CONFIG_CHECK_SIGNATURE.

    Signed-off-by: Geert Uytterhoeven
    Cc: Jeff Dike
    Cc: Heiko Carstens
    Cc: Roman Zippel
    Cc: Alan Cox
    Cc: Martin Schwidefsky
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     

19 Aug, 2007

2 commits


12 Aug, 2007

4 commits


01 Aug, 2007

1 commit

  • There's a memory leak in the cciss driver.

    in alloc_cciss_hba() we may leak sizeof(ctlr_info_t) bytes if a
    call to alloc_disk(1 << NWD_SHIFT) fails.
    This patch should fix the issue.

    Spotted by the Coverity checker.

    Signed-off-by: Jesper Juhl
    Acked-by: Mike Miller
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Juhl
     

30 Jul, 2007

1 commit


27 Jul, 2007

1 commit


24 Jul, 2007

1 commit

  • Some of the code has been gradually transitioned to using the proper
    struct request_queue, but there's lots left. So do a full sweet of
    the kernel and get rid of this typedef and replace its uses with
    the proper type.

    Signed-off-by: Jens Axboe

    Jens Axboe
     

22 Jul, 2007

1 commit

  • Add a Disk Storage Driver for the PS3:
    - Implemented as a block device driver with a dynamic major
    - Disk names (and partitions) are of the format ps3d%c(%u)
    - Uses software scatter-gather with a 64 KiB bounce buffer as the hypervisor
    doesn't support scatter-gather

    Cc: Geoff Levand
    Signed-off-by: Geert Uytterhoeven
    Acked-by: Jens Axboe
    Cc: James Bottomley
    Cc: Paul Mackerras
    Cc: Benjamin Herrenschmidt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     

20 Jul, 2007

5 commits

  • The "id" property in vdc-port nodes are not unique, they
    are all zero. Therefore assign ID's using the parent's
    "cfg-handle" property which will be unique.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Signed-off-by: David S. Miller

    Fabio Massimo Di Nitto
     
  • Slab destructors were no longer supported after Christoph's
    c59def9f222d44bb7e2f0a559f2906191a0862d7 change. They've been
    BUGs for both slab and slub, and slob never supported them
    either.

    This rips out support for the dtor pointer from kmem_cache_create()
    completely and fixes up every single callsite in the kernel (there were
    about 224, not including the slab allocator definitions themselves,
    or the documentation references).

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • Lguest block driver

    A simple block driver for lguest.

    Signed-off-by: Rusty Russell
    Cc: Andi Kleen
    Cc: Jens Axboe
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • Transform some calls to kmalloc/memset to a single kzalloc (or kcalloc).

    Here is a short excerpt of the semantic patch performing
    this transformation:

    @@
    type T2;
    expression x;
    identifier f,fld;
    expression E;
    expression E1,E2;
    expression e1,e2,e3,y;
    statement S;
    @@

    x =
    - kmalloc
    + kzalloc
    (E1,E2)
    ... when != \(x->fld=E;\|y=f(...,x,...);\|f(...,x,...);\|x=E;\|while(...) S\|for(e1;e2;e3) S\)
    - memset((T2)x,0,E1);

    @@
    expression E1,E2,E3;
    @@

    - kzalloc(E1 * E2,E3)
    + kcalloc(E1,E2,E3)

    [akpm@linux-foundation.org: get kcalloc args the right way around]
    Signed-off-by: Yoann Padioleau
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Acked-by: Russell King
    Cc: Bryan Wu
    Acked-by: Jiri Slaby
    Cc: Dave Airlie
    Acked-by: Roland Dreier
    Cc: Jiri Kosina
    Acked-by: Dmitry Torokhov
    Cc: Benjamin Herrenschmidt
    Acked-by: Mauro Carvalho Chehab
    Acked-by: Pierre Ossman
    Cc: Jeff Garzik
    Cc: "David S. Miller"
    Acked-by: Greg KH
    Cc: James Bottomley
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yoann Padioleau
     

19 Jul, 2007

1 commit

  • * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
    [SPARC64]: Set vio->desc_buf to NULL after freeing.
    [SPARC]: Mark sparc and sparc64 as not having virt_to_bus
    [SPARC64]: Fix reset handling in VNET driver.
    [SPARC64]: Handle reset events in vio_link_state_change().
    [SPARC64]: Handle LDC resets properly in domain-services driver.
    [SPARC64]: Massively simplify VIO device layer and support hot add/remove.
    [SPARC64]: Simplify VNET probing.
    [SPARC64]: Simplify VDC device probing.
    [SPARC64]: Add basic infrastructure for MD add/remove notification.

    Linus Torvalds
     

18 Jul, 2007

6 commits

  • The block device frontend driver allows the kernel to access block
    devices exported exported by a virtual machine containing a physical
    block device driver.

    Signed-off-by: Ian Pratt
    Signed-off-by: Christian Limpach
    Signed-off-by: Chris Wright
    Cc: Arjan van de Ven
    Cc: Greg KH
    Cc: Jens Axboe

    Jeremy Fitzhardinge
     
  • We just need to match on the vdc-port nodes, the parent
    is really not interesting at all.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • No need to warn unregister_blkdev() failure by caller. (The previous patch
    makes unregister_blkdev() print error message in error case)

    Acked-by: Grant Likely
    Signed-off-by: Akinobu Mita
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Akinobu Mita
     
  • No need to warn unregister_blkdev() failure by the callers. (The previous
    patch makes unregister_blkdev() print error message in error case)

    Signed-off-by: Akinobu Mita
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Akinobu Mita
     
  • Tested on Xilinx Virtex ppc405, Katmai 440SPe, and Microblaze

    Signed-off-by: Grant Likely
    Acked-by: Stefan Roese
    Cc: Jens Axboe
    Cc: John William
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Grant Likely
     
  • Currently, the freezer treats all tasks as freezable, except for the kernel
    threads that explicitly set the PF_NOFREEZE flag for themselves. This
    approach is problematic, since it requires every kernel thread to either
    set PF_NOFREEZE explicitly, or call try_to_freeze(), even if it doesn't
    care for the freezing of tasks at all.

    It seems better to only require the kernel threads that want to or need to
    be frozen to use some freezer-related code and to remove any
    freezer-related code from the other (nonfreezable) kernel threads, which is
    done in this patch.

    The patch causes all kernel threads to be nonfreezable by default (ie. to
    have PF_NOFREEZE set by default) and introduces the set_freezable()
    function that should be called by the freezable kernel threads in order to
    unset PF_NOFREEZE. It also makes all of the currently freezable kernel
    threads call set_freezable(), so it shouldn't cause any (intentional)
    change of behaviour to appear. Additionally, it updates documentation to
    describe the freezing of tasks more accurately.

    [akpm@linux-foundation.org: build fixes]
    Signed-off-by: Rafael J. Wysocki
    Acked-by: Nigel Cunningham
    Cc: Pavel Machek
    Cc: Oleg Nesterov
    Cc: Gautham R Shenoy
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     

17 Jul, 2007

9 commits

  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (209 commits)
    [POWERPC] Create add_rtc() function to enable the RTC CMOS driver
    [POWERPC] Add H_ILLAN_ATTRIBUTES hcall number
    [POWERPC] xilinxfb: Parameterize xilinxfb platform device registration
    [POWERPC] Oprofile support for Power 5++
    [POWERPC] Enable arbitary speed tty ioctls and split input/output speed
    [POWERPC] Make drivers/char/hvc_console.c:khvcd() static
    [POWERPC] Remove dead code for preventing pread() and pwrite() calls
    [POWERPC] Remove unnecessary #undef printk from prom.c
    [POWERPC] Fix typo in Ebony default DTS
    [POWERPC] Check for NULL ppc_md.init_IRQ() before calling
    [POWERPC] Remove extra return statement
    [POWERPC] pasemi: Don't auto-select CONFIG_EMBEDDED
    [POWERPC] pasemi: Rename platform
    [POWERPC] arch/powerpc/kernel/sysfs.c: Move NUMA exports
    [POWERPC] Add __read_mostly support for powerpc
    [POWERPC] Modify sched_clock() to make CONFIG_PRINTK_TIME more sane
    [POWERPC] Create a dummy zImage if no valid platform has been selected
    [POWERPC] PS3: Bootwrapper support.
    [POWERPC] powermac i2c: Use mutex
    [POWERPC] Schedule removal of arch/ppc
    ...

    Fixed up conflicts manually in:

    Documentation/feature-removal-schedule.txt
    arch/powerpc/kernel/pci_32.c
    arch/powerpc/kernel/pci_64.c
    include/asm-powerpc/pci.h

    and asked the powerpc people to double-check the result..

    Linus Torvalds
     
  • This corrects the following compile error introduced by the merge of the
    new bsg layer in commit e245befce7af0a1e1347079ed62695b059594bd4:

    caglar@zangetsu linux-2.6 $ make
    CHK include/linux/version.h
    CHK include/linux/utsrelease.h
    CALL scripts/checksyscalls.sh
    CHK include/linux/compile.h
    LD drivers/block/built-in.o
    CC [M] drivers/block/cciss.o
    drivers/block/cciss.c: In function `cciss_ioctl':
    drivers/block/cciss.c:1173: warning: passing arg 2 of `scsi_cmd_ioctl' from incompatible pointer type
    drivers/block/cciss.c:1173: warning: passing arg 3 of `scsi_cmd_ioctl' makes pointer from integer without a cast
    drivers/block/cciss.c:1173: warning: passing arg 4 of `scsi_cmd_ioctl' makes integer from pointer without a cast
    drivers/block/cciss.c:1173: error: too few arguments to function `scsi_cmd_ioctl'
    ...
    make[2]: *** [drivers/block/cciss.o] Hata 1
    make[1]: *** [drivers/block] Hata 2
    make: *** [drivers] Hata 2

    Signed-off-by: S.Çağlar Onur
    Cc: Jens Axboe
    Signed-off-by: Linus Torvalds

    S.Çağlar Onur
     
  • * 'bsg' of git://git.kernel.dk/data/git/linux-2.6-block: (25 commits)
    bsg: Kconfig updates
    bsg: add SCSI transport-level request support
    bsg: add bidi support
    add a struct request pointer to the request structure
    bsg: fix the deadlock on discarding done commands
    bsg: fix a blocking read bug
    bsg: minor bug fixes
    improve bsg device allocation
    bind bsg to all SCSI devices
    bsg: bind bsg to request_queue instead of gendisk
    bsg: add a request_queue argument to scsi_cmd_ioctl()
    bsg: simplify __bsg_alloc_command failpath
    bsg: add cheasy error checks for sysfs stuff
    Add queue resizing support
    Replace s32, u32 and u64 with __s32, __u32 and __u64 in bsg.h for userspace
    bsg: silence a bogus gcc warning
    bsg: style cleanup
    bsg: use u32 etc instead of uint32_t
    bsg: add SG_IO to SG v4
    bsg: replace SG v3 with SG v4
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.dk/data/git/linux-2.6-block:
    splice: direct splicing updates ppos twice
    more ACSI removal
    umem: Fix match of pci_ids in umem driver
    umem: Remove references to dead CONFIG_MM_MAP_MEMORY variable
    remove the documentation for the legacy CDROM drivers

    Linus Torvalds
     
  • * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6: (26 commits)
    [SPARC64]: Fix UP build.
    [SPARC64]: dr-cpu unconfigure support.
    [SERIAL]: Fix console write locking in sparc drivers.
    [SPARC64]: Give more accurate errors in dr_cpu_configure().
    [SPARC64]: Clear cpu_{core,sibling}_map[] in smp_fill_in_sib_core_maps()
    [SPARC64]: Fix leak when DR added cpu does not bootup.
    [SPARC64]: Add ->set_affinity IRQ handlers.
    [SPARC64]: Process dr-cpu events in a kthread instead of workqueue.
    [SPARC64]: More sensible udelay implementation.
    [SPARC64]: SMP build fixes.
    [SPARC64]: mdesc.c needs linux/mm.h
    [SPARC64]: Fix build regressions added by dr-cpu changes.
    [SPARC64]: Unconditionally register vio_bus_type.
    [SPARC64]: Initial LDOM cpu hotplug support.
    [SPARC64]: Fix setting of variables in LDOM guest.
    [SPARC64]: Fix MD property lifetime bugs.
    [SPARC64]: Abstract out mdesc accesses for better MD update handling.
    [SPARC64]: Use more mearningful names for IRQ registry.
    [SPARC64]: Initial domain-services driver.
    [SPARC64]: Export powerd facilities for external entities.
    ...

    Linus Torvalds
     
  • sock_xmit() re-implements sigprocmask() and dequeue_signal_lock().

    Signed-off-by: Oleg Nesterov
    Acked-by: Paul Clements
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Oleg Nesterov
     
  • kcdrwd() is a kernel thread, all signals are ignored.

    Signed-off-by: Oleg Nesterov
    Cc: Peter Osterlund
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Oleg Nesterov
     
  • Make some offending drivers depend on it and set CONFIG_ARCH_NO_VIRT_TO_BUS
    for ppc64 so that we don't build those drivers.

    This gets PowerPC allmodconfig and allyesconfig much closer to building.

    Signed-off-by: Stephen Rothwell
    Cc: Al Viro
    Acked-by: David Miller
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stephen Rothwell
     
  • Remove defines of TRUE and FALSE
    * not used in the file
    * the file is not included somewhere else

    Signed-off-by: Richard Knutsson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Knutsson
     

16 Jul, 2007

6 commits

  • This patch removes some code that became dead code after the ATARI_ACSI
    removal.

    It also indirectly fixes the following bug introduced by
    commit c2bcf3b8978c291e1b7f6499475c8403a259d4d6:

    config ATARI_SLM
    tristate "Atari SLM laser printer support"
    - depends on ATARI && ATARI_ACSI!=n
    + depends on ATARI

    Acked-by: Geert Uytterhoeven
    Signed-off-by: Adrian Bunk
    Signed-off-by: Jens Axboe

    Adrian Bunk
     
  • the pci device list for umem was not using PCI_DEVICE, so the
    subvendor/subdevice fields were not set to ANY, so matching
    didn't work properly.

    Change to use PCI_DEVICE.

    Signed-off-by: Neil Brown
    Signed-off-by: Jens Axboe

    Neil Brown
     
  • Signed-off-by: Robert P. J. Day
    Acked-by: NeilBrown
    Signed-off-by: Jens Axboe

    Robert P. J. Day
     
  • Since we have to be able to handle MD updates, having an in-tree
    set of data structures representing the MD objects actually makes
    things more painful.

    The MD itself is easy to parse, and we can implement the existing
    interfaces using direct parsing of the MD binary image.

    The MD is now reference counted, so accesses have to now take the
    form:

    handle = mdesc_grab();

    ... operations on MD ...

    mdesc_release(handle);

    The only remaining issue are cases where code holds on to references
    to MD property values. mdesc_get_property() returns a direct pointer
    to the property value, most cases just pull in the information they
    need and discard the pointer, but there are few that use the pointer
    directly over a long lifetime. Those will be fixed up in a subsequent
    changeset.

    A preliminary handler for MD update events from domain services is
    there, it is rudimentry but it works and handles all of the reference
    counting. It does not check the generation number of the MDs,
    and it does not generate a "add/delete" list for notification to
    interesting parties about MD changes but that will be forthcoming.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Signed-off-by: David S. Miller

    David S. Miller
     
  • bsg uses scsi_cmd_ioctl() for some SCSI/sg ioctl
    commands. scsi_cmd_ioctl() gets a request queue from a gendisk
    arguement. This prevents bsg being bound to SCSI devices that don't
    have a gendisk (like OSD). This adds a request_queue argument to
    scsi_cmd_ioctl(). The SCSI/sg ioctl commands doesn't use a gendisk so
    it's safe for any SCSI devices to use scsi_cmd_ioctl().

    Signed-off-by: FUJITA Tomonori
    Signed-off-by: Jens Axboe

    FUJITA Tomonori