Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp938956lqs; Wed, 6 Mar 2024 01:03:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWj8ooemrW6qp7/RPBXQ1OBzZoO6iUVDpqwQqJssLJowtfiJZKnOcosUDq8h4tyia+5gWEefiJ2buszNNSe4+AyFbyw8I23DsR4WSGrBQ== X-Google-Smtp-Source: AGHT+IF7AWBqE6u7MOGBHHh6Pf72BCi0hypN0vMvBYD/k9MAkV2byfqnyB+q5hrS++XaEpc1G6oo X-Received: by 2002:a05:620a:1184:b0:788:3124:eda6 with SMTP id b4-20020a05620a118400b007883124eda6mr6433908qkk.12.1709715833187; Wed, 06 Mar 2024 01:03:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709715833; cv=pass; d=google.com; s=arc-20160816; b=RmOvoDlQeSYNNHcFWVAp5Y0JrMRdn69KtHloC5LW0AeKgPJWiSrG1EHPHrjytpKPeG NBQwdKRtFKOLJAkerJsbIVhJqNb4eDtrI4TaE18oY5NES20iiEXZpzuaI417DdHHGnfe VOtr6TTk79Vvu1R7Td4h5KeKpNunpdeZqXvmcVTyXclc8FT/7591a5kD6f85LJfeVTci dLhy9KLSmJ3xyWhKv/GJ9uFv1zHLq2VqJtIcnSlUP+XQCmcERqJUWc3xw+JRJKoPqC96 InJwCZcPDmtYbzVGyMyGD+dEDCYwh3xknvq3hBII/jm4QAfsN59kFRIz8ttXqQewnWfJ u+1g== 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=UGkObL7oD/K2bAkUVhXxAs7YoFHUnPDSWQxkr9+NXKk=; fh=H2KRUF8uSM4+6+w6W9vKW2QB11XTfop4gd9hLuyjokE=; b=o2Rq6XdgMFWulvTQP+8/elXB9tMlwId+VnAzgZjICR29cMoe+5wJvb0o/uQI2PS/jA Wfuo4/46q14ML6y5ZijHgjwVpuE0/MohwtlB3qtzo0Eb4r1mVOnEuprpABgX9GtrO2kl PSZJkduBQpzRPw+xVsAu65Obej9cMIASP57uA0ERK6f1jLBFA8M48rLt3X6/whh3akbj 518oJ5+OhL7P7XaND2TWnLIDTNXONDfVp5ao/oLfPKmjUbYPaXF5ZPplyyHAo03/ymQm E8FgekzdCpe1DYTlF6KLV4086PgQF+MqSmXNH0DHzXbHO453x3FsdAW+Ql93moPQXRil 0jlQ==; 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-1542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1542-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 xy13-20020a05620a5dcd00b007882aba13d7si5809652qkn.780.2024.03.06.01.03.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 01:03:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1542-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-1542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1542-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 DBD791C2198A for ; Wed, 6 Mar 2024 09:03:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2BF6F65BA0; Wed, 6 Mar 2024 08:55:48 +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 59EFD62814; Wed, 6 Mar 2024 08:55:44 +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=1709715347; cv=none; b=PwUDtci8aZdvL6k7YzbjifEEEvrbdZTelpDkiLPawXTuxlNMLCyG2/wPFQMDO2yJHfkTeQ2LfxCedJBEkx4M80gLX3dQdeAHPF/yzazCPuHVrg0z8xka5XaNjgj5c8ZGP4FVxGdR7RBDl/QNDQeXNapJH6e0oaledOjAcj8P+Po= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709715347; c=relaxed/simple; bh=9o9SI0ONdb1WbiIWXrCSb5nX53qir4UGX5Gt0IQgpYM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=DKoe08a0o9UJECfKJb1Fqnh5s7lsAtGm7hXXKVzGKhkne8WZtmXb6X3RTJmPbyNEmku/WiowoZWQil+lq1+11omjHNEEWLBvm1vlLdLWgdQJDHZluejk5LC+S6xJk17Yqd3CDtX+gkku3h/KbKoyQ80UTv9pjP6FzFu/kLOBp6Q= 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-48-65e82f7e60ef 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 18/27] dept: Apply timeout consideration to swait Date: Wed, 6 Mar 2024 17:55:04 +0900 Message-Id: <20240306085513.41482-19-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: H4sIAAAAAAAAAzWSXUyTZxTHfZ73sw01b4qJ7/BCU4Mk6hAUl7OEEEycPBeaGIk3aNROXqWx gCmCQtwEKYQVEMXQqiCBipVAJ9AyFbGmtqGCRMYGcc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ailing-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 swait, assuming an input 'ret' in ___swait_event() macro is used as a timeout value. Signed-off-by: Byungchul Park --- include/linux/swait.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/swait.h b/include/linux/swait.h index 277ac74f61c3..233acdf55e9b 100644 --- a/include/linux/swait.h +++ b/include/linux/swait.h @@ -162,7 +162,7 @@ extern void finish_swait(struct swait_queue_head *q, struct swait_queue *wait); struct swait_queue __wait; \ long __ret = ret; \ \ - sdt_might_sleep_start(NULL); \ + sdt_might_sleep_start_timeout(NULL, __ret); \ INIT_LIST_HEAD(&__wait.task_list); \ for (;;) { \ long __int = prepare_to_swait_event(&wq, &__wait, state);\ -- 2.17.1