Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2265173rdb; Wed, 21 Feb 2024 02:09:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXHn84/j6gxhPrmkUoSsKnjdU3ZNrFzZLs9e5kIOVV1SQajshjd/3NVQCxMDwLwqjFx0wXddBfbiTT1fqC7wYK42Xdv262Ui66z69QTSg== X-Google-Smtp-Source: AGHT+IEGm4yIs/byQn3cQomO1dxD6bc2sAY1Y+DaCoHe47Mezneu59aGCLXVKhleKK1H1Lcy2T5g X-Received: by 2002:a17:902:ea0a:b0:1db:e5c6:9180 with SMTP id s10-20020a170902ea0a00b001dbe5c69180mr11690334plg.39.1708510145046; Wed, 21 Feb 2024 02:09:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708510145; cv=pass; d=google.com; s=arc-20160816; b=ItjZrbdUsz1GDl22/APH+iVTmazXcyPZEwEHerM6RqrblIcCpO8cxX/bK7REpiNKbM Eqn+4rbIGzhCU46OAA+ixozZ8yKTBHxoBMFxY7Y9PXz4zLFnOVWpYjehhIKjRelrYCsu xOjUbYSMN36u0mmfhVuFsxFu1AUd7YorbE2PjD0yj+QkHYUBkTT3eORY6fxhdrXzj4uL HUmU3U1jbU+XL6eOMakK5FSrDzhV5h+9jrxwxmzrm9fHJjMzSbcawTUqzhd4ac87T2f0 YsxrSngTIucCY1hN7FUUwk52ltWyMI/cZxBRS5pSksBROx+VQ0EJbSvxj8bJS+R8/BlR GzOw== 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=QMm8m/ZWm+A1EqjKAllYKUqNg+o2tkLujHELlI5tZV0=; b=ibaEStzl3S9NayLKRCWrS3T7HSx9PjUPvswUlQoVr9n2NslTADNbmB5GAA42XDDZUl NRvkSSISzYU8m83QLmFAxiROJcxPPvCGUKoPL//3grMhbhIi86Tg7RtFXy+TAPNJGdbP qVC+QDHnrDPvP0pCISKyjnRhdkERFG5xrhi5i3oi9b/xWh9DLwO8OXb4s3xfGRH1fWGD 4TCdGDhNyP35EFl/Z0Fp5PzTg9qWq7aY8LIbM+I6+nIekSZubO8dXZUEE9V9P3qbQqz/ kmYp3p9ZlYFhpVTkCiZ43XaP85eQzIYaLBVOxTu11cgVVWApYjkOAw4IL2DuSl7L/m8G Cw9Q==; 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-kernel+bounces-74457-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74457-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e6-20020a17090301c600b001db7c124744si8178773plh.613.2024.02.21.02.09.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 02:09:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74457-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-kernel+bounces-74457-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74457-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E657928C5A2 for ; Wed, 21 Feb 2024 09:55:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E882B54F84; Wed, 21 Feb 2024 09:50:07 +0000 (UTC) Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2AE94C626; Wed, 21 Feb 2024 09:50:03 +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=1708509006; cv=none; b=py7sVyOj93Aa7g2IFgZK6L/KLSEMe1B8AjTptMNwGOFley5DlyOYKkUynK6E5lgQpPO4UXYg1Qx3KzoykcDofEWuemML2HiORelUd99DWaGQSvOKk2DmV4eHtKtyd0UQPjyMYSoVRtYPIGbCbonkd8HMsU2FsR7UYSEZXIA2myk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708509006; c=relaxed/simple; bh=9o9SI0ONdb1WbiIWXrCSb5nX53qir4UGX5Gt0IQgpYM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=DCcN2Vv8/Xz83QHUgamQHnXah+K9Ma6pdcksIGV/vTEVadNj0ZLlTzey8iugKDyyYCbPSL2VYZHLDEquLyhXYHzBxZ2kDiWTgsNAE+0+Qdxe+HGvgxfseBy4LbmzcRAlx6uyVCfTHiFK4mBLlLK9ajUDpIKnsqzBk4bZ+ZjWeI8= 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-a8-65d5c73ab21f 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 18/27] dept: Apply timeout consideration to swait Date: Wed, 21 Feb 2024 18:49:24 +0900 Message-Id: <20240221094933.36348-19-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: H4sIAAAAAAAAAzWSW0xTWRSG3fucs8+hWnOsTtxqjKbe4oXbjJglMeqLcUdj1Jh5wWS0ygl0 hlvK3WgsgjcQIiSlCqjc7FRgBAsyOlzSgXD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-CFilter-Loop: Reflected Precedence: bulk X-Mailing-List: linux-kernel@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