Message ID | 1675154394-25598-21-git-send-email-max.byungchul.park@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6DB3AC636CC for <linux-mm@archiver.kernel.org>; Tue, 31 Jan 2023 08:40:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0E9F86B009D; Tue, 31 Jan 2023 03:40:06 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 01F196B009A; Tue, 31 Jan 2023 03:40:05 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B1A3D6B0098; Tue, 31 Jan 2023 03:40:05 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 9DB206B0095 for <linux-mm@kvack.org>; Tue, 31 Jan 2023 03:40:05 -0500 (EST) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 79347C058A for <linux-mm@kvack.org>; Tue, 31 Jan 2023 08:40:05 +0000 (UTC) X-FDA: 80414446770.27.80A8DDE Received: from lgeamrelo11.lge.com (lgeamrelo11.lge.com [156.147.23.51]) by imf02.hostedemail.com (Postfix) with ESMTP id 52D1B80014 for <linux-mm@kvack.org>; Tue, 31 Jan 2023 08:40:02 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=gmail.com (policy=none); spf=softfail (imf02.hostedemail.com: 156.147.23.51 is neither permitted nor denied by domain of max.byungchul.park@gmail.com) smtp.mailfrom=max.byungchul.park@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1675154403; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=O3brDvLbf1/7jmenG01cC+UF1fIt+v37BUH8hTnWxRw=; b=09siZoLYpq2FKiSwYug+M0RHQtg16ZpSCIWvyDW6II5GtS7eDwmCvBaWfqlj58h5AvT57k kmXaiAWu7eozDIdU5QCzwsmMY26c1+C3KYwBRLJQaraiiAXZ7hUQC3O7Zl1+WrX+9BZS5Y 9QHWKodYZ3QPKye8ARXWaWWxxlxyPeo= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=gmail.com (policy=none); spf=softfail (imf02.hostedemail.com: 156.147.23.51 is neither permitted nor denied by domain of max.byungchul.park@gmail.com) smtp.mailfrom=max.byungchul.park@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1675154403; a=rsa-sha256; cv=none; b=hcGCCB+NfDW1KFdR5ezE6TVbYLjXnufNcFVR5zNhTAJyQM+nYekqqYcAJaIJqLT8PX72xe p+7V5YDZa8iS343b0PpSxd9E9+vhFtX9tOtegNbphppaCTwzvGoLWNIZdouT1a9SrnMcLt oSsDIFhWq11A26/wiTQEtatY5b4zHi8= Received: from unknown (HELO lgeamrelo04.lge.com) (156.147.1.127) by 156.147.23.51 with ESMTP; 31 Jan 2023 17:40:01 +0900 X-Original-SENDERIP: 156.147.1.127 X-Original-MAILFROM: max.byungchul.park@gmail.com Received: from unknown (HELO localhost.localdomain) (10.177.244.38) by 156.147.1.127 with ESMTP; 31 Jan 2023 17:40:01 +0900 X-Original-SENDERIP: 10.177.244.38 X-Original-MAILFROM: max.byungchul.park@gmail.com From: Byungchul Park <max.byungchul.park@gmail.com> To: linux-kernel@vger.kernel.org Cc: 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, paolo.valente@linaro.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 Subject: [PATCH v9 20/25] dept: Apply timeout consideration to waitqueue wait Date: Tue, 31 Jan 2023 17:39:49 +0900 Message-Id: <1675154394-25598-21-git-send-email-max.byungchul.park@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1675154394-25598-1-git-send-email-max.byungchul.park@gmail.com> References: <1675154394-25598-1-git-send-email-max.byungchul.park@gmail.com> X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 52D1B80014 X-Stat-Signature: wdkec3q4bwghbsp49gge8kz3whrdgw7j X-HE-Tag: 1675154402-507186 X-HE-Meta: U2FsdGVkX18Ba84KfDzlBssimZmKGHDBehMztNflDHG0zEgTDsxjsw6kfkiAMs5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tfvouIGgx7e27gs3dIFkS/oOCE1Z9LxfBvVZFu+ss+UOhBW5i68wC+Ev3SMVBwaNs+nk7EuEbqsfBmdWrDBiCf+trQa/3+7lms9dZEsJWn1DDIFcWQ0qBv603ykZHD9nzF3J5gkPDye/SzWXKBy9BffKtVUS+U6y00iRFAxPs3UmPi2j/V X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
DEPT(Dependency Tracker)
|
expand
|
diff --git a/include/linux/wait.h b/include/linux/wait.h index ff349e6..aa1bd96 100644 --- a/include/linux/wait.h +++ b/include/linux/wait.h @@ -304,7 +304,7 @@ static inline void wake_up_pollfree(struct wait_queue_head *wq_head) 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);\
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 <max.byungchul.park@gmail.com> --- include/linux/wait.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)