06 Aug, 2015

1 commit

  • With well over 200+ users of this api, there are a mere 12 users that
    actually checked the return value of this function. And all of them
    really didn't do anything with that information as the system or module
    was shutting down no matter what.

    So stop pretending like it matters, and just return void from
    misc_deregister(). If something goes wrong in the call, you will get a
    WARNING splat in the syslog so you know how to fix up your driver.
    Other than that, there's nothing that can go wrong.

    Cc: Alasdair Kergon
    Cc: Neil Brown
    Cc: Oleg Drokin
    Cc: Andreas Dilger
    Cc: "Michael S. Tsirkin"
    Cc: Wim Van Sebroeck
    Cc: Christine Caulfield
    Cc: David Teigland
    Cc: Mark Fasheh
    Acked-by: Joel Becker
    Acked-by: Alexandre Belloni
    Acked-by: Alessandro Zummo
    Acked-by: Mike Snitzer
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

07 Jul, 2015

1 commit

  • The header socklnd.h includes irq.h which is not need
    and doesn't exist in the OpenSFS lustre branch. Having
    irq.h in socklnd.h does break the build on the m68k
    platform. So we can safely remove it.

    Signed-off-by: James Simmons
    Tested-by: Guenter Roeck
    Tested-by: by: Geert Uytterhoeven
    Signed-off-by: Greg Kroah-Hartman

    James Simmons
     

27 Jun, 2015

1 commit

  • Pull staging driver updates from Greg KH:
    "Here's the big, really big, staging tree patches for 4.2-rc1.

    Loads of stuff in here, almost all just coding style fixes / churn,
    and a few new drivers as well, one of which I just disabled from the
    build a few minutes ago due to way too many build warnings.

    Other than the one "disable this driver" patch, all of these have been
    in linux-next for quite a while with no reported issues"

    * tag 'staging-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (1163 commits)
    staging: wilc1000: disable driver due to build warnings
    Staging: rts5208: fix CHANGE_LINK_STATE value
    Staging: sm750fb: ddk750_swi2c.c: Insert spaces before parenthesis
    Staging: sm750fb: ddk750_swi2c.c: Place braces on correct lines
    Staging: sm750fb: ddk750_swi2c.c: Insert spaces around operators
    Staging: sm750fb: ddk750_swi2c.c: Replace spaces with tabs
    Staging: sm750fb: ddk750_swi2c.h: Shorten lines to under 80 characters
    Staging: sm750fb: ddk750_swi2c.h: Replace spaces with tabs
    Staging: sm750fb: modedb.h: Shorten lines to under 80 characters
    Staging: sm750fb: modedb.h: Replace spaces with tabs
    staging: comedi: addi_apci_3120: rename 'this_board' variables
    staging: comedi: addi_apci_1516: rename 'this_board' variables
    staging: comedi: ni_atmio: cleanup ni_getboardtype()
    staging: comedi: vmk80xx: sanity check context used to get the boardinfo
    staging: comedi: vmk80xx: rename 'boardinfo' variables
    staging: comedi: dt3000: rename 'this_board' variables
    staging: comedi: adv_pci_dio: rename 'this_board' variables
    staging: comedi: cb_pcidas64: rename 'thisboard' variables
    staging: comedi: cb_pcidas: rename 'thisboard' variables
    staging: comedi: me4000: rename 'thisboard' variables
    ...

    Linus Torvalds
     

26 Jun, 2015

1 commit

  • Pull cgroup writeback support from Jens Axboe:
    "This is the big pull request for adding cgroup writeback support.

    This code has been in development for a long time, and it has been
    simmering in for-next for a good chunk of this cycle too. This is one
    of those problems that has been talked about for at least half a
    decade, finally there's a solution and code to go with it.

    Also see last weeks writeup on LWN:

    http://lwn.net/Articles/648292/"

    * 'for-4.2/writeback' of git://git.kernel.dk/linux-block: (85 commits)
    writeback, blkio: add documentation for cgroup writeback support
    vfs, writeback: replace FS_CGROUP_WRITEBACK with SB_I_CGROUPWB
    writeback: do foreign inode detection iff cgroup writeback is enabled
    v9fs: fix error handling in v9fs_session_init()
    bdi: fix wrong error return value in cgwb_create()
    buffer: remove unusued 'ret' variable
    writeback: disassociate inodes from dying bdi_writebacks
    writeback: implement foreign cgroup inode bdi_writeback switching
    writeback: add lockdep annotation to inode_to_wb()
    writeback: use unlocked_inode_to_wb transaction in inode_congested()
    writeback: implement unlocked_inode_to_wb transaction and use it for stat updates
    writeback: implement [locked_]inode_to_wb_and_lock_list()
    writeback: implement foreign cgroup inode detection
    writeback: make writeback_control track the inode being written back
    writeback: relocate wb[_try]_get(), wb_put(), inode_{attach|detach}_wb()
    mm: vmscan: disable memcg direct reclaim stalling if cgroup writeback support is in use
    writeback: implement memcg writeback domain based throttling
    writeback: reset wb_domain->dirty_limit[_tstmp] when memcg domain size changes
    writeback: implement memcg wb_domain
    writeback: update wb_over_bg_thresh() to use wb_domain aware operations
    ...

    Linus Torvalds
     

