can't find file to patch at input line 120 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |From patchwork Thu Jun 3 19:59:11 2021 |Content-Type: text/plain; charset="utf-8" |MIME-Version: 1.0 |Content-Transfer-Encoding: 8bit |X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Almeida?= | |X-Patchwork-Id: 43667 |Return-Path: |X-Original-To: patchwork@sourceware.org |Delivered-To: patchwork@sourceware.org |Received: from server2.sourceware.org (localhost [IPv6:::1]) | by sourceware.org (Postfix) with ESMTP id 22FC33835838 | for ; Thu, 3 Jun 2021 20:02:16 +0000 (GMT) |DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 22FC33835838 |DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; | s=default; t=1622750536; | bh=eIeyqhwEIDIpP+Ltg3G2w785ilb35WPCu1YoEmcw2zA=; | h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: | List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: | From; | b=jgGWgrlwm2OFiscezCGoQLtWOE3wBTVimogAnXQEol1aNOmOyl0UJ3Nl+yFnxVeZE | TndlmAD9xAtchG+XE/XfP81d7kvWxv6xQurcHe2TD4rEHlXInpVqQGVRkJONp7Mgmt | GcN8SUApxeLjjqbLF1dE+rgvo2mM9v9X8t/AJ/EI= |X-Original-To: libc-alpha@sourceware.org |Delivered-To: libc-alpha@sourceware.org |Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) | by sourceware.org (Postfix) with ESMTPS id 8F2A5383302B | for ; Thu, 3 Jun 2021 20:00:25 +0000 (GMT) |DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8F2A5383302B |Received: from [127.0.0.1] (localhost [127.0.0.1]) | (Authenticated sender: tonyk) with ESMTPSA id 3847E1F434FE |To: Thomas Gleixner , Ingo Molnar , | Peter Zijlstra , Darren Hart , | linux-kernel@vger.kernel.org, Steven Rostedt , | Sebastian Andrzej Siewior |Subject: [PATCH v4 02/15] futex2: Add support for shared futexes |Date: Thu, 3 Jun 2021 16:59:11 -0300 |Message-Id: <20210603195924.361327-3-andrealmeid@collabora.com> |X-Mailer: git-send-email 2.31.1 |In-Reply-To: <20210603195924.361327-1-andrealmeid@collabora.com> |References: <20210603195924.361327-1-andrealmeid@collabora.com> |MIME-Version: 1.0 |X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, | KAM_DMARC_STATUS, KAM_MANYTO, SPF_HELO_PASS, SPF_PASS, TXREP, | UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.2 |X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on | server2.sourceware.org |X-BeenThere: libc-alpha@sourceware.org |X-Mailman-Version: 2.1.29 |Precedence: list |List-Id: Libc-alpha mailing list |List-Unsubscribe: , | |List-Archive: |List-Post: |List-Help: |List-Subscribe: , | |X-Patchwork-Original-From: =?utf-8?q?Andr=C3=A9_Almeida_via_Libc-alpha?= | |From: =?utf-8?q?Andr=C3=A9_Almeida?= |Reply-To: =?utf-8?q?Andr=C3=A9_Almeida?= |Cc: fweimer@redhat.com, shuah@kernel.org, Davidlohr Bueso , | libc-alpha@sourceware.org, corbet@lwn.net, linux-api@vger.kernel.org, | z.figura12@gmail.com, | =?utf-8?q?Andr=C3=A9_Almeida?= , | malteskarupke@fastmail.fm, acme@kernel.org, linux-kselftest@vger.kernel.org, | Andrey Semashev , joel@joelfernandes.org, | Peter Oskolkov , kernel@collabora.com, krisman@collabora.com, | pgriffais@valvesoftware.com |Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org |Sender: "Libc-alpha" | | |Add support for shared futexes for cross-process resources. This design |relies on the same approach done in old futex to create an unique id for |file-backed shared memory, by using a counter at struct inode. | |There are two types of futexes: private and shared ones. The private are |futexes meant to be used by threads that shares the same memory space, |are easier to be uniquely identified an thus can have some performance |optimization. The elements for identifying one are: the start address of |the page where the address is, the address offset within the page and |the current->mm pointer. | |Now, for uniquely identifying shared futex: | |- If the page containing the user address is an anonymous page, we can | just use the same data used for private futexes (the start address of | the page, the address offset within the page and the current->mm | pointer) that will be enough for uniquely identifying such futex. We | also set one bit at the key to differentiate if a private futex is | used on the same address (mixing shared and private calls are not | allowed). | |- If the page is file-backed, current->mm maybe isn't the same one for | every user of this futex, so we need to use other data: the | page->index, an UUID for the struct inode and the offset within the | page. | |Note that members of futex_key doesn't have any particular meaning after |they are part of the struct - they are just bytes to identify a futex. |Given that, we don't need to use a particular name or type that matches |the original data, we only need to care about the bitsize of each |component and make both private and shared data fit in the same memory |space. | |Signed-off-by: André Almeida |--- | fs/inode.c | 1 + | include/linux/fs.h | 1 + | include/uapi/linux/futex.h | 2 + | kernel/futex2.c | 221 +++++++++++++++++++++++++++++++++++-- | 4 files changed, 218 insertions(+), 7 deletions(-) | |diff --git a/fs/inode.c b/fs/inode.c |index c93500d84264..73e82a304d10 100644 |--- a/fs/inode.c |+++ b/fs/inode.c -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 132 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/include/linux/fs.h b/include/linux/fs.h |index c3c88fdb9b2a..5dd112c04357 100644 |--- a/include/linux/fs.h |+++ b/include/linux/fs.h -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 144 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/include/uapi/linux/futex.h b/include/uapi/linux/futex.h |index 8d30f4b6d094..70ea66fffb1c 100644 |--- a/include/uapi/linux/futex.h |+++ b/include/uapi/linux/futex.h -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored patching file kernel/futex2.c