Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp939533lqs; Wed, 6 Mar 2024 01:05:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVlq89nv9mCTRHntRRh77nEG7sgwrqQXoZQRhamlKS+XEMvfEZ5QvJcyVGuhbpkAMmsdaiEQ8WZZWwg7H4Po58nt26Ej9TOD6gEsezsYg== X-Google-Smtp-Source: AGHT+IHfD+rV0kwYigTHwJnlmB/PXfrL8zu83vXOaxKfRz9r7WdKmUVFvCndjMBkWKFYX1AbApgO X-Received: by 2002:a05:622a:24c:b0:42e:b470:1ba5 with SMTP id c12-20020a05622a024c00b0042eb4701ba5mr5238726qtx.24.1709715907399; Wed, 06 Mar 2024 01:05:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709715907; cv=pass; d=google.com; s=arc-20160816; b=cgXB5z3I8bYlWSgfGw+wuynM9Ftu1fbv7WUEvPyfJVH4TVFTwosUdFscS1XH5GjyrC PW8eLP0q/1i9xerBUaN2LBXl+CQ5iQE8GvbAqyuz8qSdLLf/Xxf9E9HqVd020J75vXS0 X/5o7rpt5Nc60uopX3Z5RgK6OT5VBk+BmyyVXjWNBKwuFVuqwQrPOSse5uPZzdZdt1DG l7snTKKaNKEjOMTNQMKs/NQntJ4WeapVsGyqh9/LUI/xWSa+Pwhyu9+EgbM6TUOZsJ7o bk4Q3KtgJGSZZaEa9laHqU2UZL5gQMpfQQbbqLJvIB2qVnSEeYvVWDKGQrMn6I8UyMvg S6bQ== 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=H2KRUF8uSM4+6+w6W9vKW2QB11XTfop4gd9hLuyjokE=; b=RhwrlnzKlxBS2/mBTM0ek0hSp+1RMesehtrZR+DltE3dWgr8W5Npd1Sh5OD7sYKG5Q K++Wl4XItDF5lGtPPQ0AjPg6VxNcFc7MFPA11fiwH5GMjs11NSWkaOhOz2Ufar/Vkdn9 wqFoa1OKHVUEOcUSIqng1eRC0flQZXhYyFCtG9SQw98ORDy6bpXEKOgpBBHlC3mMTsaK MdeowNVq4zOppQg4BXvoclX1jL/jDT2CWHwwFz3GZie1ptzmiSg1QPfyoA/qOGcBm45Y G6N34+Bm8qwSUFovsYs0Emf0Wa2Asdb8il0nHvO9ZC+zOwjnDT6GPk9w718v//pKrLFv A0lg==; 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-1545-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1545-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v12-20020a05622a130c00b0042ef835ab85si5372134qtk.757.2024.03.06.01.05.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 01:05:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1545-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-ext4+bounces-1545-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1545-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 24C241C21F50 for ; Wed, 6 Mar 2024 09:05:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 61E5966B5C; Wed, 6 Mar 2024 08:55:50 +0000 (UTC) X-Original-To: linux-ext4@vger.kernel.org Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACF216313F; Wed, 6 Mar 2024 08:55:45 +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=1709715349; cv=none; b=LTxq/fpP3wOcCYeOXj+9ZUUflbPhK1vKHdK+ZuLisTl0pPEZ/HRbWCxwxTu5mxmy5w60Slxi8S7VO8kVigW0H52tTVOK2vjFDIP60cuQrbplWpQxtOx1pfnEe/rDTsNyIi0kCiNo53Zvi6gPF96lcZJlSgGll3fjgkwqOUYKMe4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709715349; c=relaxed/simple; bh=A0HNCh9MAJFiyY64P3s+ZnF2ZrT06e1PDF08t8YO27Y=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=Z9JpUcH8hmQGoh1XwV09ORm8ogHa8MKEKCnEPUTsz0ckjxxpzwlHswN1pcsnaW2zoClwFocTkKxsKUOwOC1BdMJ+jVixJYxAEdskNHeWXrMT+DNwS09WiuTyf3dDvLIJ+SNn/tN50bOEriZ9IrdikeN5J/aaWLde7woS3+0CG2Y= 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-79-65e82f7fe118 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, 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 v13 21/27] dept: Apply timeout consideration to dma fence wait Date: Wed, 6 Mar 2024 17:55:07 +0900 Message-Id: <20240306085513.41482-22-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240306085513.41482-1-byungchul@sk.com> References: <20240306085513.41482-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzXSa1BMYRgHcO97zp5zdllzZmvGkfvOYMalcp3HuIyZXI4PDGMMwwc2Hdpp 29h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3yO57ikDAAA= X-CFilter-Loop: Reflected Precedence: bulk X-Mailing-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