Message ID | 1675154394-25598-23-git-send-email-max.byungchul.park@gmail.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 A4A44C38142 for <linux-mm@archiver.kernel.org>; Tue, 31 Jan 2023 08:40:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 614716B0095; Tue, 31 Jan 2023 03:40:06 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 509A76B009C; Tue, 31 Jan 2023 03:40:06 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0E2EB6B0095; Tue, 31 Jan 2023 03:40:06 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id ECFDA6B009C for <linux-mm@kvack.org>; Tue, 31 Jan 2023 03:40:05 -0500 (EST) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id D3F1FC058A for <linux-mm@kvack.org>; Tue, 31 Jan 2023 08:40:05 +0000 (UTC) X-FDA: 80414446770.26.4E6199A Received: from lgeamrelo11.lge.com (lgeamrelo12.lge.com [156.147.23.52]) by imf20.hostedemail.com (Postfix) with ESMTP id A4A8F1C0013 for <linux-mm@kvack.org>; Tue, 31 Jan 2023 08:40:03 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=gmail.com (policy=none); spf=softfail (imf20.hostedemail.com: 156.147.23.52 is neither permitted nor denied by domain of max.byungchul.park@gmail.com) smtp.mailfrom=max.byungchul.park@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1675154404; 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=Of4d+Ta7WL1sXWE7irBEC9bLj6kWAVI8eIFLuPC86NQ=; b=bNcLlOZ+vwtXjleSvGdFgj/J53Pf3tuRKxxK9cBYzCpwa44CYOftIaL1mpNKhg7Cn/jBeH vJi1io/hHdLY5zbawMv3nn8PrgqVBhfSr1LcQwLaWqCHMLozv9Ol27PeWXSLDwFMPcUL7g 5FThnXevmCq5v1e3+5uViz/MZPDGsXs= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=gmail.com (policy=none); spf=softfail (imf20.hostedemail.com: 156.147.23.52 is neither permitted nor denied by domain of max.byungchul.park@gmail.com) smtp.mailfrom=max.byungchul.park@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1675154404; a=rsa-sha256; cv=none; b=jTbXmh4uSmDlXdq6C5tse9LPfA0KfGo238ongV6M5kxynNgbPkEXFvKpY6wlLQLlP7Tmqi LANzh20AI+g20dvDHfZ006UHGbnJPV03NW7wAUpvnkLtQ66A9fdMTQbjbg1wPysA3yDW7v Bm9d44s6+kKVDZwSilLHYvL2Dfky+LA= Received: from unknown (HELO lgeamrelo04.lge.com) (156.147.1.127) by 156.147.23.52 with ESMTP; 31 Jan 2023 17:40:02 +0900 X-Original-SENDERIP: 156.147.1.127 X-Original-MAILFROM: max.byungchul.park@gmail.com Received: from unknown (HELO localhost.localdomain) (10.177.244.38) by 156.147.1.127 with ESMTP; 31 Jan 2023 17:40:02 +0900 X-Original-SENDERIP: 10.177.244.38 X-Original-MAILFROM: max.byungchul.park@gmail.com From: Byungchul Park <max.byungchul.park@gmail.com> To: linux-kernel@vger.kernel.org Cc: 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, paolo.valente@linaro.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 Subject: [PATCH v9 22/25] dept: Apply timeout consideration to dma fence wait Date: Tue, 31 Jan 2023 17:39:51 +0900 Message-Id: <1675154394-25598-23-git-send-email-max.byungchul.park@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1675154394-25598-1-git-send-email-max.byungchul.park@gmail.com> References: <1675154394-25598-1-git-send-email-max.byungchul.park@gmail.com> X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: A4A8F1C0013 X-Stat-Signature: ekfbci6i7tn8o3pzcmcr96a5jf3eiset X-HE-Tag: 1675154403-147535 X-HE-Meta: U2FsdGVkX18BhVWRjo3hdIBsLTBbXQahc2lmMqIsapr/Ic9j1Z37w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nTOucdjjoN0qA0UJ8x0ykhQY3u7WQf9ITsZDs3kS8jkIycB0OqiCKwU8GjL+rmZEprJteO6Y49ZeH/NtQpkHbM33wfsM705UvIytIbGM3XSuy0npehOZusRZrUmI9H0F+6WzsIR6soWb1Ul5Uv3keEYylesgD8J9mTmhcRQ94ti8nd 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 1db4bc0..a1ede7b46 100644 --- a/drivers/dma-buf/dma-fence.c +++ b/drivers/dma-buf/dma-fence.c @@ -783,7 +783,7 @@ struct default_wait_cb { 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 @@ struct default_wait_cb { } } - 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 <max.byungchul.park@gmail.com> --- drivers/dma-buf/dma-fence.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)