From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755943AbcBITPv (ORCPT ); Tue, 9 Feb 2016 14:15:51 -0500 Received: from smtp2.provo.novell.com ([137.65.250.81]:34588 "EHLO smtp2.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751802AbcBITPu (ORCPT ); Tue, 9 Feb 2016 14:15:50 -0500 From: Davidlohr Bueso To: Mel Gorman , Peter Zijlstra , Thomas Gleixner , Ingo Molnar Cc: Sebastian Andrzej Siewior , Chris Mason , Darren Hart , Hugh Dickins , dave@stgolabs.net, linux-kernel@vger.kernel.org Subject: [PATCH v6 0/2] futex: lockless get_futex_key Date: Tue, 9 Feb 2016 11:15:12 -0800 Message-Id: <1455045314-8305-1-git-send-email-dave@stgolabs.net> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is the continuation of the original patch, except with Ingo's feedback about the ordering comments we have and how we reference them throughout the code. Please consider for v4.6. Thanks! Changes from v5: - Added patch 1 (Ingo). Changes from v4: - Integrated feedback from Hugh, specifically: * check for page->mapping change with page lock held when detecting shm race. * move inode assign, if the mapping still matches what we expect should we have a valid inode. * move iput out of rcu lock. Changes from v3: - Redo mapping sanity check, now do not halt the kernel. Changes from v2: - Minor adjustments by peterz. - Applies on top of -next-20160118 Changes from v1: - Remove unnecesary mb, as atomic_inc returning does what we need. - Fix bogus mapping load. - Minor code cleanups/comments. Davidlohr Bueso (2): futex: Rename barrier references in ordering guarantees futex: Remove requirement for lock_page in get_futex_key kernel/futex.c | 131 ++++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 107 insertions(+), 24 deletions(-) -- 2.1.4