Message ID | 20240306085513.41482-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 5605CC5475B for <linux-mm@archiver.kernel.org>; Wed, 6 Mar 2024 08:55:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8E1896B0093; Wed, 6 Mar 2024 03:55:37 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 81FAB6B0092; Wed, 6 Mar 2024 03:55:37 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5D2386B0095; Wed, 6 Mar 2024 03:55:37 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 3426F6B0093 for <linux-mm@kvack.org>; Wed, 6 Mar 2024 03:55:37 -0500 (EST) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 0912A1404B7 for <linux-mm@kvack.org>; Wed, 6 Mar 2024 08:55:37 +0000 (UTC) X-FDA: 81866005914.12.F4B9D22 Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by imf06.hostedemail.com (Postfix) with ESMTP id E48CC180003 for <linux-mm@kvack.org>; Wed, 6 Mar 2024 08:55:34 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=none; spf=pass (imf06.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=1709715335; 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=NvoygkNUgt1rr/s0KlAKeEYb5iWfRB0v6QMb6varGjdKocTVKzthZxFwO2RjbTekzRDhW6 HYZyFi7kdEPhXybA99xS/AcNu3YvWnN4C5CyR3uK3TO9S6bo6/2K60pQelp5w+Q36Yr8fD azbOz8A78GEZGofL8dFh1F8YQuSWEdQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1709715335; a=rsa-sha256; cv=none; b=AKLqVKq5W4b0rg3Y9cR7YHfI+wxxcgRhbTDg4Q7tpniZPZEkgAXl8B7q95izYiWke50JU7 wXFzx6r3Po3ddpd37TIjy/qzr/efJU7mHkvBw/IVN3gwPKTfcfrUukeNjKcxLo7hUbQFvq FoToVtSytgV5eVP6QFHOLzaB1qauPIU= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=none; spf=pass (imf06.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-a8-65e82f7d71d2 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 08/27] dept: Apply sdt_might_sleep_{start,end}() to swait Date: Wed, 6 Mar 2024 17:54:54 +0900 Message-Id: <20240306085513.41482-9-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: H4sIAAAAAAAAAzWSf0zMcRjH+3x/d5y+O22+sokzbFk/EB6b0V98/7EZ5g9s3PRVR3fs+nVR W1dJSqUsh8J1tZM6ypWJuuTiCOXUjeRKEkpXWVzrFLkO/zx77Xleez/PHw+DS+6QAYxcGSeo lLIYKSUiRCNz9cEpoYNCWPFYEBScDQPXjywCSqqNFNhuVSEw1mkwGHq8Dd5MOBFMtb3EQVtk Q1D6oQeHOmsvAnNFGgWdA/PA7hqjoLUoh4L0smoKXg1PY+C4UIhBlWk7PD+nx6DZ/YUA7RAF xdp0zFMGMXAbKmkwpC6H/orLNEx/WA2tva9JMHevgktXHRQ0mlsJsNb3Y9B5v4SCXuMMCc+t TwmwFeSScHNUT8HwhAEHg2uMho5mHQY1GZ6gzO+/SXiS24xBZvltDOxvGxA0ZfVhYDK+pqDF 5cSg1lSEw8/rjxH0543QcOqsm4ZiTR6CnFMXCMhwrIOpyRIqYiPf4hzD+YzaRN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3KwuZpwMsFB/LRZCdeZaGDFcUDP4sITFLhAZPHyVk2PYL 9oFSWnhSzgt3Te2skPHgHSuUWlMEmyVMqLjfg4Uyn58RrJUniWD1FbLCqa9OLHhbWljh8blB WuhyGvH60C2KpTulRG2qpJu3bLtCk5vlJ3sdsgN2g4c2oOfkFJLLeG4h7/pdyIww4Wbxb94E qBEO4abwtpxPwT3FeRT8pZaVIzyOW8tXDJ4JOjQ3gzf3/wk6Si6Kb8nJo/9lTuarrtcFHTm3 iM/z5gV/qYad5vQyko8UpWhUJQrRJqcmidrEqAh9giYtWXsgIn5PkhUN18V8ZKjgDupvW1WP OBlSj1HGyD9LKkZM1acl1SNeRqlDlId/dUkq5U4x7aCk27NNl5Io6etRqIxWT1Su3ixtV3G7 xH1SgiTtlXT/r1gmn2RAFYHY9tGxC7q3Dhg0s933TG9DFzldCxwbfTVx3vxwy9HlCzFujvdu nD4h72Im7jD5bBFVY8Kv+m4tftR4s6MxjpuG43cffebteH8rJTZyzYeQqeN31R5aMfPhhk0J 0dMfyhWm2+KQZUJW7Y606Js9c76L+i/eyCW7Z+/3OGKyNWFuNa3XiPPDKJ1e/AudERJ6KgMA AA== X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: E48CC180003 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: 84pxkkatrw3jyz9eepp8784oush35zki X-HE-Tag: 1709715334-33436 X-HE-Meta: U2FsdGVkX19lK9keh1mmbpiFOMRBG1wXy2lBh4f1iCMHnRyYe2MUr+Pxl0cTORnimYTn+fQGmvlQmhnuYFYjm/z4e3psAy2P/4BQ5++kUugZPyN56UWZGmIO14DmTIIJ5neT3Uw86iPtTD6/OmlEsZulZRgUVrXHOLo7u4rT5v9rv6URgWsCfIrC18gVQd63lKH17KBlFTzHCdyreo/XLAVJ3MSqt/hz/NTihCfXqQdWh6vWtTJtGOtn6jig/GKFnw5q/JSDIERgfxOxeIfGkrsbkhWPMVOfEkYxufyXI6pcLH3xoICz30rz/g3q3xjq2Tev/vXR9slaWj5tX8F/RFiPmzEPo85Amz6uJ88Vz82S0eU2vnrCs9WPpwzIY2O1WtbwZ+r9ugOoJA43mO2MgdYinWeA+jLVm4oB3aoPNO5uqXGYoS74nKCzNLQYaImSm8wVKetn2LEQGb1C5Jay2A15T4qUUk/ZHgfa91BoAtRzbDuussmzEDQyO4a0RhgSaEKOqPNedWR7vYT8+yNNcFL0IkORQiub0Y9QZzLiOFDLNeZcoQX5auzyEVc3nUykdzmG6mq3lpx7aI8eK8LxZMlkKMfBn5g3BcgVUS2ewfC09+BQg/fTIDer4tnwJtegpQPu/JiBORgA43mH6A+yZIQ4PSbBZJ9ZTql6VtlCsjVtvLHbPQN2xr/zafbx8hQUC4r91lUPk4hxIsrbdBGWh4fQAYNbjuR3ZuOR3mlLblf5/bknb+d2C+qfVoJn0poAuasXxNJQBEnfOs6dSyZ44kfxobRelB55akvtx/5IrKR2GZDHl81YqLEQsN+PHVZJxD44DGB8v43b/lxwDOJkSXA/2FSbshrsddxVRL6EVYN3ZzG0inam3DnoKQ0JdroR91cTR4t3Ss0PSZrswh6WA2NI7Rmgyc5YKsV0p8eqJUnkibU+ZlDniUUji8hlh0gOq9iFiyucAFAg7yMwhWS 9QUh4lU8 CddEkjHbynlGcim6q2dKWPx8JhTxZ2pS3rKoJVPWbBL5Zuc9Oh6KVAyN8AfX7VIOuqpGAO5rr4bAcgPxkex0sQXPgG9Zl3GntZSTUst62sfILxuNGLgqnOY1xGBlQt6j0AFJ4PZXw1I5axW2wCl4NGhkdNA== 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(+)