Message ID | 20230703094752.79269-23-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 3C710C10F1A for <linux-mm@archiver.kernel.org>; Mon, 3 Jul 2023 09:50:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 07B3F8E00B8; Mon, 3 Jul 2023 05:50:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 02A848E00B7; Mon, 3 Jul 2023 05:50:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C61128E00B8; Mon, 3 Jul 2023 05:50:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id AF6C28E00B2 for <linux-mm@kvack.org>; Mon, 3 Jul 2023 05:50:00 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 7CB93C083B for <linux-mm@kvack.org>; Mon, 3 Jul 2023 09:50:00 +0000 (UTC) X-FDA: 80969829360.28.C384941 Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by imf24.hostedemail.com (Postfix) with ESMTP id 6F37018000D for <linux-mm@kvack.org>; Mon, 3 Jul 2023 09:49:58 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=none; spf=pass (imf24.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=1688377798; 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=n05oWEnwV2aOqn2zKCeTwB5rM3tZTIq6+FfwgumiHMA=; b=CHO7GGjV3DYIoYymGwCB39BTvGXEms+mcl1/1tsgyArqU049hD4T4PcxzXk7rSSyrxr/Ja 4PxuMZow5bd66yQu3cLAajG5v9vd3X4doDj6k4D3iTTXz3SkByEV5LEG/mMIU1BrNlWeRE 36p+DikVqX7uT8pWrKwTIbOd47WiIME= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688377798; a=rsa-sha256; cv=none; b=U0Vuh5hNHBqlOzij+0wYZaXduodb56LIec52eyoVBd4hzMOMb7jdOgo7Nny52S0Djz7cFH oft5WUg0hvqBu8ELXssfW13WkSA5B+R+VqosHJBCZEvQza5s2sLFfJX/qnzVF004e508az nHl++90BA5ESS8kVg770U0asPJnzu2Q= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=none; spf=pass (imf24.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-3b-64a299b4365d 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 v10 rebased on v6.4 22/25] dept: Apply timeout consideration to dma fence wait Date: Mon, 3 Jul 2023 18:47:49 +0900 Message-Id: <20230703094752.79269-23-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230703094752.79269-1-byungchul@sk.com> References: <20230703094752.79269-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAz2SbUxTZxiGfd9zzntOCzVnlbij/tA0Mzo/8GOgT5xxJvvhq5lGs+mykaiN PZNqqaYoirgMpSqCBZFAAesGZZQGEPWAEac1DCdfRulGw6pDNvBjEIsoUmIFphQz/zy5ct+5 r1+PwGivcdMFo3mfbDHrTTqiZtX9kSULawudhsVNb2Ih59RiCA6ls+C4UEXAW12JoKr2CIa+ W2vgz+EAgpE7bQzY87wISrofMFDb2IXA4z5KoP3RZPAFBwi05GUSSCu9QOD3p6MYOvPPYKhU 1sPt004M9aF/WbD3EThrT8PjpxdDyFXBgyt1NvS4i3gY7V4CLV0dHHjuz4fCHzsJXPe0sNBY 14Oh/RcHga6qNxzcbmxmwZtj4+D8MyeBp8MuBlzBAR7+qC/GcNE6Ljr+8j8Ommz1GI7/fAmD 7941BDfS/8GgVHUQuBkMYKhR8hh4XX4LQU9WPw/HToV4OHskC0HmsXwW2saaOLB2xsLIKw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C7WEiVHaGk3Ut/phkhOzPccYgvdoH8rCfsGtR+zXPolw84y6lhdOYWCrY3yRAwuvxVEm24qkAt/a9xaVVY+yQSziGJGLWXUuH194/BEK1wo9SKB14p1p7Wc/Tj2+nG5nMJuGRHGGOWRPOaFLHl2QE+J+gR57+eKbBMrCcf/2zEuIa6z1+TANGoLRnzmK5/QgihJ2d2do7n5UCr8qRU7hT7yCmpaTSGpRi+qpGY/72n47FNymKKjDgDAPyYV5xF8VGIJyGrnPSi/kL+c3EJbfSR9mDRPpEEB7OE3t1hvWoFN+RLanCnSD4x8NiZ7JDqajnSL+vFRvw4X8QcKUp8tLqTroQ+PtHBfDXhLEivqLPMp20oDB2iNmXhPQzaN8h3OxKlPdzTn/4fsk+FlZpHEtg5NHCGbyO4R7WCs5LJ+L5TjoKopWq7hpRCKz50G5X7qzExKBS/GmOwuctAMOY/pDp1gEx4GZhJ0eCe9L6afLLuxFoVEu3rVL9RVm981dT4qm97LQlA0CUdrOWAbUy+KXiL8tUbpC7yvUeS6mx6wi6Zl7upgzgM6ansWhLMTVvIy5H+rpVqv6ZUQ/jXfrKkGo/eWMyRO4qlJRi5JVjWgsANlS5ftTGz3yYdCJZX5/J5znaBuVn2HaOkE8uPkEP39okQlRhD8fFoW0QNyquLW6VI018DfHbC5G9d5QLaTUJ02t10S3iL2MI7gGkPKA55 0N0t5aqg vfhhiUwGbJkQ8Eqnlzmqx/ub2lw2zZkBXQeoVpDp7c71J11UriVkzN0hdwHR0QqOHQt0o 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 ad2d7a94c868..ab10b228a147 100644 --- a/drivers/dma-buf/dma-fence.c +++ b/drivers/dma-buf/dma-fence.c @@ -783,7 +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); + sdt_might_sleep_start_timeout(NULL, timeout); while (!test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags) && ret > 0) { if (intr) __set_current_state(TASK_INTERRUPTIBLE); @@ -887,7 +887,7 @@ dma_fence_wait_any_timeout(struct dma_fence **fences, uint32_t count, } } - sdt_might_sleep_start(NULL); + sdt_might_sleep_start_timeout(NULL, timeout); while (ret > 0) { if (intr) set_current_state(TASK_INTERRUPTIBLE);
Now that CONFIG_DEPT_AGGRESSIVE_TIMEOUT_WAIT was introduced, apply the consideration to dma fence wait. Signed-off-by: Byungchul Park <byungchul@sk.com> --- drivers/dma-buf/dma-fence.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)