diff mbox

Introduce buflock, a one-to-many circular buffer mechanism (rev2)

Message ID 4C1E7657.9070606@bitmath.org (mailing list archive)
State New, archived
Headers show

Commit Message

Henrik Rydberg June 20, 2010, 8:13 p.m. UTC
None
diff mbox

Patch

diff --git a/include/linux/buflock.h b/include/linux/buflock.h
index 3d5df22..05996d5 100644
--- a/include/linux/buflock.h
+++ b/include/linux/buflock.h
@@ -125,8 +125,8 @@  static inline unsigned int bufwrite_at(const struct buflock_
writer *bw)
  */
 static inline void bufwrite_unlock(struct buflock_writer *bw)
 {
-	++bw->head;
 	smp_wmb();
+	++bw->head;
 }