Message ID | 20240221094933.36348-22-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 49ACBC5478A for <linux-mm@archiver.kernel.org>; Wed, 21 Feb 2024 09:50:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 032616B0071; Wed, 21 Feb 2024 04:50:07 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id ED1846B009E; Wed, 21 Feb 2024 04:50:06 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CD49A6B009F; Wed, 21 Feb 2024 04:50:06 -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 B7E1D6B009D for <linux-mm@kvack.org>; Wed, 21 Feb 2024 04:50:06 -0500 (EST) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 990681A0982 for <linux-mm@kvack.org>; Wed, 21 Feb 2024 09:50:06 +0000 (UTC) X-FDA: 81815340012.23.ADEA804 Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by imf27.hostedemail.com (Postfix) with ESMTP id B52C340018 for <linux-mm@kvack.org>; Wed, 21 Feb 2024 09:50:04 +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=1708509005; 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=gh4V+xsf9pyOLzgDsh3k7ldaFLs7L6sYOuMIsWaURVQ=; b=msE1FVACSHpvVmmm94AgFwEMlVJDrYg6CUhd4y0W7C68z9q6C+oVsQ2RXGnrvHj0ls8spV PsOnLo2yMdcrn8wjkWx9Rvs4NppJGCiOE8TN64gYEFNuV/5vseN+tDZ+EvUsvmLbYs6OKp Jf2KeM3nA09tJN+zclim9t4Neh9felM= 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=1708509005; a=rsa-sha256; cv=none; b=2c6307x6F/Ll8RF+ZIAHlEza5zn1RubNvAgOxzmFpgQJ4nCjkB+3vJ8RA+7c+rcjSeO31y BVfseVpIPf0diGO0xTBsFPwAQsbMJVJmJhX1Vnluc/7xeaet/I+GoR11y5v44mXJ4Ci93A 2PzVwYewSSAkQmUMXcEwFkIxT4gSoBQ= X-AuditID: a67dfc5b-d85ff70000001748-d8-65d5c73a08db 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 21/27] dept: Apply timeout consideration to dma fence wait Date: Wed, 21 Feb 2024 18:49:27 +0900 Message-Id: <20240221094933.36348-22-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: H4sIAAAAAAAAAzWSe2xLcRTH/X73uVJuSuIaQRqCMa8Mx1uQuP94ReK1eNzYtTXalc42E2Sz hxmTTexhXaQtqVrLppt4bmroNvZi3RTbwgiWbSajY1uZduGfk08+J+d7zh+HJRT3qUBWFXlY 0kWKaiUtI2VdI0zBSysapbn9V0dB5tm54PmRSkJ+oY2G+htWBLaSBAztT9fBq95OBAM1dQTk ZNUjML5vIaDE2Yqg1HKShoaPI8Hl6aahKusMDYmXC2l40eHF0Jx9HoPVvh6eZ5gwOPo+k5DT ToM+JxH7yhcMfeYCBszxU6HNkseA9/08qGptoqD0zUy4eKmZhgelVSQ477RhaLiXT0OrbZCC 585KEuoz0ym4/tVEQ0evmQCzp5uBlw4DhqIkX1DK9z8UVKQ7MKRcuYnB9fo+grLUdxjstiYa Hns6MRTbswjov/oUQdu5LgaSz/YxoE84h+BMcjYJdb8rKEhqXgADv/LpVUuEx53dhJBUHCuU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gruAo+5IYerW16hVrMUYUjeUGldj89Vv5YoviyH45Cw1ExjtkQRh+NVBxRt1FB6O2Qk4f/OwuxNZGVn7LMLnwZGVELvjF6UWONAjWV8VqNTvaZeCUSlEl3RO1JWYrhb7xYJ9gDs4lunJfszcvW1z/cRtSPxSsq6dqb4057+WQDhz1YEbz6iLrx6o/3EsWCYSC96xOo58dt0pdao1+30uLxmUKGgnkCOIo6yMpBs9VYtHgcH+PfMFo3+CzUYgC1CPtuaPcDDXoCnPXTRuFnWlGI7eVBasH7tp864HuhvbU+boM5Q71FbWXv0DnuQMmDEhWgzB3qkeY1gLtDJWBsnaVcMVKrm14M9mUNGA+WZRgs52fo/NbpAX9PO7r8JOfMurHKqmzM7Npg974xIVlA+RdP5ivXhW6sjWlOqMDFlw5AeCJO2ioR6Ec77AuLHfMPxbUir22SEqAKJq9V+9B8jzPI2kWKfy0uyh/1R9HDfd211zx3utGCGx6rNABqYMXvlC2BENyxWf6Q6gpQHfQbqDI0z8fz1Oriq2QxJYi2x4QYY+qNkoxHSJs8gXjMJGD2B7gtcOJV1kS7ORgUD7wZqUpnLYOeKQSz/TcnGW+suV5vPv4C4sW10JKghgU3uZ/28E4WXXqt5UnXPYhT88aWlZYN0/RI8moXrS38LWwqrgoeDjsm9XEmSobmun JN401ojK AKlQlIa4oCm1IiRrADnTjIgX5BPJfL4wPo6CAIHvL3cg1QHaRvnjcvvyvi1hEX3Tl2bLJ 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 76dba11f0dab..95121cbcc6b5 100644 --- a/drivers/dma-buf/dma-fence.c +++ b/drivers/dma-buf/dma-fence.c @@ -784,7 +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); + 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); @@ -888,7 +888,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(-)