Message ID | 1673235231-30302-22-git-send-email-byungchul.park@lge.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 C939BC61DB3 for <linux-mm@archiver.kernel.org>; Mon, 9 Jan 2023 03:34:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D691D8E0007; Sun, 8 Jan 2023 22:34:00 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 973E8940009; Sun, 8 Jan 2023 22:34:00 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3CB118E0008; Sun, 8 Jan 2023 22:34:00 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id EF5408E000B for <linux-mm@kvack.org>; Sun, 8 Jan 2023 22:33:57 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id D36EA12053E for <linux-mm@kvack.org>; Mon, 9 Jan 2023 03:33:57 +0000 (UTC) X-FDA: 80333841714.05.A646A2B Received: from lgeamrelo11.lge.com (lgeamrelo11.lge.com [156.147.23.51]) by imf01.hostedemail.com (Postfix) with ESMTP id CBCE140006 for <linux-mm@kvack.org>; Mon, 9 Jan 2023 03:33:55 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=none; spf=pass (imf01.hostedemail.com: domain of byungchul.park@lge.com designates 156.147.23.51 as permitted sender) smtp.mailfrom=byungchul.park@lge.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1673235236; 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=/d+Rt5Q7zYOnfKbOna2U+BXjewKP2SzGVrj4WWpFlPE=; b=PPmbzgS5ZNev25yYiPs5yPxJV1Z1Dyl7MqkiJBvPw0z/fcvn/3E4kjFe2QAbKOVJYpFeY2 esg3V/mQwtAwiwhxnFrpNLuTdX9fdw1oxvSktbNiu2B621M9h2JmBDswNBP89/aTS44OIV 5FlvuerbzZK9M47wNPz70175Qssvfhk= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=none; spf=pass (imf01.hostedemail.com: domain of byungchul.park@lge.com designates 156.147.23.51 as permitted sender) smtp.mailfrom=byungchul.park@lge.com; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673235236; a=rsa-sha256; cv=none; b=Taw5SljwGkRmbCbWdC/7Oekkg1582nKx/IfS6+iKWrtl8UWKc7N9ExbeD47EpxLZJ5H4lq LetsOkMBSPvJoqu7WAJKVFk0yqUFC/18Tq+C+bDJlaZ/6LQ5b/dzcsrmPKYia5g9QAI/42 2sRSjhM79dO+ewbvWmH0WWmkHcA3l/I= Received: from unknown (HELO lgemrelse6q.lge.com) (156.147.1.121) by 156.147.23.51 with ESMTP; 9 Jan 2023 12:33:54 +0900 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: byungchul.park@lge.com Received: from unknown (HELO localhost.localdomain) (10.177.244.38) by 156.147.1.121 with ESMTP; 9 Jan 2023 12:33:54 +0900 X-Original-SENDERIP: 10.177.244.38 X-Original-MAILFROM: byungchul.park@lge.com From: Byungchul Park <byungchul.park@lge.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 Subject: [PATCH RFC v7 21/23] dept: Apply timeout consideration to hashed-waitqueue wait Date: Mon, 9 Jan 2023 12:33:49 +0900 Message-Id: <1673235231-30302-22-git-send-email-byungchul.park@lge.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1673235231-30302-1-git-send-email-byungchul.park@lge.com> References: <1673235231-30302-1-git-send-email-byungchul.park@lge.com> X-Stat-Signature: ynqwh3a4rf9bfwujy3pedasdjjt34ocf X-Rspam-User: X-Rspamd-Queue-Id: CBCE140006 X-Rspamd-Server: rspam06 X-HE-Tag: 1673235235-818620 X-HE-Meta: U2FsdGVkX18KCFTYLcFWv8207RYNnpQYADGH1K0XUqI64s1fS8VihRqX7AbRQAqzYA0nMkCcpJ4Vx7ULlQiSUDcKSsIojPgXbFPLdQN9Vxhs5sYv1Ih4neAXwOW6M+b+tlhg57/Psm4GRcnP4pANvFzLaAwx+a42hh5KhRxAGKcPd8ydpe6sw0Ob6e+r8ojaXLeDMIbw3QQAvTUesN5cEkxN6kAl6TAtvWfv8Qq8KHnl6n/YqK/dCKRL9+TB8R5r8kSWrLeNMICP18DRHE0fPKpUwF9Dbt3IEGbvcGjAcv3NwwoItC3arSIQ0gJmzkXjoRuZMYVm7K9fgsUln5zCNAnC/MYSUj9Q3eMlmOSseHkVurXDMjFE41f042iZ0EIm0bsPuz4W3abmJTcvBcJ0t9Zemf8osUIeXczGkRtHf40h18HnO0Chy8GvZ5ZXu9tXATGpaoTeeS+ete0edT/pQSdFcfZ7JqQRFMPhTMJA9Jwr9AcLpIox1dTCehvmlL9pqzXz0Uww5RF7Zanh/pccCRvnZSyLKztXncivyQJ1zPaYZNy9OPiEoRbjVpgShT7f5kwVKum9bUyM2Jr72rmhwSA/Yk0ZD93J5gY8vSK6o+wV3vj2lodAKk0/uIz48QaB25XNFXuu3PghzT2EVPS4X8CPll7XD2kS8eSyuAAXcUYvj6He3JZVcPvTaAAu0kdw50rwmpQJkJYydxRJ4FqUukzxCiovBgr7N74JOVQ2MEKq2AjyYDpVYsf3Mn3wqZcLbHiDYppb7p2Lw5aoQF4feKYU8FttyMPS5m7PuWluBxDpgnD41OEWiTaBMHMLoBuTVwE2Z4LftAgO+9w/1b78Ew== 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_bit.h b/include/linux/wait_bit.h index bad30ba..b504815 100644 --- a/include/linux/wait_bit.h +++ b/include/linux/wait_bit.h @@ -247,7 +247,10 @@ struct wait_bit_queue_entry { struct wait_bit_queue_entry __wbq_entry; \ long __ret = ret; /* explicit shadow */ \ \ - sdt_might_sleep_weak(NULL); \ + if (!__ret || __ret == MAX_SCHEDULE_TIMEOUT) \ + sdt_might_sleep_weak(NULL); \ + else \ + sdt_might_sleep_weak_timeout(NULL); \ init_wait_var_entry(&__wbq_entry, var, \ exclusive ? WQ_FLAG_EXCLUSIVE : 0); \ for (;;) { \
Now that CONFIG_DEPT_AGGRESSIVE_TIMEOUT_WAIT was introduced, apply the consideration to hashed-waitqueue wait, assuming an input 'ret' in ___wait_var_event() macro is used as a timeout value. Signed-off-by: Byungchul Park <byungchul.park@lge.com> --- include/linux/wait_bit.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)