Skip to contentSkip to conversation

ipcmsg-document-volatile-r_msg.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jun 9, 2014

lore
Share & tools
lore
#0 lore raw

Subject: [merged] ipcmsg-document-volatile-r_msg.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 09 Jun 2014 12:37:47 -0700

The patch titled
Subject: ipc,msg: document volatile r_msg
has been removed from the -mm tree. Its filename was
ipcmsg-document-volatile-r_msg.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Davidlohr Bueso <[email protected]>
Subject: ipc,msg: document volatile r_msg

The need for volatile is not obvious, document it.

---

 ipc/msg.c |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
ipc/msg.c renamed from ipc/msg.c~ipcmsg-document-volatile-r_msg +7 -3
diff -puN ipc/msg.c~ipcmsg-document-volatile-r_msg ipc/msg.c
@@ -42,9 +42,7 @@
 #include <linux/uaccess.h>
 #include "util.h"
 
-/*
- * one msg_receiver structure for each sleeping receiver:
- */
+/* one msg_receiver structure for each sleeping receiver */
 struct msg_receiver {
 	struct list_head	r_list;
 	struct task_struct	*r_tsk;
@@ -53,6 +51,12 @@ struct msg_receiver {
 	long			r_msgtype;
 	long			r_maxsize;
 
+	/*
+	 * Mark r_msg volatile so that the compiler
+	 * does not try to get smart and optimize
+	 * it. We rely on this for the lockless
+	 * receive algorithm.
+	 */
 	struct msg_msg		*volatile r_msg;
 };
 

_

Patches currently in -mm which might be from [email protected] are

origin.patch m68k-call-find_vma-with-the-mmap_sem-held-in-sys_cacheflush.patch linux-next.patch