1. 27 6月, 2014 1 次提交
  2. 18 6月, 2014 2 次提交
  3. 17 6月, 2014 1 次提交
  4. 15 6月, 2014 2 次提交
  5. 13 6月, 2014 1 次提交
    • K
      NVMe: Fix hot cpu notification dead lock · f3db22fe
      Keith Busch 提交于
      There is a potential dead lock if a cpu event occurs during nvme probe
      since it registered with hot cpu notification. This fixes the race by
      having the module register with notification outside of probe rather
      than have each device register.
      
      The actual work is done in a scheduled work queue instead of in the
      notifier since assigning IO queues has the potential to block if the
      driver creates additional queues.
      Signed-off-by: NKeith Busch <keith.busch@intel.com>
      Signed-off-by: NMatthew Wilcox <matthew.r.wilcox@intel.com>
      f3db22fe
  6. 12 6月, 2014 10 次提交
  7. 11 6月, 2014 9 次提交
  8. 10 6月, 2014 1 次提交
  9. 07 6月, 2014 13 次提交
    • S
      svcrdma: refactor marshalling logic · 0bf48289
      Steve Wise 提交于
      This patch refactors the NFSRDMA server marshalling logic to
      remove the intermediary map structures.  It also fixes an existing bug
      where the NFSRDMA server was not minding the device fast register page
      list length limitations.
      Signed-off-by: NTom Tucker <tom@opengridcomputing.com>
      Signed-off-by: NSteve Wise <swise@opengridcomputing.com>
      0bf48289
    • J
      nfs4: remove unused CHANGE_SECURITY_LABEL · 999e5683
      J. Bruce Fields 提交于
      This constant has the wrong value.  And we don't use it.  And it's been
      removed from the 4.2 spec anyway.
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      999e5683
    • G
      idle: remove cpu_idle() forward declarations · ae022622
      Geert Uytterhoeven 提交于
      After all architectures were converted to the generic idle framework,
      commit d190e819 ("idle: Remove GENERIC_IDLE_LOOP config switch")
      removed the last caller of cpu_idle().  The forward declarations in
      header files were forgotten.
      Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      ae022622
    • C
      mm: introduce kmemleak_update_trace() · ffe2c748
      Catalin Marinas 提交于
      The memory allocation stack trace is not always useful for debugging a
      memory leak (e.g.  radix_tree_preload).  This function, when called,
      updates the stack trace for an already allocated object.
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      Cc: Johannes Weiner <hannes@cmpxchg.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      ffe2c748
    • J
      key: convert use of typedef ctl_table to struct ctl_table · d6f50c95
      Joe Perches 提交于
      This typedef is unnecessary and should just be removed.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d6f50c95
    • M
      ipc/shm.c: increase the defaults for SHMALL, SHMMAX · 060028ba
      Manfred Spraul 提交于
      System V shared memory
      
      a) can be abused to trigger out-of-memory conditions and the standard
         measures against out-of-memory do not work:
      
          - it is not possible to use setrlimit to limit the size of shm segments.
      
          - segments can exist without association with any processes, thus
            the oom-killer is unable to free that memory.
      
      b) is typically used for shared information - today often multiple GB.
         (e.g. database shared buffers)
      
      The current default is a maximum segment size of 32 MB and a maximum
      total size of 8 GB.  This is often too much for a) and not enough for
      b), which means that lots of users must change the defaults.
      
      This patch increases the default limits (nearly) to the maximum, which
      is perfect for case b).  The defaults are used after boot and as the
      initial value for each new namespace.
      
      Admins/distros that need a protection against a) should reduce the
      limits and/or enable shm_rmid_forced.
      
      Unix has historically required setting these limits for shared memory,
      and Linux inherited such behavior.  The consequence of this is added
      complexity for users and administrators.  One very common example are
      Database setup/installation documents and scripts, where users must
      manually calculate the values for these limits.  This also requires
      (some) knowledge of how the underlying memory management works, thus
      causing, in many occasions, the limits to just be flat out wrong.
      Disabling these limits sooner could have saved companies a lot of time,
      headaches and money for support.  But it's never too late, simplify
      users life now.
      
      Further notes:
      - The patch only changes default, overrides behave as before:
              # sysctl kernel.shmall=33554432
        would recreate the previous limit for SHMMAX (for the current namespace).
      
      - Disabling sysv shm allocation is possible with:
              # sysctl kernel.shmall=0
        (not a new feature, also per-namespace)
      
      - The limits are intentionally set to a value slightly less than ULONG_MAX,
        to avoid triggering overflows in user space apps.
        [not unreasonable, see http://marc.info/?l=linux-mm&m=139638334330127]
      Signed-off-by: NManfred Spraul <manfred@colorfullife.com>
      Signed-off-by: NDavidlohr Bueso <davidlohr@hp.com>
      Reported-by: NDavidlohr Bueso <davidlohr@hp.com>
      Acked-by: NMichael Kerrisk <mtk.manpages@gmail.com>
      Acked-by: NKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      060028ba
    • L
      idr: reorder the fields · dcbff5d1
      Lai Jiangshan 提交于
      idr_layer->layer is always accessed in read path, move it in the front.
      
      idr_layer->bitmap is moved on the bottom.  And rcu_head shares with
      bitmap due to they do not be accessed at the same time.
      
      idr->id_free/id_free_cnt/lock are free list fields, and moved to the
      bottom.  They will be removed in near future.
      Signed-off-by: NLai Jiangshan <laijs@cn.fujitsu.com>
      Cc: Tejun Heo <tj@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      dcbff5d1
    • O
      signals: introduce kernel_sigaction() · b4e74264
      Oleg Nesterov 提交于
      Now that allow_signal() is really trivial we can unify it with
      disallow_signal().  Add the new helper, kernel_sigaction(), and
      reimplement allow_signal/disallow_signal as a trivial wrappers.
      
      This saves one EXPORT_SYMBOL() and the new helper can have more users.
      Signed-off-by: NOleg Nesterov <oleg@redhat.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Al Viro <viro@ZenIV.linux.org.uk>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Tejun Heo <tj@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b4e74264
    • O
      signals: mv {dis,}allow_signal() from sched.h/exit.c to signal.[ch] · 0341729b
      Oleg Nesterov 提交于
      Move the declaration/definition of allow_signal/disallow_signal to
      signal.h/signal.c.  The new place is more logical and allows to use the
      static helpers in signal.c (see the next changes).
      
      While at it, make them return void and remove the valid_signal() check.
      Nobody checks the returned value, and in-kernel users must not pass the
      wrong signal number.
      Signed-off-by: NOleg Nesterov <oleg@redhat.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Al Viro <viro@ZenIV.linux.org.uk>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Tejun Heo <tj@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      0341729b
    • O
      signals: kill sigfindinword() · 36fac0a2
      Oleg Nesterov 提交于
      It has no users and it doesn't look useful.  I do not know why/when it was
      introduced, I can't even find any user in the git history.
      Signed-off-by: NOleg Nesterov <oleg@redhat.com>
      Acked-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Al Viro <viro@ZenIV.linux.org.uk>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Tejun Heo <tj@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      36fac0a2
    • M
      ptrace: fix fork event messages across pid namespaces · 4e52365f
      Matthew Dempsky 提交于
      When tracing a process in another pid namespace, it's important for fork
      event messages to contain the child's pid as seen from the tracer's pid
      namespace, not the parent's.  Otherwise, the tracer won't be able to
      correlate the fork event with later SIGTRAP signals it receives from the
      child.
      
      We still risk a race condition if a ptracer from a different pid
      namespace attaches after we compute the pid_t value.  However, sending a
      bogus fork event message in this unlikely scenario is still a vast
      improvement over the status quo where we always send bogus fork event
      messages to debuggers in a different pid namespace than the forking
      process.
      Signed-off-by: NMatthew Dempsky <mdempsky@chromium.org>
      Acked-by: NOleg Nesterov <oleg@redhat.com>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Julien Tinnes <jln@chromium.org>
      Cc: Roland McGrath <mcgrathr@chromium.org>
      Cc: Jan Kratochvil <jan.kratochvil@redhat.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4e52365f
    • M
      drivers/rtc/rtc-cmos.c: drivers/char/rtc.c features for DECstation support · 31632dbd
      Maciej W. Rozycki 提交于
      This brings in drivers/char/rtc.c functionality required for DECstation
      and, should the maintainers decide to switch, Alpha systems to use
      rtc-cmos.
      
      Specifically these features are made available:
      
      * RTC iomem rather than x86/PCI port I/O mapping, controlled with the
        RTC_IOMAPPED macro as with the original driver.  The DS1287A chip in all
        DECstation systems is mapped in the host bus address space as a
        contiguous block of 64 32-bit words of which the least significant byte
        accesses the RTC chip for both reads and writes.  All the address and
        data window register accesses are made transparently by the chipset glue
        logic so that the device appears directly mapped on the host bus.
      
      * A way to set the size of the address space explicitly with the
        newly-added `address_space' member of the platform part of the RTC
        device structure.  This avoids the unreliable heuristics that does not
        work in a setup where the RTC is not explicitly accessed with the usual
        address and data window register pair.
      
      * The ability to use the RTC periodic interrupt as a system clock
        device, which is implemented by arch/mips/kernel/cevt-ds1287.c for
        DECstation systems and takes the RTC interrupt away from the RTC driver.
         Eventually hooking back to the clock device's interrupt handler should
        be possible for the purpose of the alarm clock and possibly also
        update-in-progress interrupt, but this is not done by this change.
      
        o To avoid interfering with the clock interrupt all the places where
          the RTC interrupt mask is fiddled with are only executed if and IRQ
          has been assigned to the RTC driver.
      
        o To avoid changing the clock setup Register A is not fiddled with
          if CMOS_RTC_FLAGS_NOFREQ is set in the newly-added `flags' member of
          the platform part of the RTC device structure.  Originally, in
          drivers/char/rtc.c, this was keyed with the absence of the RTC
          interrupt, just like the interrupt mask, but there only the periodic
          interrupt frequency is set, whereas rtc-cmos also sets the divider
          bits.  Therefore a new flag is introduced so that systems where the
          RTC interrupt is not usable rather than used as a system clock device
          can fully initialise the RTC.
      
      * A small clean-up is made to the IRQ assignment code that makes the IRQ
        number hardcoded to -1 rather than arbitrary -ENXIO (or whatever error
        happens to be returned by platform_get_irq) where no IRQ has been
        assigned to the RTC driver (NO_IRQ might be another candidate, but it
        looks like this macro has inconsistent or missing definitions and
        limited use and might therefore be unsafe).
      
      Verified to work correctly with a DECstation 5000/240 system.
      
      [akpm@linux-foundation.org: fix weird code layout]
      Signed-off-by: NMaciej W. Rozycki <macro@linux-mips.org>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      31632dbd
    • A
      ARM: OMAP5+: dpll: support Duty Cycle Correction(DCC) · ce369a54
      Andrii Tseglytskyi 提交于
      Duty Cycle Correction(DCC) needs to be enabled if the MPU is to run at
      frequencies beyond 1.4GHz for OMAP5, DRA75x, DRA72x.
      
      MPU DPLL has a limitation on the maximum frequency it can be locked
      at. Duty Cycle Correction circuit is used to recover a correct duty
      cycle for achieving higher frequencies (hardware internally switches
      output to M3 output(CLKOUTHIF) from M2 output (CLKOUT)).
      
      For further information, See the note on OMAP5432 Technical Reference
      Manual(SWPU282U) chapter 3.6.3.3.1 "DPLLs Output Clocks Parameters",
      and also the "OMAP543x ES2.0 DM Operating Conditions Addendum v0.5"
      chapter 2.1 "Micro Processor Unit (MPU)". Equivalent information is
      present in relevant DRA75x, 72x documentation(SPRUHP2E, SPRUHI2P).
      Signed-off-by: NAndrii Tseglytskyi <andrii.tseglytskyi@ti.com>
      Signed-off-by: NTaras Kondratiuk <taras@ti.com>
      Signed-off-by: NJ Keerthy <j-keerthy@ti.com>
      Signed-off-by: NNishanth Menon <nm@ti.com>
      [t-kristo@ti.com: added TRM / DM references for DCC clock rate]
      Signed-off-by: NTero Kristo <t-kristo@ti.com>
      ce369a54