Message ID | 20240221094933.36348-16-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 B1A8BC54764 for <linux-mm@archiver.kernel.org>; Wed, 21 Feb 2024 09:50:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A3ED46B0096; Wed, 21 Feb 2024 04:50:02 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9C6266B0098; Wed, 21 Feb 2024 04:50:02 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 706026B0099; Wed, 21 Feb 2024 04:50:02 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 561976B0096 for <linux-mm@kvack.org>; Wed, 21 Feb 2024 04:50:02 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 317F680A08 for <linux-mm@kvack.org>; Wed, 21 Feb 2024 09:50:02 +0000 (UTC) X-FDA: 81815339844.21.BEAE8EC Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by imf27.hostedemail.com (Postfix) with ESMTP id 4341540018 for <linux-mm@kvack.org>; Wed, 21 Feb 2024 09:49:59 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf27.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=1708509000; 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=Z1Mu9mItqFFRxmNTCfIHg3Vgo+jSXM2iK+TaQ7EDB/s=; b=XEewq9bv8H838MS42vdqjqKMxVCb+TvqSV9ZOQFIluSXAok+RWx0Acso4dyr1d9QtWJvUC QzndEIMSBbH7LlmifuTqiIh5NVwpFiJNIx+HNZkbX27ibgr8f/NXOhpS8dU7qlAU2kfTeO IuferL2o98zhaSAHCqwHGtGX3CbHwPU= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf27.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=1708509000; a=rsa-sha256; cv=none; b=x612VODr7MVDnHKicQGivsNGQEU+LKQRFJI3OctD8SDTRxgceV4ifXS6b0K4Ywm+v2y2AP hgdgVMw/aOqsBUgcQ4d+GfpbZFHu4NjrbGE9vntilrlOO2H1YXqImTbdnzLFldImSTSYoZ oxsRnndYWhkqa6bLDdGEczdZdBy2scQ= X-AuditID: a67dfc5b-d85ff70000001748-78-65d5c73a3e19 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 15/27] dept: Apply sdt_might_sleep_{start,end}() to dma fence wait Date: Wed, 21 Feb 2024 18:49:21 +0900 Message-Id: <20240221094933.36348-16-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: H4sIAAAAAAAAAzWSb0zMcRzHfX//O85+uzI/ekA3jbFSUftoGPPA74k/Y5nxgFM/7ri77Krr j7V15G9/RluFQnVcp6K6EuEsnUoopStJmg4l3ZXF3TpF7jRPPnvv/X5/Xp8nHwaX1JOLGYU6 XtCoZUopJSJEjnnFQZEt3UJI731/uJQZAs6f5wgorKygoONuOYKKWh0GI01b4a3LjmCq7TUO +bkdCIoHP+BQ2zyAwGw8SUHX5/lgdY5T0JqbQcEpfSUFnaPTGPTn5WBQbtoGLy+WYNDgHiYg f4SCgvxTmGd8xcBtKKPBkBYINuNVGqYHQ6F1oIcEc98quHK9n4LH5lYCmh/YMOh6WEjBQMUM CS+bnxPQcSmLhDtjJRSMugw4GJzjNLxpKMKgKt0DOvPjDwktWQ0YnLlZjYH13SMET859xMBU 0UOBxWnHoMaUi8Ov0iYEtmwHDacz3TQU6LIRZJzOI+D17xYS0vvDYWqykNoUyV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5W6Tu+gfBGoFPkcwuI3IvdctBrqertoZLU2Bb2C4Ki9i3HvLclyWjXPNfoKUhZUoJ13tz8ItmqlORxg/65gmtLxrzX7ydEDEF8ecWipReluSWEqZDTP0JjrQBvJw9tewwt24kba8pUGBaYsXb33leiHpX+9PeSaQ2fiCM71zfCbu/B5lcWwmfhqXBrL3I05Pdl6we3+CTYAnd9rwtWT5K+F0RU9p/ZneFMD2UOee5yZvAqpZ9tfIK9Nq0j6A8JsPjv4stV373YkNcu8CnCtaH7rrg91PlrMxk3NGR0KVZ2EFdrMTI5u6exzWfcLpl9A6AqQYUrJv5fo/y8/XZG93mlaY5Cj5UG8SKB72D7KnQ/CBvydoUvIaTnZFs5K+kg9w1r6OK/GnmkpE84hfKJNKIjJ8bVH3+sqHJDTS2hlEW1JV1lYzlTNcRWFARUkUlxGDrr5SktMlXNQvou9XGiL0uEMC2aSXT4Pqw4/f3hpcgfbE91qmFVa0XaRgtNbmlK39Fz7ncEZqr10754pc8CLEbdUJYAB2DgzYPYv2flh77E3UIqJOjXGLwNI2L89R1g9HH5pjuvNuBBlWghfyEc9OtY/ZWmj0+FF9Ag8cbj1LBUp/9me6buJsXtqAGBBCOhOzVCBKYjJl2jnRWcA3AZvHf0HhxVqsTd Vb9PKzLw SrAkDsLUjHSazj6A3TaG80EmvKQ0kL9OLhEq9bKaViGKEsZgj8GHdZIDBofXKqI1QNHcABT7XaJ0hwAS9yRcndkhLVOogf+gAIo1YWq3z6A1/UhWL3ak2vljQbgI792GPeNxjiLML4l6zW9NYxNTjmHty1g== 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/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c index 8aa8f8cb7071..76dba11f0dab 100644 --- a/drivers/dma-buf/dma-fence.c +++ b/drivers/dma-buf/dma-fence.c @@ -16,6 +16,7 @@ #include <linux/dma-fence.h> #include <linux/sched/signal.h> #include <linux/seq_file.h> +#include <linux/dept_sdt.h> #define CREATE_TRACE_POINTS #include <trace/events/dma_fence.h> @@ -783,6 +784,7 @@ dma_fence_default_wait(struct dma_fence *fence, bool intr, signed long timeout) cb.task = current; list_add(&cb.base.node, &fence->cb_list); + sdt_might_sleep_start(NULL); while (!test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags) && ret > 0) { if (intr) __set_current_state(TASK_INTERRUPTIBLE); @@ -796,6 +798,7 @@ dma_fence_default_wait(struct dma_fence *fence, bool intr, signed long timeout) if (ret > 0 && intr && signal_pending(current)) ret = -ERESTARTSYS; } + sdt_might_sleep_end(); if (!list_empty(&cb.base.node)) list_del(&cb.base.node); @@ -885,6 +888,7 @@ dma_fence_wait_any_timeout(struct dma_fence **fences, uint32_t count, } } + sdt_might_sleep_start(NULL); while (ret > 0) { if (intr) set_current_state(TASK_INTERRUPTIBLE); @@ -899,6 +903,7 @@ dma_fence_wait_any_timeout(struct dma_fence **fences, uint32_t count, if (ret > 0 && intr && signal_pending(current)) ret = -ERESTARTSYS; } + sdt_might_sleep_end(); __set_current_state(TASK_RUNNING);
Makes Dept able to track dma fence waits. Signed-off-by: Byungchul Park <byungchul@sk.com> --- drivers/dma-buf/dma-fence.c | 5 +++++ 1 file changed, 5 insertions(+)