Message ID | 20230821034637.34630-11-byungchul@sk.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CB5FEE4996 for <linux-mm@archiver.kernel.org>; Mon, 21 Aug 2023 03:50:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8B67B94000A; Sun, 20 Aug 2023 23:49:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8205494000E; Sun, 20 Aug 2023 23:49:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 41E5D94000A; Sun, 20 Aug 2023 23:49:53 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 29D4A94000C for <linux-mm@kvack.org>; Sun, 20 Aug 2023 23:49:53 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 0BEFFB1AE8 for <linux-mm@kvack.org>; Mon, 21 Aug 2023 03:49:53 +0000 (UTC) X-FDA: 81146733066.27.29EE9D5 Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by imf05.hostedemail.com (Postfix) with ESMTP id 2E86D100002 for <linux-mm@kvack.org>; Mon, 21 Aug 2023 03:49:50 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf05.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1692589791; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=rmNEJTaUYs7UE2cWJwbcfEU9pc5mtKN+YN10z92GqIs=; b=FUv24YUO7wqr/TpJ526ig1yzgE+3xPZAYD9XHw4azst6nqqYZ08Qxyw6RNaSDE82c1BX3C QHDh9/01n0cUIBfCdehcm5lk3QIj+bIgNxZJCaEiYNE2cVyhALUNcFrOYRdLMpw87VoJkg 8dR1rTB6iwUY1cQAYdLWdBA5F6X2dQA= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf05.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1692589791; a=rsa-sha256; cv=none; b=Smii4VctE8KqSdlyunuQf1XNDqVplwD8kDk0VjBCi2jRabfgmXrUp2Kt+q8O+ulYAANXc1 d/Rynacn/HE4L+hn8YXtkG0lzK4dxCW4fpaxOk2qR16DlFAF45wQBZwEzyFBl56WewTqtj cUYJk3OwPTZNtiDIGiESu7K9tFmHt3c= X-AuditID: a67dfc5b-d6dff70000001748-8b-64e2ded5c2df From: Byungchul Park <byungchul@sk.com> To: linux-kernel@vger.kernel.org Cc: kernel_team@skhynix.com, torvalds@linux-foundation.org, damien.lemoal@opensource.wdc.com, linux-ide@vger.kernel.org, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, mingo@redhat.com, peterz@infradead.org, will@kernel.org, tglx@linutronix.de, rostedt@goodmis.org, joel@joelfernandes.org, sashal@kernel.org, daniel.vetter@ffwll.ch, duyuyang@gmail.com, johannes.berg@intel.com, tj@kernel.org, tytso@mit.edu, willy@infradead.org, david@fromorbit.com, amir73il@gmail.com, gregkh@linuxfoundation.org, kernel-team@lge.com, linux-mm@kvack.org, akpm@linux-foundation.org, mhocko@kernel.org, minchan@kernel.org, hannes@cmpxchg.org, vdavydov.dev@gmail.com, sj@kernel.org, jglisse@redhat.com, dennis@kernel.org, cl@linux.com, penberg@kernel.org, rientjes@google.com, vbabka@suse.cz, ngupta@vflare.org, linux-block@vger.kernel.org, josef@toxicpanda.com, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, jack@suse.cz, jlayton@kernel.org, dan.j.williams@intel.com, hch@infradead.org, djwong@kernel.org, dri-devel@lists.freedesktop.org, rodrigosiqueiramelo@gmail.com, melissa.srw@gmail.com, hamohammed.sa@gmail.com, 42.hyeyoo@gmail.com, chris.p.wilson@intel.com, gwan-gyeong.mun@intel.com, max.byungchul.park@gmail.com, boqun.feng@gmail.com, longman@redhat.com, hdanton@sina.com, her0gyugyu@gmail.com Subject: [RESEND PATCH v10 10/25] dept: Apply sdt_might_sleep_{start,end}() to waitqueue wait Date: Mon, 21 Aug 2023 12:46:22 +0900 Message-Id: <20230821034637.34630-11-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230821034637.34630-1-byungchul@sk.com> References: <20230821034637.34630-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSfUzMcRzHfX8P39/dcfbbYX5kw00zzLPsw8z857cZ85zJQzf3m26u2JWS h+0oIUqyioSrdM51id/Z5HpwotxxnSSk1a07j+lR3JEKFf757LX3e3u//vlISMU9eqJEExUj 6KJUWiWWUbKOUbmzX3p86nnvuxbDuTPzwP/tJAU5xRYMtTcLEVjuHCWgtWolvA60I+ireUZC VkYtglxvMwl3qj0Iyk3HMLx4Nxrq/V0YnBmnMSTkF2N43tZPQFNmOgGF4mp4mpZHgL33IwVZ rRguZSUQg+cTAb1GMwNGfTD4TNkM9Hvng9Pziobyxllw8UoThrJyJwXVJT4CXthyMHgsv2l4 Wu2goPZcCg1FnXkY2gJGEoz+Lgbq7AYCbiUODiV9/UXD4xQ7AUnXbhNQ/6YUQcXJFgJEyysM D/3tBFjFDBJ+Xq9C4EvtYOD4mV4GLh1NRXD6eCYFzw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hBYMt5j YKx8S0GzYxyDOmMeDr/utyCwX/9Gw+VrczQUp1xHkHU5n4CO389ISBsIhvmfWmrPLq55fBLn 0uoSOLNTR3AvSljuSdEgzaVZ+mlOZzzL1ZX5cqWNoxh3d9pBckbDVYozTmtoLvNbN8ZNtLfT 3PPCeYIb6S7Ajqw/LgqV8zGKeF61dXekKMrWcP5MuTDRcqMfJaP7dCYSClhmO1v9qh0tMcVs Znt75/Al9mS82brsT2QmEglwJt2NLfveRi0VHkwE++PjGLnEBOPDJusHllnMhLAtl57+k25k K2qtyyLhYm5sqF8ekDDB7NTwByIHiXRohQF5KpTxsTJFTHCAOjoqSalIDDh5OtaIFn9Gf8GV a0IzXfubECNAUndx5Hq7XELK4tVJsU2IFeBST/G62WG5RCyXJZ3jVadPqM7G8OomtE5ASNeI DxzjIyXMKVkcH83zZ3jV/xYTCL2SUfjglHDCoKvpCQuLWNDM1K7Kymqs2kSFtbmpiIPmOFeI e+Cdna899hl6fK2fcdNIQugW7z0X41LrvS0+JibIvyv0UZXyo/tEn/are8O94jXB6bCg8UN6 i9dhr9rVzogkad7sUdPu38QOR83jbdvWlh92PRCllDiZ6T5N33THXimhjpIF+eIqtewvNPj9 uy8DAAA= X-CFilter-Loop: Reflected X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 2E86D100002 X-Stat-Signature: xtqs1nzn1m4jj6obp9wyb3qrpc5beq15 X-HE-Tag: 1692589790-986135 X-HE-Meta: U2FsdGVkX1+YM0wUarfCHqBZFCfhzEJ8wlDJaOlH34XGc0Hf0C5R8eVcPpfxcZKBfeEgEVd/3lPvDmMJYO1YB3Yqo8nBQt0k1C+gnRhixAtYBwAkOEomaNxTy+YmFsMBJzYlqtzdit3S4RDXhRroqEd4iWAVF3/heFjndPVwKG555kPIbSnhLI60qsKmSj7N2Qq6Uj8/P0JJ6rRAYIGYv1JgqKRpHks8F8FlSjenVsSFasKzzo98pivNUAuALQkFC2CqHJU8akB1O7TYp+vhR1rU9BEoQalnind3701SsC8oPejuUX/83dsY8ySHNAFs5ngEFIPpBGkZxjAqE4AJ1DJQi2VUI/06AfHfUwFPt8v8g9Dnh0+gGMRXW+qO4OMTlOoDjQfBTFayMaCsdbDG8A8mPPgOf3Apx3mOUhxZgtzUwPEdqPHb6ythsKUn60J6hY1GA4N02NhxBnsrXGJYKdtxB1gbaenCCtoxiMxPGPHAE5FIAlThydOa2/az/R9PA4FxxXUH/G/i6mb4XWcNJdQtTS41CgMqPxJP3LrigM789/Jmbr2u1+BFA4e/pYveHQtvfGLWMg0oSwD0mctv0vFlsgUK8DiUpWomD0ZI8bqTUiG2cFFWI9BZByqYepsd9fcme9zFearmJ6dk1GxpmpLzW1noyI0JrF/19EvWkvaJVzHB3KjBECDqqgNOLHCpBiWYiNabF78DQ1CIDVPdsfaxOC7wgdeYoXKd3OQxUezBWl8jR/5AxCOWrj/KvwXBKZn4Y6026MxViKI/J8nShUDc7su5znoYXXGqwezTCR6MvlQanYTDdKoEF9HswlNJtjyfJ1Buf6OtKSNIR3yvbQtdVXBoXMdZYVFBpbarQ7P0k7XJ3134gfADAoIeG0ISL/lSeAZGrQe/wGh4WPr1R7a5V09csTEzQOA06+AEfChpJRjKcG0UoKnYkg/b0DA8kl8Bfx5nM78PYhXZcIa ItBfB1M3 V3GKxtOdYesNNlpFK8t+MmfOZZFMaRc6e7fa2oTXSUqA+h6o8ep/gf5Cy/az2f+Jq7yhE6LNPll7RLVZupEYs3dtrzTLYuQEntGmErPjZ7V+lYLZAt+HQprKLBm/vvth9mf8r5K02TcyhnKW1rKXLhtcngA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
DEPT(Dependency Tracker)
|
expand
|
diff --git a/include/linux/wait.h b/include/linux/wait.h index a0307b516b09..ff349e609da7 100644 --- a/include/linux/wait.h +++ b/include/linux/wait.h @@ -7,6 +7,7 @@ #include <linux/list.h> #include <linux/stddef.h> #include <linux/spinlock.h> +#include <linux/dept_sdt.h> #include <asm/current.h> #include <uapi/linux/wait.h> @@ -303,6 +304,7 @@ extern void init_wait_entry(struct wait_queue_entry *wq_entry, int flags); struct wait_queue_entry __wq_entry; \ long __ret = ret; /* explicit shadow */ \ \ + sdt_might_sleep_start(NULL); \ init_wait_entry(&__wq_entry, exclusive ? WQ_FLAG_EXCLUSIVE : 0); \ for (;;) { \ long __int = prepare_to_wait_event(&wq_head, &__wq_entry, state);\ @@ -318,6 +320,7 @@ extern void init_wait_entry(struct wait_queue_entry *wq_entry, int flags); cmd; \ } \ finish_wait(&wq_head, &__wq_entry); \ + sdt_might_sleep_end(); \ __out: __ret; \ })
Makes Dept able to track dependencies by waitqueue waits. Signed-off-by: Byungchul Park <byungchul@sk.com> --- include/linux/wait.h | 3 +++ 1 file changed, 3 insertions(+)