- sys_time-use-barrier-instead-of-smp_rmb.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     sys_time: use barrier() instead of smp_rmb()
has been removed from the -mm tree.  Its filename was
     sys_time-use-barrier-instead-of-smp_rmb.patch

This patch was dropped because it is obsolete

------------------------------------------------------
Subject: sys_time: use barrier() instead of smp_rmb()
From: Oleg Nesterov <oleg@xxxxxxxxxx>

There is no reason to use rmb(), we don't do any LOADs which could be
reordered.  What we need is a simple compiler barrier, to prevent the
reading of the "volatile" xtime.tv_sec twice.

Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx>
Cc: Chris Snook <csnook@xxxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 kernel/time.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN kernel/time.c~sys_time-use-barrier-instead-of-smp_rmb kernel/time.c
--- a/kernel/time.c~sys_time-use-barrier-instead-of-smp_rmb
+++ a/kernel/time.c
@@ -64,7 +64,7 @@ asmlinkage long sys_time(time_t __user *
 	 */
 	time_t i = xtime.tv_sec;
 
-	smp_rmb(); /* sys_time() results are coherent */
+	barrier(); /* sys_time() results are coherent */
 
 	if (tloc) {
 		if (put_user(i, tloc))
_

Patches currently in -mm which might be from oleg@xxxxxxxxxx are

origin.patch
i386-remove-unnecessary-code.patch
clone-flag-clone_parent_tidptr-leaves-invalid-results-in-memory.patch
sys_time-use-barrier-instead-of-smp_rmb.patch
do_sys_poll-simplify-playing-with-on-stack-data.patch
do_poll-return-eintr-when-signalled.patch
idr_remove_all-kill-unused-variable.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux