Message ID | 20240221094933.36348-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 9D24EC48BF6 for <linux-mm@archiver.kernel.org>; Wed, 21 Feb 2024 09:50:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7F2EC6B0089; Wed, 21 Feb 2024 04:49:58 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 77DA56B008C; Wed, 21 Feb 2024 04:49:58 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3AAAE6B0089; Wed, 21 Feb 2024 04:49:58 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 21D036B008A for <linux-mm@kvack.org>; Wed, 21 Feb 2024 04:49:58 -0500 (EST) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 05E76A0CC8 for <linux-mm@kvack.org>; Wed, 21 Feb 2024 09:49:58 +0000 (UTC) X-FDA: 81815339676.15.11284EA Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by imf11.hostedemail.com (Postfix) with ESMTP id 25F5140018 for <linux-mm@kvack.org>; Wed, 21 Feb 2024 09:49:55 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf11.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=1708508996; a=rsa-sha256; cv=none; b=fgV9NMkMzhCtvek9YTyj3sdVn0Jcn27FNSn8RBABO7UlpQjA1GqhLuSUaypIk1XI9bC810 6OXWwF/WAMh6F0DvndoNANRODHumNIFjQpEHwBK6fQ1mMqwcQSqvb0iXTkdZ/LLUotvXkI Ezl+5yzN8yIHFC4R/VdkVuz30Ex1F9k= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf11.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=1708508996; 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=4wEGgGUsYs0B/KDTMf3sp6jo4dY4QzMqr1N16qzYnUndM3Z0sRIxRJhTN1CX5wr5krma9J OHU1N4Jgef0HXfSLGJW3A6hqn7I7Co/4bOC8UycHJfMDuDP7XMFhZfmxuqgVA4EYR5lUpT JI9gBSOcbxAdusIxEl9LwqIEs3DQDuk= X-AuditID: a67dfc5b-d85ff70000001748-28-65d5c73939f9 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 v12 10/27] dept: Apply sdt_might_sleep_{start,end}() to hashed-waitqueue wait Date: Wed, 21 Feb 2024 18:49:16 +0900 Message-Id: <20240221094933.36348-11-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240221094933.36348-1-byungchul@sk.com> References: <20240221094933.36348-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAz2SfUzMcRzHfb+/xzuu/XaMX/mD3ZiNJdmxDzOLGb9/bB5m8xi3+k3HdeVS yTwUJxxRzYmrccXOVUe5qylkp+e0FB0d65paHtIlKxepcJfxz2evvd97v/76sIT8ERXCqrWH RZ1WpVHQUlI6MC0/dEXDK3FJeU0oZF1cAr5v50jIK7HR0HavGIGtLA1DX90G6BjxIhhraSUg x9iGIL/bQ0BZfReCKuspGtp7g8DlG6ShyXiBhtO3Smh40T+OofNqNoZi+0ZozizA4Bz9SEJO Hw25Oaex/3zCMGopYsCSOh96rCYGxrvDoanrNQVVbxfB9RudNDyuaiKhvqIHQ/vDPBq6bL8p aK5vJKEtK4OCu18KaOgfsRBg8Q0y8NJpxlCq94vSh39R0JDhxJB++z4G15tHCJ6ce4fBbntN Q43Pi8FhNxLw804dgp5LAwycuTjKQG7aJQQXzlwloXWigQJ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FQ5XRgKLKkEzB+rxpBV0o/A+evjDGQGZeC4PL5GyQ0/aqlINEuh4mfenqjn1DlGCSE xKJTQvmogRRe5/DC09sdjJBo/cAIBkuUUGTyEnLLerGQPeykBEv+JVqwDKcxgq7fhoWBxkZG eHVzghQ+2zLw7oXBEn+lGKaKFtWrAg5LQr92pFKR7ezpXy+fMlrUTuuQG8tzvny1zkxOMc0t 59vbx4gp9uSW8EXJXygdkrAEd2EmbxpqmB7M4Q7yBn3L9IDklvFPrjvwFEu5dXxvkw7/ky7m C8wV0yI3V34/00FNsQcn51vfPCGuIYkBzchHnqqI6HCFKkzurTkWGhOhOu0dcjzcglxPY4yd TC1FIy2BlYhjkWyWNLTEJnpQimhNTHgl4llC5iklT7kiqVIRc0ZUHz+kjgoTNZVoAUvK5km3 7xMPe3BHFCfFY6IYKar/t5h1m69Fce+z5sofl+wxamtLu1VNm4Lct/iKB63WoMCrlVH6pd1e e+8qDXJdnD5+Yoc4NJyXoNQcXWs863vAv23cfmJzG2FWbl/l3bojcmuD2R58K3lRgPvH9O5F 0br1S9lna1Zod/ulaSN/WEI6vr2N+bP/XOzsQNNOa0qP5sX66m1JxQHbZKQmVOHjRag1ir9t 5u28MAMAAA== X-CFilter-Loop: Reflected X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 25F5140018 X-Stat-Signature: 1e33eukhn1fofsokkmpxseqp5ap588yg X-Rspam-User: X-HE-Tag: 1708508995-190579 X-HE-Meta: U2FsdGVkX1+9U6nL9C/7pWLrrCSGLVg+aFl1CutHCWHIm89vRfldSqYdc6d1z2dMj+A9+Hfh4vdaaKnzLZ9Fh3bBGK7+hLPTp2RorJgmT/U11O47ett4bzYaRGSQU0iKyztJYHWfCmrBH9Mk6Q9R3E7ryIY+wuIRFpy/QJ07jN+1QNZ24IwbXVDVaDdraABsTzji02o2bYZsIkLiEmwFswr4bJk4du+QdSel4pNyTSVoQOCUZvIzYQqNZr+PJJIcS16PAsmbix0BfTuBxEd8+rcbOAAyQzv+C3lqcGQCd0ZsXYuirNO2OObqbQC+LKBA4GzcOGG69mPSBoNMQ0EyJ7PRVCA8Wbk3NTH6qQ0M/7ENcbHhZil2edM3fGyEHibw1+QSqZQ8dGlQYJWOX5TZYhn6V4nVNhvqnwzfZwKF3stYjoa9lS9Ra0tG534K90Z70/1WCbJ2oqVor2e8Zy3xHYmJHJIe0tTtUMtqa8VBXjyC5VVI0EqTcb+3zyh6fkbRE0FFaH+dzrTRg+MI9RD6sfap2aIwjt+sad8bI/GmiPT1YtPo7t8F89XZY8kjj4GO/6R7QhDfNDeW5Mnc7MMJ57fgyo4PiLlZP6pxegK+t8If7/x+2jrO4faTDy3oGkhNaOHQqKDorkPTu3IRb/KenznZUMng/0hZWjThhy7RwtSQY7z7qT0+HNp5LA7swqPaeDy8P2Gm07PdZD5rFHB0utu7D4aLBB8h2syPRbPMnO14XddYqxwtig9V8cfKg7RUYZjxLuMP5eVA4MyLxKjk95n2uSbbKXUVx1qk0kzlOx9XLT9MvSU5pxEeW1gwwiXUaE2+sGJd/KTN+jmmx30L0NKVDn/7HJeL8R5kwYouLCa+jex0J8+BuxJrYebubbIH9OeBgFPzJQGijZz/x8KtGpoZLBGBDarOEi7BGujonzBBn/4wOXv4iBysiOl5KU6SsgcGhIGJy+Q4WfQD7ez Jqx2YMbW 22bZDBnIUHVxUeMQZKQWmLv+rqtEEMdSCI7oeYq+X+0zvvbGVTumcvWVMw437Di5fyNpR61y7Gg5aOEg2X3Sb7jcmYYD/TUd1tSe2DsD2gWsJF+g= 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(+)