Message ID | 20240306085513.41482-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 709F7C5475B for <linux-mm@archiver.kernel.org>; Wed, 6 Mar 2024 08:55:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4E93D6B0092; Wed, 6 Mar 2024 03:55:39 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 472046B0095; Wed, 6 Mar 2024 03:55:39 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 29EAA6B0096; Wed, 6 Mar 2024 03:55:39 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 116966B0092 for <linux-mm@kvack.org>; Wed, 6 Mar 2024 03:55:39 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id C39DB80BA4 for <linux-mm@kvack.org>; Wed, 6 Mar 2024 08:55:38 +0000 (UTC) X-FDA: 81866005956.01.5F34E11 Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by imf24.hostedemail.com (Postfix) with ESMTP id F3FED180028 for <linux-mm@kvack.org>; Wed, 6 Mar 2024 08:55:36 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf24.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=1709715337; 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=ljAnFSwEC4WTMCyxLkap4JDCZ0UQ/IIcB/0wt7WgxPH9ShXNXGIiM1oS2xKq2wKVDK4pBN SxlNs/yMfDB55OaKq001oUwkgTeUxlaxVzzvr3w8qORa9VycXghftNjaTOmfqkgG/3NoOu k+0CrmOpB65zetdcMSRlzZVA2fhac9M= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf24.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=1709715337; a=rsa-sha256; cv=none; b=m14PBObjOZAZUknOkWcJvUwlXc2zQV4Zd/3pmlIHNmchDzAOGUNiWpjXuy0uDqV/+VR/qL BP8xx5XXrWXR9RNZDSjxYsSR2hAtThqyo4bSnMcMnriTBqdns3KcrFQNibv0CkNIwW3Bcd 0DRLjtKobAI1XcApyatznlgAXeGEJgM= X-AuditID: a67dfc5b-d85ff70000001748-c8-65e82f7dd99b 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, 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 v13 10/27] dept: Apply sdt_might_sleep_{start,end}() to hashed-waitqueue wait Date: Wed, 6 Mar 2024 17:54:56 +0900 Message-Id: <20240306085513.41482-11-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240306085513.41482-1-byungchul@sk.com> References: <20240306085513.41482-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSf0yMcRzHfb/Pz05nz06bRww7a01WZOJjzJoZz5Y2W+bHmXHco051cqUf xkRlSCpbDt1Sp51bXeJipB9SpESKG09WTa2ppjo77kiRu+ifz177fN577fPHmyUUDyh/VqtL EvU6dZySlpGyUV9T8KkVQ+LKzub1kH9pJbi+nyfBWGmloeNOOQLr/TMYhp9vhQ/uEQQTr98Q YCjoQFDS10PA/eZeBHWWszS8G5gDdpeDhtaCbBoyblXS0PllEkP31SsYym2R0JZnwtAwPkiC YZiGQkMG9owhDOPmMgbM6QHQb7nBwGRfKLT2vqeg7uNyuF7UTUNtXSsJzY/6Mbx7bKSh1zpF QVtzCwkd+TkUVIyZaPjiNhNgdjkYeNtQjOFupkd07tsfCl7kNGA4V3oPg72rBkH9+U8YbNb3 NDS5RjBU2QoI+HX7OYL+y6MMZF0aZ6DwzGUE2VlXScjsDoOJn0Y6fJ3QNOIghMyqFKHOXUwK L028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wdWMPAp0veEw+bMQb9nAO0fGSF5nO83X jJso/nkJxz/O72N4XW0Pw5usp3hb+Uq+tHqY4Iu/eWnearmMeeu3XIa/8tlF8KPt7QzffH2S 4gddRmLfwmjxxlghXpEsqNdujhHHDfXl0IluUcqvhsdMGnLjKyhAxLFhXK3bifyM2WWc2+0j /RzEhnC2rA+0n0l2RMyVte/081z2INdc5mb8TLFLuHejT2c8EjaCG7Aa0D/nIq7ibt2MJ2A6 14/qZzZSNpxr0xbjbCQ2oVkWFKRQJSvlivjwNZqTcakqRcqaowlKK5p+F/O5qRw7+tG1qx6x IiSbI9kSMCRIaXmyJlVZjzgRKQuSnJ0YFKSSWHnqGUGdcFh9Kl7Q1KOFIkq2QLL7gBAjZY/L k4STgpAoqP+3hCggOA29t+zXb38Vms7I9xkPLQ3btL717SJJcIo2ko5yFF2fOO+URbzkolct 9zT4Oh89nGdPq7ZvC6Se2fRPTjwoflsa44h1tIVsdZ0/VjS3ymBR5pd+ietanD4UudQ2plsx +fXegJkJmR8tMelxmCrSk6HszLMH9jrSjygyA2/u2COZLaM0cfJ1K0m1Rv4X/86YqyoDAAA= X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: F3FED180028 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: mcb8cttc7muipggfp461sxwq99ur8h81 X-HE-Tag: 1709715336-340619 X-HE-Meta: U2FsdGVkX1+GxxXGC+GgHnpm1aD/oc1l4cY/uP5CXM7e84e14NDWLuExFAKUx5JZOwp338xDK4ctNufhTFKOdN6E2MSURwPxfV3Wzje4wuXcVkn50Z8iLyMAQK40oWmTvZh9rNAQPgkgVL90X8JnT0/fFqGDYL4fhLduPxsHZE8iYYY5Ax7C9vVbGvd4vM9YX+2kTrGfuWz+5gW5XcyZAU8CVgF2OsVZagaF6/bAn1R1+8xkOtgTBbkT9SyRLG2YXCBKD9r7jX49h4KJl8ozTST6hWfzozpgKksuRLLLI0rXaNLMPBodNM8j3AS2Cyn+1S7OJ98JgkP+az2lMRGx/ObDjSLyr472EoPKP7/Q9VM6s0jY/0zLsWFyXD7eFtCC2zRXdlPh6Ik2uv2SZukePvPiviR185M+jhL8AU5cPwMIalbR+CcrBwfOl5n9ZdEc7xo09kEUGZ8wOHsluUA8GNnCnMQyxSmQO+hCETowz+E95LnxQO6iJUTLb84fvwIPrd1+Xl6HQ3m9nFcj8XAMu4g0lemdg7J3FUzSDrgCNUXnqpRZXJwdEj6cPqi88I7Bsuoy7hoLuLGwGX+Dxqt8uLvrxacbX1dqXFuwZSNhe25McoEGY56RkBuiaUkKS4owI/aPv+c2VNCm3QF8uIyd+BriH0PtN0XXqPqGzh08/pePFwW43aR0R/VXxm8bkzGnXYxbVwCohsB5X7IYWlJ96S0gbfMqMg61yQXhfrEWqheB0kSZF+xPY2DBMuLKFp9x6Xz8nFTEG3LBMVWdpcxjUw4uNDBwJKXQ1+vYQSL3M1e757uWU3Xgqrm5Aeu9O8MMkshha0AMKEI= 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(+)