08 Aug, 2010

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband: (42 commits)
    IB/qib: Add missing include
    IB/ehca: Drop unnecessary NULL test
    RDMA/nes: Fix confusing if statement indentation
    IB/ehca: Init irq tasklet before irq can happen
    RDMA/nes: Fix misindented code
    RDMA/nes: Fix showing wqm_quanta
    RDMA/nes: Get rid of "set but not used" variables
    RDMA/nes: Read firmware version from correct place
    IB/srp: Export req_lim via sysfs
    IB/srp: Make receive buffer handling more robust
    IB/srp: Use print_hex_dump()
    IB: Rename RAW_ETY to RAW_ETHERTYPE
    RDMA/nes: Fix two sparse warnings
    RDMA/cxgb3: Make needlessly global iwch_l2t_send() static
    IB/iser: Make needlessly global iser_alloc_rx_descriptors() static
    RDMA/cxgb4: Add timeouts when waiting for FW responses
    IB/qib: Fix race between qib_error_qp() and receive packet processing
    IB/qib: Limit the number of packets processed per interrupt
    IB/qib: Allow writes to the diag_counters to be able to clear them
    IB/qib: Set cfgctxts to number of CPUs by default
    ...

    Linus Torvalds
     

05 Aug, 2010

1 commit

  • Change abbreviated IB_QPT_RAW_ETY to IB_QPT_RAW_ETHERTYPE to make
    the special QP type easier to understand.

    cf http://www.mail-archive.com/linux-rdma@vger.kernel.org/msg04530.html

    Signed-off-by: Aleksey Senin
    Signed-off-by: Roland Dreier

    Aleksey Senin
     

29 Jul, 2010