24 Jun, 2015

1 commit

  • Pull rdma updates from Doug Ledford:

    - a large cleanup of how device capabilities are checked for various
    features

    - additional cleanups in the MAD processing

    - update to the srp driver

    - creation and use of centralized log message helpers

    - add const to a number of args to calls and clean up call chain

    - add support for extended cq create verb

    - add support for timestamps on cq completion

    - add support for processing OPA MAD packets

    * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma: (92 commits)
    IB/mad: Add final OPA MAD processing
    IB/mad: Add partial Intel OPA MAD support
    IB/mad: Add partial Intel OPA MAD support
    IB/core: Add OPA MAD core capability flag
    IB/mad: Add support for additional MAD info to/from drivers
    IB/mad: Convert allocations from kmem_cache to kzalloc
    IB/core: Add ability for drivers to report an alternate MAD size.
    IB/mad: Support alternate Base Versions when creating MADs
    IB/mad: Create a generic helper for DR forwarding checks
    IB/mad: Create a generic helper for DR SMP Recv processing
    IB/mad: Create a generic helper for DR SMP Send processing
    IB/mad: Split IB SMI handling from MAD Recv handler
    IB/mad cleanup: Generalize processing of MAD data
    IB/mad cleanup: Clean up function params -- find_mad_agent
    IB/mlx4: Add support for CQ time-stamping
    IB/mlx4: Add mmap call to map the hardware clock
    IB/core: Pass hardware specific data in query_device
    IB/core: Add timestamp_mask and hca_core_clock to query_device
    IB/core: Extend ib_uverbs_create_cq
    IB/core: Add CQ creation time-stamping flag
    ...

    Linus Torvalds
     

23 Jun, 2015

1 commit

  • Pull scheduler updates from Ingo Molnar:
    "The main changes are:

    - lockless wakeup support for futexes and IPC message queues
    (Davidlohr Bueso, Peter Zijlstra)

    - Replace spinlocks with atomics in thread_group_cputimer(), to
    improve scalability (Jason Low)

    - NUMA balancing improvements (Rik van Riel)

    - SCHED_DEADLINE improvements (Wanpeng Li)

    - clean up and reorganize preemption helpers (Frederic Weisbecker)

    - decouple page fault disabling machinery from the preemption
    counter, to improve debuggability and robustness (David
    Hildenbrand)

    - SCHED_DEADLINE documentation updates (Luca Abeni)

    - topology CPU masks cleanups (Bartosz Golaszewski)

    - /proc/sched_debug improvements (Srikar Dronamraju)"

    * 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (79 commits)
    sched/deadline: Remove needless parameter in dl_runtime_exceeded()
    sched: Remove superfluous resetting of the p->dl_throttled flag
    sched/deadline: Drop duplicate init_sched_dl_class() declaration
    sched/deadline: Reduce rq lock contention by eliminating locking of non-feasible target
    sched/deadline: Make init_sched_dl_class() __init
    sched/deadline: Optimize pull_dl_task()
    sched/preempt: Add static_key() to preempt_notifiers
    sched/preempt: Fix preempt notifiers documentation about hlist_del() within unsafe iteration
    sched/stop_machine: Fix deadlock between multiple stop_two_cpus()
    sched/debug: Add sum_sleep_runtime to /proc//sched
    sched/debug: Replace vruntime with wait_sum in /proc/sched_debug
    sched/debug: Properly format runnable tasks in /proc/sched_debug
    sched/numa: Only consider less busy nodes as numa balancing destinations
    Revert 095bebf61a46 ("sched/numa: Do not move past the balance point if unbalanced")
    sched/fair: Prevent throttling in early pick_next_task_fair()
    preempt: Reorganize the notrace definitions a bit
    preempt: Use preempt_schedule_context() as the official tracing preemption point
    sched: Make preempt_schedule_context() function-tracing safe
    x86: Remove cpu_sibling_mask() and cpu_core_mask()
    x86: Replace cpu_**_mask() with topology_**_cpumask()
    ...

    Linus Torvalds
     

