From patchwork Wed May 29 18:00:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Schubert X-Patchwork-Id: 13679444 Received: from outbound-ip168a.ess.barracuda.com (outbound-ip168a.ess.barracuda.com [209.222.82.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4D2942045 for ; Wed, 29 May 2024 19:35:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=209.222.82.36 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717011325; cv=fail; b=jN0egr/ND6hIcjTs++PXukbdb6k6E+tfYNACFfbSA25fSZ114BFlUdnEyVh6MAJ1CV2bkxP/aN90wguhicWTR99CM9rzMFUc8PRtFGbvnmgyLhRtskCHo8RHiQXC2Hod5KPGvv0gEs9ddizFqgYHK/TgHrgEdfDDpO6Qkq29krM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717011325; c=relaxed/simple; bh=hGZY0/CVL5YnixNcNqwYzhhkGec435ldTQG/hUg5tmU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=R61Fxv3jp4S83/ydi/8qW4h3DDQGVh1lgMjqElTMPOnJVNYbqH3FAO2ceKYIDcYtSsKV/qHOBwY8VLu5xSwW6rmfLO1A2xBjEjlMHsiZgP+YYml26wihaM3UCJZRhD5g68HPO/wgHxvgmcIBg5s1lOtwkuQKusbndwlsykloeiE= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ddn.com; spf=pass smtp.mailfrom=ddn.com; dkim=pass (1024-bit key) header.d=ddn.com header.i=@ddn.com header.b=Kyyw6/of; arc=fail smtp.client-ip=209.222.82.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ddn.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ddn.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ddn.com header.i=@ddn.com header.b="Kyyw6/of" Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2100.outbound.protection.outlook.com [104.47.58.100]) by mx-outbound10-110.us-east-2a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 29 May 2024 19:35:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=REFUz4tBTgf3ZMyHCA8dmH8Bc3i6lf+PvZumcMr6JazAQHOLIggRBPf88jydTZ+JrrZnhz+VNpeCB9G1/uBSfxwiEA6tywV/A0MxOSmbRbAIR03Qgc5UOsUd11zhdpeEpEjmiWNE4CGuS3mvagD2Hz1oCIl6MOPyH0fRhHKDXYA1ZDLQCRV/Iw+14EfkNNsPr0DpBg2v5kFY32XcnFj/K4DY0Ze0QQsS9+W1FTOXzDrvsKtIdsT0jAdMtLFDO+peQKqtuCDCoKU1fW872dJWfSYoAgioLwLMbfwwvr9EIlP9p97X0kG00o9UAkeqn95GZZGj2s6xyg4QF79wi5YN6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Wg1bCdmL0ksCHj/ERN1DKLMkr+cbKMVzZ+pUtVnyp0Y=; b=LVG8Ye8NWpUBAzbr6USm+vmZKW2GwISg98zLeQJVhyiEFwEmC3Q2xM2cdSm62F87NTJBnLthH7GrSEe9jXP7DE46E/k1ihsTLbl4UVH3gAgzkRewcx0fuf7N/wPy2PYgdUSq6v61yjuzurFxleapyTnm1vBB6SFg7GhiI5PckTwwo//lFMaJCLPpqC1csBX0pZfvv4EqgAXYF7ciEWUNsfMbres39CBustZ9NZGWPjn7E5eu5cwwN8pabQhJJq1Hb6spopnRi1BFPd40vWr7g0QVQ9Mi2AaRySGrdLt6dboPVkfpzMJuAEfqTEBeAxgd5w4gWIG/g2vkmWDVTErKAw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 50.222.100.11) smtp.rcpttodomain=ddn.com smtp.mailfrom=ddn.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=ddn.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddn.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Wg1bCdmL0ksCHj/ERN1DKLMkr+cbKMVzZ+pUtVnyp0Y=; b=Kyyw6/ofXtHhI+6HWGEIJZwUWF/NEJrXuydgXLyVaQjUSNhiFndhC2ptgmNhxkYsiVNVeEEtVXm4LqWfRz40hcD0TXCPACyzB/2BOrJb2YIKVffEQyJmED7oFNP6bxFuBkUDPKPecWfNdlsIF2KuhFleL5PsqjMrEV7BmIZmq2M= Received: from PH7PR13CA0012.namprd13.prod.outlook.com (2603:10b6:510:174::18) by SA0PR19MB4635.namprd19.prod.outlook.com (2603:10b6:806:bf::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.20; Wed, 29 May 2024 18:01:04 +0000 Received: from SN1PEPF0002529D.namprd05.prod.outlook.com (2603:10b6:510:174:cafe::c5) by PH7PR13CA0012.outlook.office365.com (2603:10b6:510:174::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.20 via Frontend Transport; Wed, 29 May 2024 18:01:04 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 50.222.100.11) smtp.mailfrom=ddn.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ddn.com; Received-SPF: Pass (protection.outlook.com: domain of ddn.com designates 50.222.100.11 as permitted sender) receiver=protection.outlook.com; client-ip=50.222.100.11; helo=uww-mrp-01.datadirectnet.com; pr=C Received: from uww-mrp-01.datadirectnet.com (50.222.100.11) by SN1PEPF0002529D.mail.protection.outlook.com (10.167.242.4) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7633.15 via Frontend Transport; Wed, 29 May 2024 18:01:04 +0000 Received: from localhost (unknown [10.68.0.8]) by uww-mrp-01.datadirectnet.com (Postfix) with ESMTP id D3AFD25; Wed, 29 May 2024 18:01:03 +0000 (UTC) From: Bernd Schubert Date: Wed, 29 May 2024 20:00:50 +0200 Subject: [PATCH RFC v2 15/19] export __wake_on_current_cpu Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240529-fuse-uring-for-6-9-rfc2-out-v1-15-d149476b1d65@ddn.com> References: <20240529-fuse-uring-for-6-9-rfc2-out-v1-0-d149476b1d65@ddn.com> In-Reply-To: <20240529-fuse-uring-for-6-9-rfc2-out-v1-0-d149476b1d65@ddn.com> To: Miklos Szeredi , Amir Goldstein , linux-fsdevel@vger.kernel.org, Bernd Schubert , bernd.schubert@fastmail.fm Cc: Ingo Molnar , Peter Zijlstra , Andrei Vagin X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1717005648; l=935; i=bschubert@ddn.com; s=20240529; h=from:subject:message-id; bh=hGZY0/CVL5YnixNcNqwYzhhkGec435ldTQG/hUg5tmU=; b=pUctWm5Q8BHDdNUsGmPBDpqG7t5bfcizOYdOOIGmgb2r9MNQHtHGnZjvgN6QyPrPnxZ8PbIQ3 CJhOvtDXXx0C8QHvz/7LaW0VDttIiGDJlnhK2mKmfjfG640MkEedvd1 X-Developer-Key: i=bschubert@ddn.com; a=ed25519; pk=EZVU4bq64+flgoWFCVQoj0URAs3Urjno+1fIq9ZJx8Y= X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF0002529D:EE_|SA0PR19MB4635:EE_ X-MS-Office365-Filtering-Correlation-Id: c7720fc4-52b1-4beb-a642-08dc80094eeb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|36860700004|1800799015|82310400017; X-Microsoft-Antispam-Message-Info: =?utf-8?q?qkdxLn9k8A1Znu96Zplv+yvv/sUV7zL?= =?utf-8?q?DGS5U45T2ad6bbtQxMdFeVB6eRscQuJEl2qGZkkYqETe74blAJQCEr25F+cb1ebbb?= =?utf-8?q?z7bY1Klgx/L5Xy9E2a2rV5xK/1/sIxuyIqgTG3mDG0jGStJB9NTGVC0bOLg+Nbg9H?= =?utf-8?q?CGJPlHlMYiWVHG4IDajJNVPlgZxdkJAyzSKcQt684JDGq1AmF9SwMQtE7fqms2Bl/?= =?utf-8?q?v+gAJk8TBwtjiBNHS3zfNhlWmrwjhisIVozVa8TOQ98Ps6JZgVOrvJ7XTOENtbJOc?= =?utf-8?q?qGcdhA/OzwFG80JydO3a2OWQZJILR0bR/e6pzv9fI4NQPgaJUjMU6ru5PERUNOavl?= =?utf-8?q?12XlX6/JNZG5TLMx9nB9YoFQiMB5D95ZO4N0eUdZEXbvN0Kr9woTFBPfdmo3DrJ8k?= =?utf-8?q?4jytpKyAOI8Lk+TMN0riXwp7COsSnIk3cdLK7lteqHQA7lA9D/jhiCoMrGcqL10X5?= =?utf-8?q?qaVW8yMpMs9oCJpL0KXXLY4gqvSd371VPa6/PVXA+Sn9qOzJKr3pD3ek1stKus9l0?= =?utf-8?q?ltTBQzVTRJwuv50B7bGps5HgKkyTu1kXyUhDZI0Djtyy9p3JIrOUbXJ8wMaoOjfPT?= =?utf-8?q?HBM9BkzTcnxrXs03wG/909e+l9+/oHAqbwJ7pn8vHxnGXoic5DLoLK/IT8VPVY0tW?= =?utf-8?q?8pdc9TScOyiWUMW3mh1i2mIpxhAgUXxGo0w7MMgYugTnNnuGpHDLPV8ajbvnEMZ7Z?= =?utf-8?q?457NE3aJlF9yPVVOYc5Wq6WwNAfmL3OcZUDh01RHE6Mr+40vPhNgSZve/MeQa+iNP?= =?utf-8?q?DJuY0Tm/C++GCplJ/ZLb8F4O4liK34Ob15MSqHMu/A/hPvW5907FIx5MCQqIsFcVh?= =?utf-8?q?rYG0rnzdzT3G76qJw8ggALL71BnS6RGaT8VmIt0REzC1S4eNIxjzdqFlLholABksA?= =?utf-8?q?PBItGOGn12zwpwoMKB4RnzjtJKwWdHp6lUUo8Nqa0B3Nm1As84RgI2duarYObvIVY?= =?utf-8?q?gk54LpdVbQ+fQowRsDm+hAxw881aIk0P8h2fC1zJrs9QKMBqtBAJBst67lkJxXm+L?= =?utf-8?q?vKb4BPUTz+63QF4Lis2G7WwVmVqEAArHjxaIDFom4Ac1sf7i+AC66qGiHCHs7GHUM?= =?utf-8?q?4aQ/TCTmxbA1IP0wrnzCm7DSe4mOq5OyhmHVegbtqye9uMOpaRcXNc0OTaSLVkjHs?= =?utf-8?q?RMM/ASwJanN3NkxlyTzrUiAI+tBjgRWWb5u3LLHKiGYertkK33foDtTaN9DT+XyOd?= =?utf-8?q?xpK74B/ruw3fLZCiIviU10UMYhlph/BbwbVmP4/eJILJUqZXzfyzl9m90gWtVB0g6?= =?utf-8?q?XBinMLsxc9uvWeSvC4qn7AA3kR/pcgx1meohVy9WObbq0XxORc3aOzR/IywkqIxyx?= =?utf-8?q?sOeuPn9c6GGd?= X-Forefront-Antispam-Report: CIP:50.222.100.11;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:uww-mrp-01.datadirectnet.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(376005)(36860700004)(1800799015)(82310400017);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: DucuI3X/3Amf4l/znaspGNIwabsmwGPpQ9CWNpEQQ7loXrCnNjFAD59+mUjKD7Q+9x2Vnm2ZAtuumLkQs9WnMXWe7lwab4IVyM66AQNm06Ejy/bhhhA3o+fAq4lepZe5pw/YYu/lrN7R8414XTuB3YE1EMnQpMyhBXrYAmB/kQgpv+oy4DAh3pNREUF0ftKB+KjJEwZ31WAqgXuyua3U1L2dS6OFnWi/meEhyiJOZ7pVCwAtpjx4uFk/J3hyNh6yUlg1Blw2jrhPr1W5rVFtK242fSJlso9cr2mDeHlKh22NpzZfTvGsyVGypEHi3ZEK37ueKMRXj8WDfkFgXdA7lPZ1MzCUTGyJgMbW8g8O7OUNeyakBvh/Yx+huYCCiTIqzziUXQXV0GjuwQY0YNr1hNYO0soiLqa0fE81Fh/uBg6U4Kn6NifvmSZafS7XRRiB0fKzOsil2ktnii7sI8/fzZGkwWEBp1Mpq03+DnfQCb2LuHH1LN7QMgN3I3hHti64vzvFh79eTuz3N0lVN2/VG0mAO00i1raH9xYD97Fl0vX9WtZq+FEwRCdQhZKbzYtpZCNa7Uey1wGFSzxauueEm4OlMQvr/0SIGAJDa80jM6J23i7Bs9MEsjCj60JTvPIUJAGsD+PrSomG+P4WpEeiBg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2024 18:01:04.5957 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c7720fc4-52b1-4beb-a642-08dc80094eeb X-MS-Exchange-CrossTenant-Id: 753b6e26-6fd3-43e6-8248-3f1735d59bb4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=753b6e26-6fd3-43e6-8248-3f1735d59bb4;Ip=[50.222.100.11];Helo=[uww-mrp-01.datadirectnet.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF0002529D.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR19MB4635 X-OriginatorOrg: ddn.com X-BESS-ID: 1717011322-102670-12914-11745-1 X-BESS-VER: 2019.1_20240429.2309 X-BESS-Apparent-Source-IP: 104.47.58.100 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVpYGFkBGBlAsMTHF0MDCItEw2d IiLc3c2MA42SQ11cjA2NLIzNTAKEWpNhYAnFFnxEAAAAA= X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.256586 [from cloudscan11-249.us-east-2a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound 0.00 BSF_SC0_MISMATCH_TO META: Envelope rcpt doesn't match header X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS124931 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND, BSF_SC0_MISMATCH_TO X-BESS-BRTS-Status: 1 This is needed by fuse-over-io-uring to wake up the waiting application thread on the core it was submitted from. Avoiding core switching is actually a major factor for fuse performance improvements of fuse-over-io-uring. Signed-off-by: Bernd Schubert Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Andrei Vagin Reviewed-by: Josef Bacik --- kernel/sched/wait.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/wait.c b/kernel/sched/wait.c index 51e38f5f4701..6576a1ef5d43 100644 --- a/kernel/sched/wait.c +++ b/kernel/sched/wait.c @@ -132,6 +132,7 @@ void __wake_up_on_current_cpu(struct wait_queue_head *wq_head, unsigned int mode { __wake_up_common_lock(wq_head, mode, 1, WF_CURRENT_CPU, key); } +EXPORT_SYMBOL(__wake_up_on_current_cpu); /* * Same as __wake_up but called with the spinlock in wait_queue_head_t held.