Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2259418rdb; Wed, 21 Feb 2024 01:56:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUMQ+6RF9RtGgWDCsXsXtTMZhSJZuO/YqRGIJuq1IIbq3Mhg7T0EtQIEs2u3i3pjt7LclWqaIPQC9YcdboVe7v8MbG+twQkvT/ZLP5kWQ== X-Google-Smtp-Source: AGHT+IHGjDe2ogQizxs2ea6yWiPk5lAhmK4axouUxp7vqzWAV/9OY202BM4kLwmNf0QajxmAl8sM X-Received: by 2002:a25:b21b:0:b0:dcc:1062:47c0 with SMTP id i27-20020a25b21b000000b00dcc106247c0mr16794525ybj.56.1708509370858; Wed, 21 Feb 2024 01:56:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708509370; cv=pass; d=google.com; s=arc-20160816; b=TnKuXrurlX53m4ZKO7/VwGVc333irwVKFHAGeZccAAxghpV8ZOPJAgQuMcKS3lmn+v H6QE75XTnctohi4sYANmbXGNic28kTfTZ9vo95L6IcK6EPE6ClZjU9TA4ur56MmzgZj+ lAEe4OFNovcOCqZmkM0yCRbppztU5Vv6Czdg3idVV8uqRhsLcLhIgBmM0ugncrUeSY4b vURABL0ODgvpYOhfKkvwZusWpmLjoZOXMPQktVBE5gbAw0XK5Kqhl9i+RM/rDOW8Y7I9 lYVDHlgZ9+qv9VLz1rOyZmviwrp3HbeVwevCTOu40PDTdu00JublnZ4sNn05pS9b6SJl 8dcQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from; bh=gh4V+xsf9pyOLzgDsh3k7ldaFLs7L6sYOuMIsWaURVQ=; fh=QMm8m/ZWm+A1EqjKAllYKUqNg+o2tkLujHELlI5tZV0=; b=tehhARYPj5xh7QHcNzvqaQKRvYM51NnpLx3bO4UJyyF62zzlc/8OWtUMax4POqyq0Z Ukwj9dwviZ6nIFNmWGdgnvnL6SOQLe2viW+gPrOXfH1tA7HIccsZzOC2goiJ4zd5Fgic E9TrQBRjoRMTPtu+xrBTYfKQVxMxqiugq5y7iBdt7UE1U+NUB2ytbZTbiAXmcXpi2fcn CBFTmX5Lub0e0nNhzVzfBIKHH1TK6MJO/fSA3BsfXUJUGGwDzXSyAPmYELIiEmky8UXk 0EKsc7kdK/9Yoi7zk5HCFC+onrLTq7AjJSyxWyaF9EZ85g34iQnL262HFp13Wc6axkGp /8FQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-ext4+bounces-1324-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1324-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o24-20020ac85558000000b0042ddd577a3esi10055017qtr.10.2024.02.21.01.56.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 01:56:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1324-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-ext4+bounces-1324-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1324-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9A21A1C230AA for ; Wed, 21 Feb 2024 09:56:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CAC4958AA1; Wed, 21 Feb 2024 09:50:08 +0000 (UTC) X-Original-To: linux-ext4@vger.kernel.org Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 579FF3D566; Wed, 21 Feb 2024 09:50:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=166.125.252.92 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708509008; cv=none; b=qITw3b96TM4/l2swGUDyzOSZn59J+Tb+KfFaedhdsgH4n1koaGAJ+JLrnFac9H62Jr90fRnznVlIBumllf5Hi4FiCbPO48hyT+BgvByNQXYVHoZsvj3K69T5s3LqUCTNWXeOIvWDcjczNp1n7+yq3iHGkWapt7ae3EmV9WqDtFg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708509008; c=relaxed/simple; bh=A0HNCh9MAJFiyY64P3s+ZnF2ZrT06e1PDF08t8YO27Y=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=sGGqCmNpK2/2lHN0ziXL4SfQj3CBv4tngUY3qgcsozdQ/8BstdsHPX2nkVRyMqBeBT9cbuTrf7l46DK5RYsJH+pF37dVf+iUgwgCUKHxGUsaLMMijw/fBzMjoNIWz33x2RMxLkmtYGcIiKCukgu8Z15GjGlvLFL9tT3a2IRXuvA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com; spf=pass smtp.mailfrom=sk.com; arc=none smtp.client-ip=166.125.252.92 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sk.com X-AuditID: a67dfc5b-d85ff70000001748-d8-65d5c73a08db From: Byungchul Park 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 hxmTTexhXaQtqVrLppt4bmroNvZi3RTbwgiWbSajY1uZdu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List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Now that CONFIG_DEPT_AGGRESSIVE_TIMEOUT_WAIT was introduced, apply the consideration to dma fence wait. Signed-off-by: Byungchul Park --- drivers/dma-buf/dma-fence.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.17.1