+ futex-remove-unneeded-barrier.patch added to -mm tree

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

 



The patch titled
     futex: remove unneeded barrier
has been added to the -mm tree.  Its filename is
     futex-remove-unneeded-barrier.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: futex: remove unneeded barrier
From: Ralf Baechle <ralf@xxxxxxxxxxxxxx>

When disassembling a kernel I found around over 90 sync Instructions from
mb, rmb and wmb calls in the kernel and only few of those make any sense to
me.  So here's the first one - I think the wmb() in kernel/futex.c is not
needed on uniprocessors so should become an smb_wmb().

Signed-off-by: Ralf Baechle <ralf@xxxxxxxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxx>
Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

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

diff -puN kernel/futex.c~futex-remove-unneeded-barrier kernel/futex.c
--- a/kernel/futex.c~futex-remove-unneeded-barrier
+++ a/kernel/futex.c
@@ -553,7 +553,7 @@ static void wake_futex(struct futex_q *q
 	 * at the end of wake_up_all() does not prevent this store from
 	 * moving.
 	 */
-	wmb();
+	smp_wmb();
 	q->lock_ptr = NULL;
 }
 
_

Patches currently in -mm which might be from ralf@xxxxxxxxxxxxxx are

mips-dbg_io-stray-brackets-fix.patch
git-mtd.patch
declance-fix-pmax-and-pmad-support.patch
declance-fix-pmax-and-pmad-support-fix.patch
declance-support-the-i-o-asic-lance-w-o-turbochannel.patch
git-net.patch
export-pm_suspend-for-the-shared-apm-emulation.patch
add-struct-dev-pointer-to-dma_is_consistent.patch
pass-struct-dev-pointer-to-dma_cache_sync.patch
futex-remove-unneeded-barrier.patch
generic-ioremap_page_range-mips-conversion.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