Message ID | 20230626115700.13873-12-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 3BFB1EB64DA for <linux-mm@archiver.kernel.org>; Mon, 26 Jun 2023 11:59:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0B60F8D000C; Mon, 26 Jun 2023 07:58:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 03C718D0005; Mon, 26 Jun 2023 07:58:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DB1E78D000D; Mon, 26 Jun 2023 07:58:48 -0400 (EDT) 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 C4E058D000C for <linux-mm@kvack.org>; Mon, 26 Jun 2023 07:58:48 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id A8C41160749 for <linux-mm@kvack.org>; Mon, 26 Jun 2023 11:58:48 +0000 (UTC) X-FDA: 80944752336.24.F0071FD Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by imf12.hostedemail.com (Postfix) with ESMTP id 9807040006 for <linux-mm@kvack.org>; Mon, 26 Jun 2023 11:58:46 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=none; spf=pass (imf12.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=1687780727; 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=8FLFgOr6ZaZoCVFPYqBu+aaBEzJ9qdjkz9uHt+9EAvztktGb05wAPvxc6HreY4s9zbJzlT B3AAmtR6N3OocP5I8ZOCAJzHBZOGdEL5oz9MIfHvt88tAsicKP13s47rwkBrpNgNbTAv58 SkLqmkZGukpX6YGGzzcKYFQELtnveM0= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=none; spf=pass (imf12.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1687780727; a=rsa-sha256; cv=none; b=Jv4sPAoNt2XKvanrBdf5ic1ZqwVMW85iYlAEzf7y9QmsEMDbdqoRYuQCJbGlCl6jbBtqek 9keio7lWupx8CRe8iCPoaOSVmvuwitglShfDr8VZCo/kSW1gzeXkvsPVUQKUMky9JmTIS0 LvvvyMQ3FIy5OOBdkcYvfzZiFm4gGLM= X-AuditID: a67dfc5b-d85ff70000001748-46-64997d6c0259 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, paolo.valente@linaro.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 v10 11/25] dept: Apply sdt_might_sleep_{start,end}() to hashed-waitqueue wait Date: Mon, 26 Jun 2023 20:56:46 +0900 Message-Id: <20230626115700.13873-12-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230626115700.13873-1-byungchul@sk.com> References: <20230626115700.13873-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSa0hTYRjHe8/lPWfLxWGVni5UTLppF7vyQBEJQYcoKPrShS7LnXQ0NbY0 DQIzFZspaulMLXTWWjq1tm6ms6VmLrtomq2YVlKZphnWLHNdptSXhx/PH37/58PDknIHPZ1V Rx0RtVFKjQJLKemAX/FizfFzqpB7r4Mg63QIeL6lUlBYacHQUlGGwHL9BAG99zfCi+F+BKOP n5JgyGlBUPy2k4TrjV0I7OZEDG3vJkG7ZxCDMycNw8mSSgytn7wEuHOzCSizboHmTCMBjpEe Cgy9GAoMJwnf+EjAiKmUAVPCXOg25zPgfbsMnF0dNNhfBcO5C24MNXYnBY23uwlou1OIocvy h4bmxiYKWrLSaSj/bMTwadhEgskzyMAzRxEBV5N8oj6vnYCUr79peJDu8NHFawS0v6xGUJv6 hgCrpQNDvaefAJs1h4Sfl+8j6M4YYCD59AgDBScyEK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VNwKze09iLopODkm79ZeFTo CunabQqGfruH4H7+HxTItcMY2vzTFDTIxTT8VdmOYPzsKw7yzixycDHrLIKCvBIG+t4/YiHX FweBhTK8Yxtpm56lSW7DT8Q5X86QLrtImktHOJJ7/ylHyuXjpKEqilS0TlHk6pyfJXL1aUzk uXMcsbwaoohvuBWTmcePOdJ5PsDs+fygYptW0utSJVPM9kRF0uSIlT3q5dPeP2zmMpEXW1AY LwqbxPzgO2bJWFgner2L9JLDhS/FhsIJ1oIUPC1UrBQnOx9yS8VHwiGx/oZl2YywVszr9ixb KcSL9pbn/41GijW3XMtDYaH8Xo8dLVklxInZPjcuQopytKIaheuMqQaNTh8XbU5OSjfq0qK/ TzHIKPQ5joygtQm9HUxwI4FH6g+UsV+c16pYTao53eBGIk+rw5UfL9i0KqVWk35CMqUcNh3X S2Y3+pRn1J8ov9kvJaqEHzTHpGRJOiqZ/m8pPiwiE/XM75tuLFq1vs6Pd6RSlbbfY2ylWQsT 2UcyNu/65cfdpxKVvRUl7jXXd98pkD67PvDz3b58Q6Njiz++7nS7Y84m93KGPbLl9YoT3z1o ef0s1pLgdbYUr1udXOmaiWgKSAOBy0aSHp389UTX8IHSMWb/TpV2deSf+xaMHTutH97dG6lm zEmajVG0yaz5F7H2sVY1AwAA X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 9807040006 X-Rspam-User: X-Stat-Signature: g1e4j4ib51ztom6yocj7xmmj9m8jyeqm X-Rspamd-Server: rspam01 X-HE-Tag: 1687780726-118870 X-HE-Meta: U2FsdGVkX18I07ilflO397Kv+sl9jFBMAKiR6ufpvt4EDNPrvHyWUU2Yv00YlraobaLBVNYBvQ2/W0g9AhElzGp88zaMvorTE4VFUZInqRntyWeFffXFIJc3XxzfOibU/+Y9osmgSeCI/GBWmIkHEhGIQQhtKbl/81Qj2Pi/qI8ZqmWEVy86vsUjfeV5BjljYHn5B+v8bqGzjqUSs6y2ugbJge28z4DY/D/uzjUZTP3zU+4lJzxTw5w6sE9G2lOJLAdOTxeHtbxIkhjK8yY1Z2tCrL6UDLX72LhEH/a9YPoXcvXD/8NK08CbRJXtx8Gcn0O1RnXFOZ6cejATtA0loWE9eniLSrRcE1LrNDBcbuPIqoC17v+xgNjd2uzelUoUpqNnOXkx+PoPO3801o651Is2+uzZiX5T40rR2zVozlOZeBgb9Bg5Ix4V7E6yoHXjssEwD46/zydmVCmbyTJHT9wJmLzct8dbAZPJXZGjTGWI9wlDY6k2Y2GyGRtjAThlEcz32IfWEEvAS6ers8KwD0m+5d5J6kFPc0j2FXzx21opRaVOMysgG19IRQF96IpZyLmkjUx9zRbr42tpxSd/375Jq7MqSUf4VGuHKbvFyuH+yFk+5D2D0aHDPZr8f5FNvUveT81/4doQQcJf71J3ZB5b2451KHKm98h6bPPcwCdc8kiX3+ECy9PNgbTivOV9VgeOsIsDEvxhnlWEiEDWjtiJABr2g5jtVcXYIHMwIMVNN7/GcfYPVU5XgDDPyui73enLzXVb1End5ys+paoXNKEV8vzPWWt4dcfSQkkJgadb4vz83Gf0qS6/fdxP42mpTPpokL9lWTdeda1DWJg6CfhTL88DauYaFIJouq85KcOIc4bgazb53nvOJOkTOiuou5QDFvDpF9aCvO629CLDTl9deL7hPIfJuzj/nvmfQj3gZAzoITGjyZhoyx5jPBlbjOUUdAn2pvaJlenx3Oi XusCXMhB H521s3SdSyZeutKGQ5dBlkfuj97nzBTshHd+xpMNIJFXmmErH1jkxBETAEpGBIult0qj0xZOrpBd/5yoQOciBRHiXk35xHTHApbgkRndr+PsDP2w= 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_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(+)