1. 14 4月, 2010 6 次提交
    • D
      rcu: Better explain the condition parameter of rcu_dereference_check() · c08c68dd
      David Howells 提交于
      Better explain the condition parameter of
      rcu_dereference_check() that describes the conditions under
      which the dereference is permitted to take place (and
      incorporate Yong Zhang's suggestion).  This condition is only
      checked under lockdep proving.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      Cc: laijs@cn.fujitsu.com
      Cc: dipankar@in.ibm.com
      Cc: mathieu.desnoyers@polymtl.ca
      Cc: josh@joshtriplett.org
      Cc: dvhltc@us.ibm.com
      Cc: niv@us.ibm.com
      Cc: peterz@infradead.org
      Cc: rostedt@goodmis.org
      Cc: Valdis.Kletnieks@vt.edu
      Cc: eric.dumazet@gmail.com
      LKML-Reference: <1270852752-25278-2-git-send-email-paulmck@linux.vnet.ibm.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      c08c68dd
    • P
      rcu: Add rcu_access_pointer and rcu_dereference_protected · b62730ba
      Paul E. McKenney 提交于
      This patch adds variants of rcu_dereference() that handle
      situations where the RCU-protected data structure cannot change,
      perhaps due to our holding the update-side lock, or where the
      RCU-protected pointer is only to be fetched, not dereferenced.
      These are needed due to some performance concerns with using
      rcu_dereference() where it is not required, aside from the need
      for lockdep/sparse checking.
      
      The new rcu_access_pointer() primitive is for the case where the
      pointer is be fetch and not dereferenced.  This primitive may be
      used without protection, RCU or otherwise, due to the fact that
      it uses ACCESS_ONCE().
      
      The new rcu_dereference_protected() primitive is for the case
      where updates are prevented, for example, due to holding the
      update-side lock.  This primitive does neither ACCESS_ONCE() nor
      smp_read_barrier_depends(), so can only be used when updates are
      somehow prevented.
      Suggested-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      Cc: laijs@cn.fujitsu.com
      Cc: dipankar@in.ibm.com
      Cc: mathieu.desnoyers@polymtl.ca
      Cc: josh@joshtriplett.org
      Cc: dvhltc@us.ibm.com
      Cc: niv@us.ibm.com
      Cc: peterz@infradead.org
      Cc: rostedt@goodmis.org
      Cc: Valdis.Kletnieks@vt.edu
      Cc: dhowells@redhat.com
      Cc: eric.dumazet@gmail.com
      LKML-Reference: <1270852752-25278-1-git-send-email-paulmck@linux.vnet.ibm.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      b62730ba
    • L
      Merge branch 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6 · 2ba3abd8
      Linus Torvalds 提交于
      * 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6:
        PM / Hibernate: user.c, fix SNAPSHOT_SET_SWAP_AREA handling
      2ba3abd8
    • L
      Merge branch 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6 · 0fdfe5ad
      Linus Torvalds 提交于
      * 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6:
        NFSv4: fix delegated locking
        NFS: Ensure that the WRITE and COMMIT RPC calls are always uninterruptible
        NFS: Fix a race with the new commit code
        NFS: Ensure that writeback_single_inode() calls write_inode() when syncing
        NFS: Fix the mode calculation in nfs_find_open_context
        NFSv4: Fall back to ordinary lookup if nfs4_atomic_open() returns EISDIR
      0fdfe5ad
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6 · 44d2d371
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
        sparc64: Add some more commentary to __raw_local_irq_save()
        sparc64: Fix memory leak in pci_register_iommu_region().
        sparc64: Add kmemleak annotation to sun4v_build_virq()
        sparc64: Support kmemleak.
        sparc64: Add function graph tracer support.
        sparc64: Give a stack frame to the ftrace call sites.
        sparc64: Use a seperate counter for timer interrupts and NMI checks, like x86.
        sparc64: Remove profiling from some low-level bits.
        sparc64: Kill unnecessary static on local var in ftrace_call_replace().
        sparc64: Kill CONFIG_STACK_DEBUG code.
        sparc64: Add HAVE_FUNCTION_TRACE_MCOUNT_TEST and tidy up.
        sparc64: Adjust __raw_local_irq_save() to cooperate in NMIs.
        sparc64: Use kstack_valid() in die_if_kernel().
      44d2d371
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 · 465de2ba
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (25 commits)
        smc91c92_cs: define multicast_table as unsigned char
        can: avoids a false warning
        e1000e: stop cleaning when we reach tx_ring->next_to_use
        igb: restrict WoL for 82576 ET2 Quad Port Server Adapter
        virtio_net: missing sg_init_table
        Revert "tcp: Set CHECKSUM_UNNECESSARY in tcp_init_nondata_skb"
        iwlwifi: need check for valid qos packet before free
        tcp: Set CHECKSUM_UNNECESSARY in tcp_init_nondata_skb
        udp: fix for unicast RX path optimization
        myri10ge: fix rx_pause in myri10ge_set_pauseparam
        net: corrected documentation for hardware time stamping
        stmmac: use resource_size()
        x.25 attempts to negotiate invalid throughput
        x25: Patch to fix bug 15678 - x25 accesses fields beyond end of packet.
        bridge: Fix IGMP3 report parsing
        cnic: Fix crash during bnx2x MTU change.
        qlcnic: fix set mac addr
        r6040: fix r6040_multicast_list
        vhost-net: fix vq_memory_access_ok error checking
        ath9k: fix double calls to ath_radio_enable
        ...
      465de2ba
  2. 13 4月, 2010 34 次提交