The patch titled Subject: ipc-semc-chance-memory-barrier-in-sem_lock-to-smp_rmb-fix has been removed from the -mm tree. Its filename was ipc-semc-chance-memory-barrier-in-sem_lock-to-smp_rmb-fix.patch This patch was dropped because it was folded into ipc-semc-chance-memory-barrier-in-sem_lock-to-smp_rmb.patch ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: ipc-semc-chance-memory-barrier-in-sem_lock-to-smp_rmb-fix update sem_lock() comment, from Davidlohr Cc: Davidlohr Bueso <dave@xxxxxxxxxxxx> Cc: Manfred Spraul <manfred@xxxxxxxxxxxxxxxx> Cc: Rafael Aquini <aquini@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- ipc/sem.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff -puN ipc/sem.c~ipc-semc-chance-memory-barrier-in-sem_lock-to-smp_rmb-fix ipc/sem.c --- a/ipc/sem.c~ipc-semc-chance-memory-barrier-in-sem_lock-to-smp_rmb-fix +++ a/ipc/sem.c @@ -327,10 +327,11 @@ static inline int sem_lock(struct sem_ar /* Then check that the global lock is free */ if (!spin_is_locked(&sma->sem_perm.lock)) { /* - * The next test must happen after the test for - * sem_perm.lock, otherwise we can race with another - * thread that does - * complex_count++;spin_unlock(sem_perm.lock); + * The ipc object lock check must be visible on all + * cores before rechecking the complex count. Otherwise + * we can race with another thread that does: + * complex_count++++; + * spin_unlock(sem_perm.lock); */ smp_rmb(); _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are origin.patch mm-mincore-add-hwpoison-page-handle.patch include-linux-kmemleakh-needs-slabh.patch mm-page_owner-keep-track-of-page-owners.patch fs-seq_file-fallback-to-vmalloc-instead-of-oom-kill-processes.patch oom-dont-assume-that-a-coredumping-thread-will-exit-soon.patch mm-memcontrol-fix-defined-but-not-used-compiler-warning.patch zsmalloc-fix-zs_init-cpu-notifier-error-handling.patch mm-zsmalloc-support-allocating-obj-with-size-of-zs_max_alloc_size.patch mm-zsmalloc-avoid-duplicate-assignment-of-prev_class.patch ipc-semc-chance-memory-barrier-in-sem_lock-to-smp_rmb.patch ipc-semc-chance-memory-barrier-in-sem_lock-to-smp_rmb-fix-fix.patch ipc-msg-increase-msgmni-remove-scaling-checkpatch-fixes.patch mm-cma-make-kmemleak-ignore-cma-regions.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