Message ID | 20240221094933.36348-9-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 4569FC48BC3 for <linux-mm@archiver.kernel.org>; Wed, 21 Feb 2024 09:50:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E5E2F6B0085; Wed, 21 Feb 2024 04:49:56 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E0A156B0089; Wed, 21 Feb 2024 04:49:56 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9750C6B0085; Wed, 21 Feb 2024 04:49:56 -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 61D2B6B0089 for <linux-mm@kvack.org>; Wed, 21 Feb 2024 04:49:56 -0500 (EST) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id F1E43A0D36 for <linux-mm@kvack.org>; Wed, 21 Feb 2024 09:49:55 +0000 (UTC) X-FDA: 81815339550.23.46D8D1C Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by imf01.hostedemail.com (Postfix) with ESMTP id 0E24240003 for <linux-mm@kvack.org>; Wed, 21 Feb 2024 09:49:53 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=none; spf=pass (imf01.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=1708508994; 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=jJeNhuOs33ufOy9DU95W1l4Cp1Nhf5LuW3gJvObKSUY=; b=KPYvif5WU3Rka9x+mz6XTkHj6DstZK0IPdm/MM6hz0DPZQcgFflAWJhUvw10bnL7JEI66C PwOv3ljLxUZOsHxZ19pP4ynOpX1mlr/4D52SOOMC4zeDfkHTZS9jC3UC3j2O9721Pjq9+6 YM1eWPB0ASF9sL/pokOvokw7g9c244Y= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708508994; a=rsa-sha256; cv=none; b=HJevSU9OOD72Rts2zu3tQbRC9EK3fpinHTCQLRtXBfLOL0w3KOLfT99Dd8vDbeWd/0HWzu KonO6Wad+lbcHiZgIMl7W8oGZHgszXumT/3ByQi70PI6Z6WnGpxttAcoVT3tNPhwlRmbb6 pH7HA5bA4WKL9Dmywvcth9oVTWeVqM8= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=none; spf=pass (imf01.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-08-65d5c739c5b2 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 08/27] dept: Apply sdt_might_sleep_{start,end}() to swait Date: Wed, 21 Feb 2024 18:49:14 +0900 Message-Id: <20240221094933.36348-9-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: H4sIAAAAAAAAAzWSe0yTZxSHfd/v2mrZl87Ed97ThGxx8cKCenBu0czEz0SNyVjCNo1W+Vib FSTlrjFDKKxDQK0iWpqlgGkrMHXFOxQYhCIyoEBBNEAmGhAtYNASKjhtNf5z8uSc3+/56/CU 8g6zmNcmJEv6BLVOxcpp+fiC0tVRLb3SurHc5XA6fx34XxlpsFypYsFzuRJB1bXjGMaat8P9 aR+C2fZOCoqLPAhKHw1ScM09hMDlyGKh50kYeP2TLLQWnWAhu/wKC13P5zAMnDNhqHTugrZT ZRgaAqM0FI+xUFKcjYPjKYaArYIDW2Y4DDvMHMw9ioDWoT4GXA+/hAt/DrBQ62qlwX1rGEPP HQsLQ1VvGWhz36XBc7qAgb8mylh4Pm2jwOaf5KC7wYrhqiEoyn35PwMtBQ0Yci/+jcH7oAZB nfE/DM6qPhaa/D4M1c4iCl7bmxEMF45zkJMf4KDkeCGCEznna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C5 soeBep+bgGq5gISfZQ0IBvI+s3A8x89C0dE8BNnHz1LQPtZIQ7ozEkZ+GJk1y3G9e4jE6dUp 2DJcTOHmEgHfv/CKxemPellcLO/H1eZQXFrrIvAVj4/GcvlJBsue0yzO+uwg8Je2NhY/PTdC 4XeOQmLT7O2KFbuleG2ypFuyKkYRm5fpY/bZuAMWg5syoHYmCwVxAh8hGOsH0Tgz/ALhxQs/ Oc7B/FyhOneQzkIKjuRPTBTMX1sDBY6bxm8QWtqmjGcoPkSwljX/7Sr5SOFqmZn955wjVNyq ++sJ4qOE60VuepxVgUx3513yFFIUownlKFibmJwgauMjF+vjYlMTtQcW79qbIKPAz5gOj+bX IG/XOiviOaSepIy955BUtJisT02wIoEj1cFKKiWwUu4WUw9Kur07dfvjJb0VzeIo9Qzl+q1S jIrfIyZJcZK0T9L9vxJc0EwDerJJnCMHjS3TbXvwPe5Mz8Jrnqhs++WVoSvtmhOb98i3I9Z7 KO3q6LnerdGvG+xHpjo9O/rGYnCfxi9kWqcvzHAtWXFofrQh6jUdsZFf/TD4sn3W+57hPHv7 jy1uTcoH53bbPNUqVTd+PBgW4p3a2BwZahJvrv39bMZXb62mqypHTeljxfBQUqcX/wCj3/+Y LwMAAA== X-CFilter-Loop: Reflected X-Stat-Signature: 495nnk45p7qhurudftxbebfrckkxeeke X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 0E24240003 X-Rspam-User: X-HE-Tag: 1708508993-573943 X-HE-Meta: U2FsdGVkX1+sJ8DqpTzD2X6O/H9qrSMWutw8ghQVGv0Aci7a6VlgdxcvCNRR+jVBfsVls9/VGo6qqrx1CVbxwAS2J5HsL8weseia9XVvXL/Di/NTkPw31ZW4T5+Jy4spIvQYIfwvyBhWT3yX151ZLWqV7v5lEZsBRuuLvtDzxsCAu0UYWnwhci9W2Sr7PRY+pwy7DDe1v6hVHNlkliuZ+vpKfUpd0T18M3mx+Y9CzGWF57z3deNNN6RLKdyvrxmTfAwgD9kgGLeQjKOGUuh/Qmx02o6R0B3+tOjaz8IVpbcLhtD4Es/4x8WFrZMOLJ6v4fx5B+/mNy8+E0tBX56FSwiAcxEBJsAq15Elis4Kg21TVHffb6wIwYukd0z53rJuMlR3PFhPkhP5F5KIPlcVu4iz4QCZyviCUCdMN0mYphMHcH5z5EGzJZceb47OZj73J15tMsjuse6yaFESfpxyVJTZPPzIC6WrArAsmwan4HWm3YpEGc02iUXuzBF/8p6rFb8ujzhw5EbHQCgusmJtwuRs6KMM+kQHsUNBjSiTydA/zK0b81VD7Ey8f9a5DAYr4MhpTog3NsTZKdFb7+JAT4OYStYkRJhi3ghCr/Pmx5Xzttkgszv9Brgs3T5wtczAhBbupJrJ6r8g14mJB+ULMsgC7yR095YstFAacopLRoEo8u54UbhKwaY36A9XjFeA6oUgOkWxJQrM5+YDgU5qPpOdQwyiI4c3XiWMULqViycecC2gupqzvBIncEfALjW8cv7lASR1hUKC5n9hAJjEsOKRfJ/x30D4DDrOYPW+mPb1bIKEeQyZGEGHxiqMMXAJLEclSx7lzplzle174Lxc/bNKPmqqmtXXWqc8CZ7KjkFdsA+vAo9lqVvKBhJR/mIXm2zfXCA/0l6RaY7aFPnEfLb4tHAa2vapdK0sFesG0wtx/w8ft3mrEnOK8xs3ACGh3G0nfqLTRPmhqCnxNYR 0p6CHDWA bWrxaBGeMWg0569hJRRHvRweCZC9XfRwCJXpKHocCwDWT5zBxeQLXMIp6Q0UO3WPW7tCW68QBAMdArgcDNA2Mar6eBNFaOF6sL7hqsw8065+x9EH21nQk0vOOOR8++QFmVkypm9n8sTWojWfpjwahATo+NQ== 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/swait.h b/include/linux/swait.h index d324419482a0..277ac74f61c3 100644 --- a/include/linux/swait.h +++ b/include/linux/swait.h @@ -6,6 +6,7 @@ #include <linux/stddef.h> #include <linux/spinlock.h> #include <linux/wait.h> +#include <linux/dept_sdt.h> #include <asm/current.h> /* @@ -161,6 +162,7 @@ extern void finish_swait(struct swait_queue_head *q, struct swait_queue *wait); struct swait_queue __wait; \ long __ret = ret; \ \ + sdt_might_sleep_start(NULL); \ INIT_LIST_HEAD(&__wait.task_list); \ for (;;) { \ long __int = prepare_to_swait_event(&wq, &__wait, state);\ @@ -176,6 +178,7 @@ extern void finish_swait(struct swait_queue_head *q, struct swait_queue *wait); cmd; \ } \ finish_swait(&wq, &__wait); \ + sdt_might_sleep_end(); \ __out: __ret; \ })
Makes Dept able to track dependencies by swaits. Signed-off-by: Byungchul Park <byungchul@sk.com> --- include/linux/swait.h | 3 +++ 1 file changed, 3 insertions(+)