Message ID | 20230821034637.34630-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 9B115EE49AA for <linux-mm@archiver.kernel.org>; Mon, 21 Aug 2023 03:50:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 952D0940017; Sun, 20 Aug 2023 23:50:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8DA0794000C; Sun, 20 Aug 2023 23:50:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 50E1F940017; Sun, 20 Aug 2023 23:50:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 33BE694000C for <linux-mm@kvack.org>; Sun, 20 Aug 2023 23:50:02 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 09F8A8041F for <linux-mm@kvack.org>; Mon, 21 Aug 2023 03:50:02 +0000 (UTC) X-FDA: 81146733444.23.662EABA Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by imf04.hostedemail.com (Postfix) with ESMTP id 2D64340006 for <linux-mm@kvack.org>; Mon, 21 Aug 2023 03:49:59 +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=1692589800; 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=iJT0sKNCRaXjqDE2zBt5u6cpbNkP6uT8hPY/VJTtJEXjsGIYeWNiEMjiHtzzKzFboQ1QNd 0sHcVWf0O+dj4XLOxfthrirNinzR4KZGbOPI7qvAaW3fqgqwuBCUxwwooF0iooXYHj7e8w Gb9QH+fqiI2STiFTojBhEa6FzbfmgBk= 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=1692589800; a=rsa-sha256; cv=none; b=c5CXDKuI79bQVlMchHjEv7GETbA9+tPHnUp67/KtdSO0aStQxozMzEMmVcT6U10m3kD+iH sOeWDbeejpfaLn8h0rO8WIIgxiBau0760s1PE60Y2UPF/oSkqBECtZfwyt9uFgi2BPJWHE Z/IR6M2Yq+qxTP7Jqx7eC4SHRN6iozM= X-AuditID: a67dfc5b-d6dff70000001748-4b-64e2ded7e715 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 22/25] dept: Apply timeout consideration to dma fence wait Date: Mon, 21 Aug 2023 12:46:34 +0900 Message-Id: <20230821034637.34630-23-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: H4sIAAAAAAAAAzWSfUzMcRzH+35/j3ec/bps/ZSNnRnzWCb7uJnxl68/jA2bp03H/aabq+wu kc0cnZCKbBVp9KBz60q6y0ZPS3RJylESq3QnlEocl1Ie7ph/Pnvt/Xm/33+9eUpZxYTxurgE yRCn0atYOS0fmV6w9GWvRxtxJz0UMtMiwPftLA155aUsuG7ZEJRWnsQw2LgBXo4NI5hsfUpB TpYLQYG7h4JKZy+CWuspFtr7Z0CHb5SF5qzzLCQXlbPwbGgKQ3f2JQw2+yZouViIoX7iAw05 gyxczUnG/jOAYcJSwoHFNB881lwOptyR0NzbyUDt68Vw5Vo3CzW1zTQ473owtFflsdBb+puB FucjGlyZ6QyUfSpkYWjMQoHFN8rB8/p8DLfN/qKUr78YaEqvx5ByowJDx6tqBHVn+zDYSztZ eOAbxuCwZ1Hw42YjAk/GCAen0yY4uHoyA8H509k0PP3ZxIC5Owomx/PYdWryYHiUImbH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/Hxaj8B5e5iFa4lTLGRcuY3g1rU0Ct7+aqBB3xkE05MmZuc2XOsaIbG+ 6CKuHM+k8OtsAZemd7FYX/WJxZm2aFyU64dzKgYJnDXqprEt7yaDbaMpLDYMtxH4a0sLixvv T1O4v81IHPI5LtmuFNUqnajZuCNEEjrqqEPnW7mYjukBKg5ZWAPy4AR+i+CanKXmmeHXCR0d U+Q8e/KrhKKkz7QBSTiSv75QyP3WzBgQxy3lDwsNzbr5DsX7CgnOz3/7Un6rcMfQT//bXClY Cqr/+h5zvq28DM2zjA8Svvf2UXeRJBMtyEOeqghduEKlDgrQhoXGRqhiAs5GhtvQ3GfMl2eS S9BY654axHNIvkga4uNUymiFThsbXoMEjpR7SldM9CplUqUi9pKoiTytiVaL2hq0gqPkXtK9 R8QQGX9OESWGieJ5UfM/JTgP7zgUXEy+DKlfnxj2sLCr6lvcJW+vfUt+h6dGzVJHJwKX+YHx zNofi+0XNI4c8VdaSt1qemHOfS54eY8+YPcahevEk80TWfvqU4IPemlKs0NLlhXGqDf0+VIX n/pPlmnx0M9j9IuTBTM+6FWiyevUjtd9Y5cHrIFjlsgK/T37ro8tEzo5pQ1VBPqRGq3iD+kT KhIvAwAA X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 2D64340006 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: kp8a7fuxu6u6y8jpuqwzboay4nipdqe1 X-HE-Tag: 1692589799-13682 X-HE-Meta: U2FsdGVkX18qsjPu5Mrbfidp47zm8ZDnE8Dy6xraqwIgrgb8t8i1/si0xVdkqotwSt1BNbuSOBQALZe4PRv91qwhaBHmDXylgzqmFufR1InEgmoxFKl4h9a2AR5kLgPCfebpRrq5yLLKGuv5ziXf8tqjRMlcNVdlkKVs++Wz9pjWurXNtyv/Cp87yUl9G+Q0qTA4RtGbVRCtsuEsX69FCuhbofQypGcw7Y3YlvIr5pzLUgxAp0mfMNBHKNvTdFsJpdasL+pA75L00AlYKfbSFo4SGfltcWYGnlx4sELD2AA8LI9kzQB3S7vMqDWF3LJBUUZXP+zcDy/vY3KliwrAH+gyqs01BNW7/S4lgfH7gN+a+XBN8CM1EkvBxVccngAfz3EvZGvRM/Grwbpa3owMELGhpyQyEiPE0umSt1M+U+lwn0xCBeP4b8/w7UkKJnIdzhLq3p45VtzSZCsblaElX0n8niQE/L/8YB/saiQnJ8xHrwmMikLLncAzEws3VNlaXqDoD1MoTqdxiArFFliPyAhBPruKXlzGf9mFn945Abf8TBg35ScnnMIAQTPxQ2yhJlQYsLvJcglhUSKTcpvU8oA2yzR0g7g0KZWQ8bAK3FPyDmtt5naNgDRGF7rEY7Bc9qpRRqkQkTVYrEyTfYVjk/WX47+0lMrNPRjn6tW1r8TV4Kv4YCZS5T6qzDLvnOGsmtn3t9U21tf57d08qu93a0KJJ7furL+C8RgOhQUaNzt/50t+4p8wy6jlYfFcEvFe/ituuJlCJ7OoNNCzrqirALncXXRFBbrDmAecWjQqkfHAV0RBPFmnS1W21/NfZtgZ7Ndi5vYulaixaxLMCOPQIJacXpGfKQb+M9QZ+otKelB0IVk7hCWvRC3fKJ1Y654JLIm4c7zD9Iq4B0Gqc+zFZR298xDaeW8FGLvCfVzwK98othbY7fvxcQBZGRQl/gGmvvnNutNdSuuU2gTZ/x3 J+aJVJrO 7v45v+bIA+HbZ6U5XFBrqeHQ/bk44SImtuUzslWckxchMmsTBMsWEXdfLUHLg3yYRKdCj 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(-)