1. 13 Jul, 2008 1 commit
    • Lai Jiangshan's avatar
      rcu classic: update qlen when cpu offline · 199a9528
      Lai Jiangshan authored
      When callbacks are moved from offline cpu to this cpu,
      the qlen field of this rdp should be updated.
      
      [ Paul E. McKenney: ]
      
      The effect of this bug would be for force_quiescent_state() to be invoked
      when it should not and vice versa -- wasting cycles in the first case
      and letting RCU callbacks remain piled up in the second case.  The bug
      is thus "benign" in that it does not result in premature grace-period
      termination, but should of course be fixed nonetheless.
      
      Preemption is disabled by the caller's get_cpu_var(), so we are guaranteed
      to remain on the same CPU, as required.  The local_irq_disable() is indeed
      needed, otherwise, an interrupt might invoke call_rcu() or call_rcu_bh(),
      which could cause that interrupt's increment of ->qlen to be lost.
      Signed-off-by: default avatarLai Jiangshan <laijs@cn.fujitsu.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Reviewed-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      199a9528
  2. 11 Jul, 2008 1 commit
  3. 10 Jul, 2008 8 commits
  4. 09 Jul, 2008 5 commits
  5. 08 Jul, 2008 18 commits
  6. 07 Jul, 2008 6 commits
  7. 06 Jul, 2008 1 commit
    • Linus Torvalds's avatar
      vsprintf: add support for '%pS' and '%pF' pointer formats · 0fe1ef24
      Linus Torvalds authored
      They print out a pointer in symbolic format, if possible (ie using
      symbolic KALLSYMS information).  The '%pS' format is for regular direct
      pointers (which can point to data or code and that you find on the stack
      during backtraces etc), while '%pF' is for C function pointer types.
      
      On most architectures, the two mean exactly the same thing, but some
      architectures use an indirect pointer for C function pointers, where the
      function pointer points to a function descriptor (which in turn contains
      the actual pointer to the code).  The '%pF' code automatically does the
      appropriate function descriptor dereference on such architectures.
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      0fe1ef24