aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/kref.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/kref.h b/include/linux/kref.h
index fa9907a541e2..d66c88a3b48c 100644
--- a/include/linux/kref.h
+++ b/include/linux/kref.h
@@ -29,7 +29,6 @@ struct kref {
29static inline void kref_init(struct kref *kref) 29static inline void kref_init(struct kref *kref)
30{ 30{
31 atomic_set(&kref->refcount, 1); 31 atomic_set(&kref->refcount, 1);
32 smp_mb();
33} 32}
34 33
35/** 34/**
@@ -40,7 +39,6 @@ static inline void kref_get(struct kref *kref)
40{ 39{
41 WARN_ON(!atomic_read(&kref->refcount)); 40 WARN_ON(!atomic_read(&kref->refcount));
42 atomic_inc(&kref->refcount); 41 atomic_inc(&kref->refcount);
43 smp_mb__after_atomic_inc();
44} 42}
45 43
46/** 44/**