Message ID | 20240124115938.80132-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 A82B8C46CD2 for <linux-mm@archiver.kernel.org>; Wed, 24 Jan 2024 12:00:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E33CC6B008C; Wed, 24 Jan 2024 07:00:01 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DE5208D0006; Wed, 24 Jan 2024 07:00:01 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C0DC76B0093; Wed, 24 Jan 2024 07:00:01 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id B30366B008C for <linux-mm@kvack.org>; Wed, 24 Jan 2024 07:00:01 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 8E03D1A0C05 for <linux-mm@kvack.org>; Wed, 24 Jan 2024 12:00:01 +0000 (UTC) X-FDA: 81714061002.16.116D6EE Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by imf24.hostedemail.com (Postfix) with ESMTP id AE26F180003 for <linux-mm@kvack.org>; Wed, 24 Jan 2024 11:59:59 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=none; spf=pass (imf24.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706097600; 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=z7OkeT6xvSEqQwLdFXJGyxH34kbodoT4wnSvM20EAlw=; b=jbNHLFoXA94O5xcJjxbmrC5YKbCdBAsCSZvH69BSJWs4PVDFkCL5D6q6DifWJ3Ijm3sRBx VMZBordxzmM8luWVaSJXM3Ex1gNgLkpfkilNkY6lZuthRP+nP5Zn4dwBaPICeA+ODQ3SVt sF+a6IPahiIPkvFh/+G47/Nsd5ktod0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706097600; a=rsa-sha256; cv=none; b=nLhyB54til8YDxZcmcBuduJjSLI9r4JK6LHBFCqqv20Py074txh0BjtLs9YNmygNawf9el S5EWYDttBl8d2yvgQzU32mXyqinoPfI2Uwa2LUTflUCcoEVo8YJ1HsWuq+zoZM1J1Fc/Iw MDiTJXiEffmpygUlBrUeVB6A0SP6nWc= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=none; spf=pass (imf24.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com; dmarc=none X-AuditID: a67dfc5b-d85ff70000001748-e5-65b0fbb562db 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: [PATCH v11 10/26] dept: Apply sdt_might_sleep_{start,end}() to hashed-waitqueue wait Date: Wed, 24 Jan 2024 20:59:21 +0900 Message-Id: <20240124115938.80132-11-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240124115938.80132-1-byungchul@sk.com> References: <20240124115938.80132-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSfUzMcRzHfb+/x7scvx3ml+Zhh9kYYmWfhfiLn43N1h82z7fuN3fTxS5F nhaKlChWp8TqcM51PfjlIeraFVKeOrpxUkkzOT0qF9cTV+afz957v/d+ff55s4TyETWD1UUf EA3R6igVLSflXRPzF98fKhGDeypkkHEuGLw/k0nILbbR4CwqQGC7ewKD5+l6eD/QiWDoVT0B xkwngvzPzQTcrWlBYLecpKHhyyRweXtoqMtMpeHU9WIa3nQMY2jKuoihQNoEL9JNGBy+dhKM HhquGE9h//mGwWe2MmBOmA9tlhwGhj8vg7qWdxTYGxdB9rUmGirsdSTUlLVhaHiUS0OL7Q8F L2pqSXBmpFFQ2G2ioWPATIDZ28PAW0cehpJEP+h0/ygFz9IcGE7fuIPB9aEcQWVyKwbJ9o6G x95ODKVSJgGDt54iaDvfxUDSOR8DV06cR5CalEVC/cgzChKbQmHody69Nkx43NlDCIml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MYqqVCAn7deoag79wXBnLOehkoOnEOQX7OZRJax5ooyO6KhtGfxfS6GKFxYJAQsqsP CbYRIym0lPLCw2vdjJBd18kIRilNqDaHCWW1/Vgo+eahBMlyhhakbxcZIe+LEwtfX75khOYr o6Tw3mnAsaE7ZasTxGR1uqiNWLtPluju1lMHXezhsacPmUzkovNQAMtzy/nhSzXMBNPcIt7l 8hITHMTN46sLPlB5SMYS3OlA3jz04u9gGreb9/0a8hcsS3ILeelB/EQs51bwzQ3fmX/OuXx5 Vf1fT4A/r7jaSU6wgovmey3nmQtIZkSTLChInZKuUamTo5fqkhIzUtSHl8Yf0EjI/zOmYz59 DRpu39iAOBYpJ8vXWSpFBaVK12VoGhDPEsoguSv4jqiQJ6gyjojaA3u1acmirgGFsKRypnzT DnGfgtuvShWTRPGgqP3fYjZgViZa9gPHbn069bZ3s/mGOmRanP1tXXzZ4O8FgVxu+PzF20Lt wYs1T2IebVpZ07IhJMlnmr3d/SYubE5FkDQv9cgi6+NPzlWKWGO+YX9dU5xU4bC7o/Ql0Zpd RbdsbseC9YEoVbb3dMDQk/T2oyuOqwa2KIMDZ2iq7s4ndxX9HFkzvXGPktQlqqLCCK1O9Qdg X4soLwMAAA== X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: AE26F180003 X-Rspam-User: X-Stat-Signature: mje86sanqd9kdpba754b8yfqcdwrqrh3 X-Rspamd-Server: rspam03 X-HE-Tag: 1706097599-419137 X-HE-Meta: U2FsdGVkX18nXufxELGqmRKfdg1CZ6P/j6U9X0cWvwZGeUkEqs5R+o/bjDi2MFMt5vk52dbzOw5wIc05/F3+DOlNmXl2AXC6xfFxdfGWkidREkSZup02qC/VWME62ocw52k3tt9K7o9uEp0yE9m4ViYvBxgJBDFLBqyMkjVbSRLMI3xVlgUqqcg/9F+yRV3xAIbfHF9SyEiHz9oJEX7HGYeempbAMBOkt0OJQp3xh/tF3E5+OrjxWKCQLN8qxF8o7jEfj91coveXJh3y6rm/m+fFYiD6wewcWlfapD6Vuznhz/nsIG3q1Z+rPcLyKBXdfdtECHk0SgVLokEbGDYJrfnKxIGkdk3p4v+tVQKGvjr/0LQE/Kv5OhIPVYS50GM9409p0DlKhEEiGtuZxQPiC3FaGR1aDZxFCo0lbp7zn9LpnK8NaBFalFbE6+kZzDQP2GAFpw6uqeb2eMOUe0I2S3P977hILqQaYnQHEvDMMYJjS4D7uzT76tWMlIthXhUNd7Cjsyr8satDd8wYYsaGSWId7vmRKWRxZwbLndXmcJ1DbMd/2mKe/Une7rWAhim1ZcGtDodrGft5uipzvp3KwK8U7qEHADN5JLiXoSsJ8AYGxtdL8bC0JUX+5BeP2fFttlfsatAaBrIbDozmk4E/gmGgnAX9yrp5abMZe0bBRAQslEP19QG1ToTk1dcFIjLlvfmN7PovMOPkKR/DYKmlY7ksAwvjQuH2TN4VD0ThqXHW/FCc+MyHvyT0tAgfOSVqzAk7uAuhxBL5D0jENh5+881N/E6Ji0KVevt6Xbzwr0MEKboML0qxL5WWtvapFfNPsc1CamkoSVRgeSEhqwkhkAH0S2PihYidvKpb4VgFpVaPNZkC5Szx1+qlIc9rKClpkJ0VkQWnj22WEBu/whtrYHs9CFMXWbGKxh6v5NHh+qLSXLwZJ89zbD9Zh1B3jTe3hSgNSmNgJv5Mj40kNQL 5bUyouw8 9TvOKptUD+jBZsxf+ABhYWgQYVuu0iWWE7eDNwGZZeyzP0fETEBiv8LWtxihRd2PdqhtRNiuzfwdXrQoVAZox7r8p7g9C6QJLfTAkE8v0P9xFpN8= 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
DEPT(Dependency Tracker)
|
expand
|
diff --git a/include/linux/wait_bit.h b/include/linux/wait_bit.h index 7725b7579b78..fe89282c3e96 100644 --- a/include/linux/wait_bit.h +++ b/include/linux/wait_bit.h @@ -6,6 +6,7 @@ * Linux wait-bit related types and methods: */ #include <linux/wait.h> +#include <linux/dept_sdt.h> struct wait_bit_key { void *flags; @@ -246,6 +247,7 @@ extern wait_queue_head_t *__var_waitqueue(void *p); struct wait_bit_queue_entry __wbq_entry; \ long __ret = ret; /* explicit shadow */ \ \ + sdt_might_sleep_start(NULL); \ init_wait_var_entry(&__wbq_entry, var, \ exclusive ? WQ_FLAG_EXCLUSIVE : 0); \ for (;;) { \ @@ -263,6 +265,7 @@ extern wait_queue_head_t *__var_waitqueue(void *p); cmd; \ } \ finish_wait(__wq_head, &__wbq_entry.wq_entry); \ + sdt_might_sleep_end(); \ __out: __ret; \ })
Makes Dept able to track dependencies by hashed-waitqueue waits. Signed-off-by: Byungchul Park <byungchul@sk.com> --- include/linux/wait_bit.h | 3 +++ 1 file changed, 3 insertions(+)