Message ID | 20230821034637.34630-17-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 6F59AEE4996 for <linux-mm@archiver.kernel.org>; Mon, 21 Aug 2023 03:50:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3FA5E940013; Sun, 20 Aug 2023 23:49:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 384A294000C; Sun, 20 Aug 2023 23:49:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EADA3940013; Sun, 20 Aug 2023 23:49:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id BDAE194000C for <linux-mm@kvack.org>; Sun, 20 Aug 2023 23:49:58 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 96464804A2 for <linux-mm@kvack.org>; Mon, 21 Aug 2023 03:49:57 +0000 (UTC) X-FDA: 81146733234.08.852FE2A Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by imf04.hostedemail.com (Postfix) with ESMTP id B254D40005 for <linux-mm@kvack.org>; Mon, 21 Aug 2023 03:49:55 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf04.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=1692589796; 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=fW/5vPNvqyS7/RKGZPQfYaWvXYOULq65yUl15zU0hUc=; b=E6vPWiVO+sW1/Tg+z8R45LolHICnChgZsYPXXGdcJ1z7sXOrmpvvuooROI6d0iFwH0WVjd 4+QtJftMKnihg5Br7z8QA/5+zlWHCZ0mkvTk1QiajLaVq583cRzJprvefNxcSVSpmxy76S sTC1WM0kLMQsf1x3GjfrdNh/Rk/9cMs= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf04.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=1692589796; a=rsa-sha256; cv=none; b=AZ9xAxiFUVnaIb3mDXBlWCvhlNtvaXAYfImsOvo0aOoW36IzIh/l/VhM2CfJVPqj58v+3Z a0tcDJyw5Ataqspi+aoDx3qyfU2FXpwvj7U3olazqDe3nj/VAvOwYZcCr/zOKXxCveUAMt KBRcdFYufOsKUe+N/9rKGw5/AKL5CB0= X-AuditID: a67dfc5b-d6dff70000001748-eb-64e2ded695c7 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: [RESEND PATCH v10 16/25] dept: Apply sdt_might_sleep_{start,end}() to dma fence wait Date: Mon, 21 Aug 2023 12:46:28 +0900 Message-Id: <20230821034637.34630-17-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230821034637.34630-1-byungchul@sk.com> References: <20230821034637.34630-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAz3SbUxTZxQH8D3Pvfe5l0rNTTHxatWRJmjE+BrAEzONJibekS0u0xgjErmu N6OzFNMqLyZmoKiAQkQCnUKWAqY2gKItvlYcYETQAFUrooHGVnwhgGil3SrVjeK2Lye/nH/O /9PhKJWTmcvpDPtko0HSa4iCVoxF1yzt8/i0KwbDC6HsxAoITBTSUN3USMB1oQFBY3M+huE7 m+BJcBTBZHcvBeYKF4Ia7yAFzR0eBC22QwQeDc0Ed2CcQFfFcQKH65oIPBgJYxioPIWhwf49 3D9Zi6E19JoG8zCBKvNhPDXeYAhZ61mw5sWBz3aGhbB3JXR5+hhoebYETv8+QOBmSxcNHdd8 GB7dqCbgafybgfsdnTS4ykoYOP+2lsBI0EqBNTDOwsNWC4aLBVNFRz98ZuBuSSuGo2cvYXA/ dSK4Vfgcg72xj8DtwCgGh72Cgo/n7iDwlY6xcOREiIWq/FIEx49U0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D5Z1h45LRguG5eWjv2zxsGOoucGI5V 1mPof9KM4M6JPzDItQME2vxTGOxyKQWvrrQj8J2aZuHoyQALF0ynEBQePUfDg9edDJiHo2Hh ZTnZGiO2Tc1Qotn+o9gyb6HFLqsg3j4/wormO0OsaJEzRHtVhFjhmMTi5Vk/I8rVPxNRni1h xYLpfiw+7+1lRdcvC7Q41l+G96z+TrFZK6XoMiXD+i3xisQzgV5y2KTMstgr2Vz0l6IAhXAC v1Gwj9+igib8Z8LgYOC9Q/mPBXvRU6YAKTiKP/6BUPV3DwkWK/jvhTMNbhw0zYcLE7PTTNBK fpNgdd2l/htdI9Rcd753yFIuNzehoFV8tPBi9E/6NFJY0LJqFKrTZ6ZqdCnR64zJidl6Xda6 g2mpMlp6GtuRxeJGNOfZ3op4Dqk/VMav9mlVjCbTmJ3aigSOUocqw/4d1aqUWk32T5Ih7YAh I0UytqIwjlavVH69T4pX8Yc06VKyJB2WDP+3mAtZlYsc5jf8b/X7XaYe0knys35/Nf75y6e8 Z4fekfPNFxN9WwvVy1Pl2Ncu396kWBxn7zqwbQcXl1D9ZVd5XuQ934SGW7Z/c2SEAx2JLFmj z4v96lruJ9/WeQZvph9XWROaknaaYG9ojjvjftpZZ/hkRtgNa+buq/ZPu2NGhnbail/8cFtN GxM1URGUwah5B5yxqSkwAwAA X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: B254D40005 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: uomse76fsstrp5da81szi8cxobz4idka X-HE-Tag: 1692589795-661474 X-HE-Meta: U2FsdGVkX194WQjpdNXyj2nOidk5V685xkFEF/K6hm3b+CaUidgOFx/GuNMInquo7nk5681nW/QGso5PExFOUXFKcXMbxkHAsZSiQCx4qiZEk6fTn9HtcyTQ5zpSdAbQrrccqfKapui4N/1u5zAA9+cmgJl6vtlfg098ULk7qmlW1wZZQZBTuMOUDDRfWlpTg0lTfzqlZ+knJn0KWSX9szEPUieBmW38pHszWZMGl1BsX4Fg0X5vq65nEvOrMkes9m00dmxqOb5K6gHo5vbFow/6Mc4ZmduB1Zj2UWua1jVoJT7I9M4aQVky3BK/KV0NJCBg5RsreH95EpLpKjhfQkWw5W+NuGwQRb2Gzwge3DguOyNt1C+0w1dt4mHUsMWvi2eXIZ0nBcltkGs9GgwR353eERqlFQbxEjkEEQ4ZwUirKHimTyC7KmyXPMmzKPFrDfX0PmQSHy8WemnP1OJAiZbymET64iqbqT7KnnLLd7OMtTPvYTq8uk+WxiS00cm8U5l0eeyfaf1wI07C62FaFlmvItjcnKlFL/uM3Tzok/akhbMEvjWBmwuzgWuGCmfbcLuVV5Bh75LyECjQ62aXKcb8HdmWaEA5qy49MtRpcKNLam40uLoGsZW3IyQ1FdriPCFVz2P0Qv1FI4GY3JyJkylK84OUj3dZKTDMLP8aTCsciDfHqv/zfftj8aifv6K+nmL7EM1wjpE235U0iFMqkFKFw7Zr1O18KYxRHVCMFJK2SWMFIvmonzAvO7xkPpllZWecIawvKI7MHMh7VMYGu9aSOfYR3x/VVrQiXCJ0VGoIlRFYpi6WA/RksTPXxIUM8fbTJ7irFsQPm8nIYnVklf0x/iVrzYraS4TUT3uFJLSwzYvMSxAnog74VFWrJoHM7/7WR+6R0rQn9Imq6X1M/3aohXBZTA6jCl6EC7ewqXKZGd15LT8LzX2RiFSK6dNIHSKQDCfecpm1ta1S3NK XPWp6u/L uLIMv9hri0mu+bh1ruRZpvfTN5MqYi2H2uctNYsIumCIYpwQKm7ATDJxMOklJRIBnryvFiJdPr1TUG2rJ8CHTK1oKJ6nkp5P/ihHZcCdEp6qzTIkzmbsayLIbYo2nGphoR4vngqn5xICL2lbiTF63GAS/uQ== 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> |
Series |
DEPT(Dependency Tracker)
|
expand
|
diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c index f177c56269bb..ad2d7a94c868 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> @@ -782,6 +783,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); @@ -795,6 +797,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); @@ -884,6 +887,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); @@ -898,6 +902,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(+)