1 commit

  • NULL pointer dereferences in ib_cm_init_qp_attr() were seen by some
    users. From a crash dump, I determined that we died in
    cm_init_qp_rts_attr() (it's inlined, so it doesn't show up in the
    traceback) on the line labeled below:

    static int cm_init_qp_rts_attr(struct cm_id_private *cm_id_priv,
    struct ib_qp_attr *qp_attr,
    int *qp_attr_mask)
    {
    ........
    if (cm_id_priv->id.lap_state == IB_CM_LAP_UNINIT) {
    .....
    } else {
    *qp_attr_mask = IB_QP_ALT_PATH | IB_QP_PATH_MIG_STATE;
    qp_attr->alt_port_num = cm_id_priv->alt_av.port->port_num;
    Reported-by: Josh England
    Signed-off-by: Sean Hefty
    Signed-off-by: Roland Dreier

    Sean Hefty
     

15 Jul, 2010

1 commit


11 Jun, 2010

1 commit


26 May, 2010

2 commits


24 May, 2010

1 commit


22 May, 2010

1 commit

  • Add a new parameter to ib_register_device() so that low-level device
    drivers can pass in a pointer to a callback function that will be
    called for each port that is registered in sysfs. This allows
    low-level device drivers to create files in

    /sys/class/infiniband//ports//

    without having to poke through the internals of the RDMA sysfs handling.

    There is no need for an unregister function since the kobject
    reference will go to zero when ib_unregister_device() is called.

    Signed-off-by: Ralph Campbell
    Signed-off-by: Roland Dreier

    Ralph Campbell
     

16 May, 2010

2 commits


22 Apr, 2010

2 commits

  • Randomize local port allocation in the way sctp_get_port_local() does.
    Update rover at the end of loop since we're likely to pick a valid port
    on the first try.

    Signed-off-by: Tetsuo Handa
    Reviewed-by: Sean Hefty
    Signed-off-by: Roland Dreier

    Tetsuo Handa
     
  • Several RDMA user-access drivers have file_operations structures with
    no .llseek method set. None of the drivers actually do anything with
    f_pos, so this means llseek is essentially a NOP, instead of returning
    an error as leaving other file_operations methods unimplemented would
    do. This is mostly harmless, except that a NULL .llseek means that
    default_llseek() is used, and this function grabs the BKL, which we
    would like to avoid.

    Since llseek does nothing useful on these files, we would like it to
    return an error to userspace instead of silently grabbing the BKL and
    succeeding. For nearly all of the file types, we take the
    belt-and-suspenders approach of setting the .llseek method to
    no_llseek and also calling nonseekable_open(); the exception is the
    uverbs_event files, which are created with anon_inode_getfile(), which
    already sets f_mode the same way as nonseekable_open() would.

    This work is motivated by Arnd Bergmann's bkl-removal tree.

    Signed-off-by: Roland Dreier

    Roland Dreier
     

10 Apr, 2010

2 commits


08 Apr, 2010

1 commit

  • When manually assigning the path records to use for a connection, save
    the number of paths that were set. Otherwise, checks against num_path
    will show 0, even though path record data is available.

    This was discovered by manually setting the path records from user
    space, then querying the kernel to see if the correct path records
    were assigned, only to discover that the kernel returned 0 path
    records to the query.

    Signed-off-by: Sean Hefty
    Signed-off-by: Roland Dreier

    Sean Hefty
     

01 Apr, 2010

1 commit


30 Mar, 2010

1 commit

  • …it slab.h inclusion from percpu.h

    percpu.h is included by sched.h and module.h and thus ends up being
    included when building most .c files. percpu.h includes slab.h which
    in turn includes gfp.h making everything defined by the two files
    universally available and complicating inclusion dependencies.

    percpu.h -> slab.h dependency is about to be removed. Prepare for
    this change by updating users of gfp and slab facilities include those
    headers directly instead of assuming availability. As this conversion
    needs to touch large number of source files, the following script is
    used as the basis of conversion.

    http://userweb.kernel.org/~tj/misc/slabh-sweep.py

    The script does the followings.

    * Scan files for gfp and slab usages and update includes such that
    only the necessary includes are there. ie. if only gfp is used,
    gfp.h, if slab is used, slab.h.

    * When the script inserts a new include, it looks at the include
    blocks and try to put the new include such that its order conforms
    to its surrounding. It's put in the include block which contains
    core kernel includes, in the same order that the rest are ordered -
    alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
    doesn't seem to be any matching order.

    * If the script can't find a place to put a new include (mostly
    because the file doesn't have fitting include block), it prints out
    an error message indicating which .h file needs to be added to the
    file.

    The conversion was done in the following steps.

    1. The initial automatic conversion of all .c files updated slightly
    over 4000 files, deleting around 700 includes and adding ~480 gfp.h
    and ~3000 slab.h inclusions. The script emitted errors for ~400
    files.

    2. Each error was manually checked. Some didn't need the inclusion,
    some needed manual addition while adding it to implementation .h or
    embedding .c file was more appropriate for others. This step added
    inclusions to around 150 files.

    3. The script was run again and the output was compared to the edits
    from #2 to make sure no file was left behind.

    4. Several build tests were done and a couple of problems were fixed.
    e.g. lib/decompress_*.c used malloc/free() wrappers around slab
    APIs requiring slab.h to be added manually.

    5. The script was run on all .h files but without automatically
    editing them as sprinkling gfp.h and slab.h inclusions around .h
    files could easily lead to inclusion dependency hell. Most gfp.h
    inclusion directives were ignored as stuff from gfp.h was usually
    wildly available and often used in preprocessor macros. Each
    slab.h inclusion directive was examined and added manually as
    necessary.

    6. percpu.h was updated not to include slab.h.

    7. Build test were done on the following configurations and failures
    were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
    distributed build env didn't work with gcov compiles) and a few
    more options had to be turned off depending on archs to make things
    build (like ipr on powerpc/64 which failed due to missing writeq).

    * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
    * powerpc and powerpc64 SMP allmodconfig
    * sparc and sparc64 SMP allmodconfig
    * ia64 SMP allmodconfig
    * s390 SMP allmodconfig
    * alpha SMP allmodconfig
    * um on x86_64 SMP allmodconfig

    8. percpu.h modifications were reverted so that it could be applied as
    a separate patch and serve as bisection point.

    Given the fact that I had only a couple of failures from tests on step
    6, I'm fairly confident about the coverage of this conversion patch.
    If there is a breakage, it's likely to be something in one of the arch
    headers which should be easily discoverable easily on most builds of
    the specific arch.

    Signed-off-by: Tejun Heo <tj@kernel.org>
    Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>

    Tejun Heo
     

19 Mar, 2010

1 commit


14 Mar, 2010

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
    RDMA/nes: Fix CX4 link problem in back-to-back configuration
    RDMA/nes: Clear stall bit before destroying NIC QP
    RDMA/nes: Set assume_aligned_header bit
    RDMA/cxgb3: Wait at least one schedule cycle during device removal
    IB/mad: Ignore iWARP devices on device removal
    IPoIB: Include return code in trace message for ib_post_send() failures
    IPoIB: Fix TX queue lockup with mixed UD/CM traffic

    Linus Torvalds
     

12 Mar, 2010

1 commit


08 Mar, 2010

3 commits

  • Constify struct sysfs_ops.

    This is part of the ops structure constification
    effort started by Arjan van de Ven et al.

    Benefits of this constification:

    * prevents modification of data that is shared
    (referenced) by many other structure instances
    at runtime

    * detects/prevents accidental (but not intentional)
    modification attempts on archs that enforce
    read-only kernel data at runtime

    * potentially better optimized code as the compiler
    can assume that the const data cannot be changed

    * the compiler/linker move const data into .rodata
    and therefore exclude them from false sharing

    Signed-off-by: Emese Revfy
    Acked-by: David Teigland
    Acked-by: Matt Domsch
    Acked-by: Maciej Sosnowski
    Acked-by: Hans J. Koch
    Acked-by: Pekka Enberg
    Acked-by: Jens Axboe
    Acked-by: Stephen Hemminger
    Signed-off-by: Greg Kroah-Hartman

    Emese Revfy
     
  • Convert some drivers who export a single string as class attribute
    to the new class_attr_string functions. This removes redundant
    code all over.

    Signed-off-by: Andi Kleen
    Signed-off-by: Greg Kroah-Hartman

    Andi Kleen
     
  • Passing the attribute to the low level IO functions allows all kinds
    of cleanups, by sharing low level IO code without requiring
    an own function for every piece of data.

    Also drivers can extend the attributes with own data fields
    and use that in the low level function.

    This makes the class attributes the same as sysdev_class attributes
    and plain attributes.

    This will allow further cleanups in drivers.

    Full tree sweep converting all users.

    Signed-off-by: Andi Kleen
    Signed-off-by: Greg Kroah-Hartman

    Andi Kleen
     

07 Mar, 2010

1 commit


05 Mar, 2010

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6: (52 commits)
    init: Open /dev/console from rootfs
    mqueue: fix typo "failues" -> "failures"
    mqueue: only set error codes if they are really necessary
    mqueue: simplify do_open() error handling
    mqueue: apply mathematics distributivity on mq_bytes calculation
    mqueue: remove unneeded info->messages initialization
    mqueue: fix mq_open() file descriptor leak on user-space processes
    fix race in d_splice_alias()
    set S_DEAD on unlink() and non-directory rename() victims
    vfs: add NOFOLLOW flag to umount(2)
    get rid of ->mnt_parent in tomoyo/realpath
    hppfs can use existing proc_mnt, no need for do_kern_mount() in there
    Mirror MS_KERNMOUNT in ->mnt_flags
    get rid of useless vfsmount_lock use in put_mnt_ns()
    Take vfsmount_lock to fs/internal.h
    get rid of insanity with namespace roots in tomoyo
    take check for new events in namespace (guts of mounts_poll()) to namespace.c
    Don't mess with generic_permission() under ->d_lock in hpfs
    sanitize const/signedness for udf
    nilfs: sanitize const/signedness in dealing with ->d_name.name
    ...

    Fix up fairly trivial (famous last words...) conflicts in
    drivers/infiniband/core/uverbs_main.c and security/tomoyo/realpath.c

    Linus Torvalds
     

04 Mar, 2010

1 commit


02 Mar, 2010

1 commit


25 Feb, 2010

12 commits