+ ipcmsg-document-volatile-r_msg.patch added to -mm tree
Subject: + ipcmsg-document-volatile-r_msg.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 13 May 2014 13:39:29 -0700
The patch titled
Subject: ipc,msg: document volatile r_msg
has been added to the -mm tree. Its filename is
ipcmsg-document-volatile-r_msg.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/ipcmsg-document-volatile-r_msg.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/ipcmsg-document-volatile-r_msg.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
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
@@ -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;
@@ -54,6 +52,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
mmvmacache-add-debug-data.patch mmvmacache-optimize-overflow-system-wide-flushing.patch mm-pass-vm_bug_on-reason-to-dump_page.patch mm-pass-vm_bug_on-reason-to-dump_page-fix.patch hugetlb-prep_compound_gigantic_page-drop-__init-marker.patch hugetlb-add-hstate_is_gigantic.patch hugetlb-update_and_free_page-dont-clear-pg_reserved-bit.patch hugetlb-move-helpers-up-in-the-file.patch hugetlb-add-support-for-gigantic-page-allocation-at-runtime.patch m68k-call-find_vma-with-the-mmap_sem-held-in-sys_cacheflush.patch mips-call-find_vma-with-the-mmap_sem-held.patch arc-call-find_vma-with-the-mmap_sem-held.patch arc-call-find_vma-with-the-mmap_sem-held-fix.patch drm-exynos-call-find_vma-with-the-mmap_sem-held.patch ipc-constify-ipc_ops.patch ipc-shmc-check-for-ulong-overflows-in-shmat.patch ipc-shmc-check-for-overflows-of-shm_tot.patch ipc-shmc-check-for-integer-overflow-during-shmget.patch ipc-shmc-increase-the-defaults-for-shmall-shmmax.patch ipcshm-document-new-limits-in-the-uapi-header.patch ipcshm-document-new-limits-in-the-uapi-header-v2.patch ipcmsg-use-current-state-helpers.patch ipcmsg-move-some-msgq-ns-code-around.patch ipcmsg-always-respect-msg_noerror.patch ipcmsg-document-volatile-r_msg.patch ipcmsg-loosen-check-for-full-queue.patch linux-next.patch blackfin-ptrace-call-find_vma-with-the-mmap_sem-held.patch