Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2259302rdb; Wed, 21 Feb 2024 01:55:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXauAamGG0c47wGtz55wXe7XJAb4M6K5arFl4gFOD98ntYw/Y+ODmfA3gZZW54KhxtNFPhFQmE41vgx8JxlgTVTlyr7MEOMQ0xlkeN1uQ== X-Google-Smtp-Source: AGHT+IEXI+mnBWBkJve2qBeGuELaBZewxZl6LWTLHRfHTx4Bj0786kX08cvS/ZBt3IIrFj5EhsWh X-Received: by 2002:a05:622a:493:b0:42d:e775:7836 with SMTP id p19-20020a05622a049300b0042de7757836mr16245357qtx.56.1708509352507; Wed, 21 Feb 2024 01:55:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708509352; cv=pass; d=google.com; s=arc-20160816; b=WxFmWZHfWk997cqFcvqUG8tDH+AktfHpJk7Mp02emVrkV+8hRqvjgy0XrGv7orITlJ rfXM5HM6RLDDvS6hgKrT5ygfSITwmVVttZPvEalLA8OubOHSRTRsYpsjPuSBkjdW8SEw eaNloMY+z0LZEfAfNZxy2lgRXA8KeHvnqLkti1YfwcaBe6qtMqi+wIoWI11LySPwz1FX 2UgaA8pHf4KwfCYuw/pzgxbuBDlxschmJ2/PzpLWJg7e+EfkKjCf4Xj1r3mOYpc6IAJ8 wzGuUpOONYehxNifOzCZb6H5qrof1Zy5H4LAmdib5ZoaLMmt/QuBiCsM1VwvVgJvUNIG T3vQ== 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=YVDDkQHFzxbFTiMkMkY+ZxfckVM+bAmVTqO//P5VhrQ=; fh=QMm8m/ZWm+A1EqjKAllYKUqNg+o2tkLujHELlI5tZV0=; b=TTw5Ec1nbTD4S4ro2Mlei7y5pVKKiFFKtCnHAda3ehKaro5rrPXXyNDfz8Z1NItPnu K+USPTtQTZxb7ZysXN8r/B9mG5Ywb4imHnko2OJzRDQboUFZC0aRo/AZV62ephf32s0X gsoOH1ClxefDjwAWhUkJXrJgHBGaLhK3f9Nw54AJcqicxLIy9XFwa1BIQGONKkTzqMB+ jCd263JDBpF4o0+nJV7HpLRp0paSTiF8OvoslTsXsfAduS3sT4ehHTEZAC5KOQS7gZ3r qFbzn8pgDMV7n1limd7mFrMptZICHw1+QAg73dfGtwLrQpBYXbmu/5gBHBF2FIauk++w fwgQ==; 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-74458-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74458-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 r9-20020a05622a034900b0042e2947a517si3409671qtw.115.2024.02.21.01.55.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 01:55:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74458-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-kernel+bounces-74458-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74458-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 45EA41C21F82 for ; Wed, 21 Feb 2024 09:55:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C1AF55762; Wed, 21 Feb 2024 09:50:08 +0000 (UTC) Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F6C64CB35; 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=1708509007; cv=none; b=FO5ofJiCCEMLMgUPV5k85QBiSJIx/z7pJG8cylceD4biEWz80exXPXttt3kzAUV/uOMB6+boVnMKz7Zlx9vUTMzhnOJbYzP5GV1HLNDbBuMO03TRxUG8fQp1LTW0DzufEMEyYm6wwosAUvHb+YFp2LqVSZsvJB++aBt4icZ9nLo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708509007; c=relaxed/simple; bh=RHlJ2GxVpEp+l17KtAmYPgKdeN+t8Sb6ly9lphI8Ui8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=ZhxWJ0v+XKYvXI4MI6UTz20A2fwGY476ktEpzTvONj9ToTXsbC7B51wMcZ/MYSs0Wczw80bTD1pqczlpUo+XcQctQPFJf9sN/bZk/NDVi05xKbe8VwtpheqhpSSfQNLhAHX33M7UMjer1cQxUjvF5OPzqMCAJRkso4NF019sf3o= 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-b8-65d5c73a0bd5 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 19/27] dept: Apply timeout consideration to waitqueue wait Date: Wed, 21 Feb 2024 18:49:25 +0900 Message-Id: <20240221094933.36348-20-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: H4sIAAAAAAAAAzWSfUzMcRjAfb+/105nv87bz9mwM2OMYtjjdf5gvmaM+S+Mo9909MJdSjZz dEd6ISwnJV3aOXV6uWreql01decm4aJaHZKXVCI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ected 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 waitqueue wait, assuming an input 'ret' in ___wait_event() macro is used as a timeout value. Signed-off-by: Byungchul Park --- include/linux/wait.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/wait.h b/include/linux/wait.h index ebeb4678859f..e5e3fb2981f4 100644 --- a/include/linux/wait.h +++ b/include/linux/wait.h @@ -304,7 +304,7 @@ extern void init_wait_entry(struct wait_queue_entry *wq_entry, int flags); struct wait_queue_entry __wq_entry; \ long __ret = ret; /* explicit shadow */ \ \ - sdt_might_sleep_start(NULL); \ + sdt_might_sleep_start_timeout(NULL, __ret); \ init_wait_entry(&__wq_entry, exclusive ? WQ_FLAG_EXCLUSIVE : 0); \ for (;;) { \ long __int = prepare_to_wait_event(&wq_head, &__wq_entry, state);\ -- 2.17.1