19 Jun, 2015

1 commit


18 Jun, 2015

5 commits


13 Jun, 2015

1 commit


12 Jun, 2015

18 commits

  • Point to the right place for GNU license. Update Intel copyright.

    Signed-off-by: James Simmons
    Signed-off-by: Greg Kroah-Hartman

    James Simmons
     
  • Handle all the style issues reported by checkpatch.pl.
    Remove general white spaces, spaces in function calls,
    alignments etc.

    Signed-off-by: James Simmons
    Signed-off-by: Greg Kroah-Hartman

    James Simmons
     
  • For the functions LNetInit and LNetFini move away from
    camel case to lnet_init and lnet_fini.

    Signed-off-by: James Simmons
    Signed-off-by: Greg Kroah-Hartman

    James Simmons
     
  • Currently the lnet headers used by user land contain various internal
    LNet structures that are only used by kernel space. Move the user land
    structures to headers used by user land. The kernel structures are
    relocated to headers that are never exposed to user land.

    Signed-off-by: James Simmons
    Signed-off-by: Greg Kroah-Hartman

    James Simmons
     
  • Currently several special macros LNet NID macros exist
    in libcfs.h and libcfs_private.h. Move those macros
    out to the lnet header types.h. The new lnet header
    nidstr.h contains LNet NID string data that can be
    used by user land LNet utilities and the LNet kernel
    drivers.

    Signed-off-by: James Simmons
    Signed-off-by: Greg Kroah-Hartman

    James Simmons
     
  • Originally socklnd_lib-linux.h contained linux specific
    wrappers and defines but since the linux kernel is the
    only supported platform now we can merge what little
    remains in the header into socklnd.h. This is broken
    out of the original patch 12932 that was merged to the
    Intel/OpenSFS branch.

    Signed-off-by: John L. Hammond
    Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675
    Reviewed-on: http://review.whamcloud.com/12932
    Reviewed-by: Isaac Huang
    Reviewed-by: James Simmons
    Reviewed-by: Oleg Drokin
    Signed-off-by: James Simmons
    Signed-off-by: Greg Kroah-Hartman

    John L. Hammond
     
  • With the move to support only the linux kernel their is
    no need to keep "linux" in the socklnd source file names.
    This is broken out of the original patch 12932 that was
    merged to the Intel/OpenSFS branch.

    Signed-off-by: John L. Hammond
    Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675
    Reviewed-on: http://review.whamcloud.com/12932
    Reviewed-by: Isaac Huang
    Reviewed-by: James Simmons
    Reviewed-by: Oleg Drokin
    Signed-off-by: James Simmons
    Signed-off-by: Greg Kroah-Hartman

    John L. Hammond
     
  • Remove the linux specific headers from lnet/include/lnet/linux/,
    moving whatever was worthwhile from them to their parent headers or
    elsewhere.

    Signed-off-by: John L. Hammond
    Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675
    Reviewed-on: http://review.whamcloud.com/12932
    Reviewed-by: Isaac Huang
    Reviewed-by: James Simmons
    Reviewed-by: Oleg Drokin
    Signed-off-by: Greg Kroah-Hartman

    John L. Hammond
     
  • Remove ralnd, ptllnd, mxlnd, qswlnd drivers. They are no
    longer supported and have not even been buildable
    for a long time.

    Signed-off-by: James Simmons
    Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6209
    Reviewed-on: http://review.whamcloud.com/13663
    Reviewed-by: Isaac Huang
    Reviewed-by: Doug Oucharek
    Reviewed-by: Andreas Dilger
    Reviewed-by: Oleg Drokin
    Signed-off-by: Greg Kroah-Hartman

    James Simmons
     
  • Replace uses of OBD_ALLOC_LARGE by libcfs_kvzalloc and OBD_FREE_LARGE by
    kvfree.

    The semantic patch that makes this change is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @@
    expression ptr,size;
    @@

    - OBD_ALLOC_LARGE(ptr,size)
    + ptr = libcfs_kvzalloc(size, GFP_NOFS)

    @@
    expression ptr,size;
    @@

    - OBD_FREE_LARGE(ptr, size);
    + kvfree(ptr);
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Greg Kroah-Hartman

    Julia Lawall
     
  • Replace uses of OBD_ALLOC_LARGE by libcfs_kvzalloc and OBD_FREE_LARGE by
    kvfree.

    The semantic patch that makes this change is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @@
    expression ptr,size;
    @@

    - OBD_ALLOC_LARGE(ptr,size)
    + ptr = libcfs_kvzalloc(size, GFP_NOFS)

    @@
    expression ptr,size;
    @@

    - OBD_FREE_LARGE(ptr, size);
    + kvfree(ptr);
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Greg Kroah-Hartman

    Julia Lawall
     
  • Replace uses of OBD_ALLOC_LARGE by libcfs_kvzalloc and OBD_FREE_LARGE by
    kvfree.

    The semantic patch that makes this change is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @@
    expression ptr,size;
    @@

    - OBD_ALLOC_LARGE(ptr,size)
    + ptr = libcfs_kvzalloc(size, GFP_NOFS)

    @@
    expression ptr,size;
    @@

    - OBD_FREE_LARGE(ptr, size);
    + kvfree(ptr);
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Greg Kroah-Hartman

    Julia Lawall
     
  • Replace uses of OBD_ALLOC_LARGE by libcfs_kvzalloc and OBD_FREE_LARGE by
    kvfree.

    The semantic patch that makes this change is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @@
    expression ptr,size;
    @@

    - OBD_ALLOC_LARGE(ptr,size)
    + ptr = libcfs_kvzalloc(size, GFP_NOFS)

    @@
    expression ptr,size;
    @@

    - OBD_FREE_LARGE(ptr, size);
    + kvfree(ptr);
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Greg Kroah-Hartman

    Julia Lawall
     
  • Replace uses of OBD_ALLOC_LARGE by libcfs_kvzalloc and OBD_FREE_LARGE by
    kvfree.

    The semantic patch that makes this change is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @@
    expression ptr,size;
    @@

    - OBD_ALLOC_LARGE(ptr,size)
    + ptr = libcfs_kvzalloc(size, GFP_NOFS)

    @@
    expression ptr,size;
    @@

    - OBD_FREE_LARGE(ptr, size);
    + kvfree(ptr);
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Greg Kroah-Hartman

    Julia Lawall
     
  • Replace uses of OBD_ALLOC_LARGE by libcfs_kvzalloc and OBD_FREE_LARGE by
    kvfree.

    The semantic patch that makes this change is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @@
    expression ptr,size;
    @@

    - OBD_ALLOC_LARGE(ptr,size)
    + ptr = libcfs_kvzalloc(size, GFP_NOFS)

    @@
    expression ptr,size;
    @@

    - OBD_FREE_LARGE(ptr, size);
    + kvfree(ptr);
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Greg Kroah-Hartman

    Julia Lawall
     
  • Replace uses of OBD_ALLOC_LARGE by libcfs_kvzalloc and OBD_FREE_LARGE by
    kvfree.

    The semantic patch that makes this change is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @@
    expression ptr,size;
    @@

    - OBD_ALLOC_LARGE(ptr,size)
    + ptr = libcfs_kvzalloc(size, GFP_NOFS)

    @@
    expression ptr,size;
    @@

    - OBD_FREE_LARGE(ptr, size);
    + kvfree(ptr);
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Greg Kroah-Hartman

    Julia Lawall
     
  • strncpy_from_user could return negative values on error,
    so need to take those into account.
    Since ll_getname is used to get a single component name from userspace
    to transfer to server as-is, there's no need to allocate 4k buffer
    as done by __getname. Allocate NAME_MAX+1 buffer instead to ensure
    we have enough for a null terminated max valid length buffer.

    This was discovered by Al Viro in https://lkml.org/lkml/2015/4/11/243

    Signed-off-by: Oleg Drokin
    Signed-off-by: Greg Kroah-Hartman

    Oleg Drokin
     
  • It uses getname in unsafe manner and since it's to deal with corrupted
    or inconsistent filesystem, we are probably better to deal with
    it from lfsck anyway.

    Signed-off-by: Oleg Drokin
    Signed-off-by: Greg Kroah-Hartman

    Oleg Drokin
     

11 Jun, 2015

9 commits