Message ID | 20240221094933.36348-18-byungchul@sk.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 D9B10C5478C for <linux-mm@archiver.kernel.org>; Wed, 21 Feb 2024 09:50:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 537526B0098; Wed, 21 Feb 2024 04:50:03 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3FA266B009A; Wed, 21 Feb 2024 04:50:03 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 13AA56B0099; Wed, 21 Feb 2024 04:50:03 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id EAC176B0098 for <linux-mm@kvack.org>; Wed, 21 Feb 2024 04:50:02 -0500 (EST) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id C6E78A0D38 for <linux-mm@kvack.org>; Wed, 21 Feb 2024 09:50:02 +0000 (UTC) X-FDA: 81815339844.20.B81D92D Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by imf01.hostedemail.com (Postfix) with ESMTP id EE6D54000D for <linux-mm@kvack.org>; Wed, 21 Feb 2024 09:50:00 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=none; spf=pass (imf01.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1708509001; 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=i+vMKunG3eaiF9lJzlsXPRXR8u6Jtbkfr6fzW/dMC4o=; b=m3g7ib6hQkXfZaAyY8oIf5HHvrIFyAwxR3TbpqZxFiFhoOKtiOQ5xFtiInsfpFOhAvYXYV nD2XgmikH77S1i9XuVoE+COus6DFTJi2EVX0BCPB6rCqWoqBuA1JJDSSr+LgZX8kCjH/PY 2AG84ffGyQvpWTdxdG19OXTMBFHPZz8= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708509001; a=rsa-sha256; cv=none; b=pjbYJjEhiCuNTAsncSLExu87n3HvoBJfkmApF1TadNQ+MwlLWZMFkl7kuLxXvoTmAyflsX NWRxLt6C/UIriGNURlPJug5ZQNEuVcCPkxdb4BRRiKpus8yhf6PMdNqVFlrg3RJrZd0SZh Ck9xs5iimtF0zZF2koGxcO5wD964EMs= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=none; spf=pass (imf01.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com; dmarc=none X-AuditID: a67dfc5b-d85ff70000001748-98-65d5c73ae00c From: Byungchul Park <byungchul@sk.com> 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 17/27] dept: Apply timeout consideration to wait_for_completion()/complete() Date: Wed, 21 Feb 2024 18:49:23 +0900 Message-Id: <20240221094933.36348-18-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: H4sIAAAAAAAAAzWSbUyTZxSGfZ73k0qXN9WER/zB1oWYAcOPoDkxxo9fe2LiZrIs0WGiFd6M Iq1aFCiJCdUqghbRBDoomlJn6aAqtuoYWFMhUqoBQYuiAVRiUMKX4kpWwbmWzT8nV+77nOvX ERlVG5coavWHZINek6fmFaxiMr7+2/WBfnlVlzUNzp5eBeG/TrJQd9XNQ++VJgTu6yYMY3e/ gyezEwjmuh8wYK3qRVD/coiB653DCHyuozw8evUFhMLTPASrTvFw7OJVHvrG5zEMVp/D0OTZ BvcrHRj8kdcsWMd4sFmP4eh4gyHibBTAWZIMI65aAeZfrobg8GMOfM9SoebCIA+3fEEWOltG MDxqreNh2P2Jg/udXSz0nrVwcHnKwcP4rJMBZ3hagId+O4Zmc1R04v0/HAQsfgwnfruGIfS0 DcHtky8weNyPeegIT2DweqoY+NBwF8FIxaQAx09HBLCZKhCcOl7NwoOPAQ7Mg2th7u86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WYEI2c/cXCiIMhBSc5ZBPknLtDw7GcrA6aBeAh9L2VXLSdNvjGK mFyZpC5QRpOnFoncvzzIEVP9K46UOdOJyxZDyh95Mbk+7meIs/IMS5zj5zmS98mDyeeuLo60 XQzR5J2nGG+atU1YsUc26DNkZfHKRCHZ0XOJ239VOOQ648bZaJjPQypeEpdKOX4PjjArLpD6 +4NUhDXiXMlV+J7JQwJPiacmS7YvnWykmCYmSqZWC4owLc6XaoMmJsJqcZlkDlXhf9I5kr2q 4a9IFc4rSnx/N9FivPTcfY86h4QyNKkSafRpGak6vSE+1piSnJWmPxS7e1+qE4Wfxnp0oqgW fetd14hEHmmnqJNrPHI0o8swZqU2IomntBo1nRmO1Ht0WYdlZd8uJd0gGxvRTJ7WTlev3yon RotJuoNyiizvl5X/LeZVM7JRm+F2ihLVkfmk37Ll9Vv15oSK/MwcJfbx6t64a2+P7U2ybx9U BXoS4oeG3T6+Jl3hcaC2ft7hggOl87aotkctbG5a6b7n2r0oaXa1fN+ydkfPaF7fEfK+eVds TH3XUo+vplyIYio7yMejFyvW7EzXPEjwhgToLByvKCqwmZ19WtqYrFsSQylG3R8w6iL+MAMA AA== X-CFilter-Loop: Reflected X-Stat-Signature: pqp6nxiahzs644s8nu7m61jo75am7agr X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: EE6D54000D X-Rspam-User: X-HE-Tag: 1708509000-180837 X-HE-Meta: U2FsdGVkX1/g6IaTr5x3L6h2TBUeQLYVF409eKvlL1eSepcqYlR/BHforrSgRMu2DX/ZtxqBwLRJXfwZhmWaEFUyUA2dj6FCx9l0uQal2VgOoYGrtKwIrl2+0HPZeFDi9yv1Ft3nuYrkRBT9Icrt6fW3qFpSQlYp3W/++zjAnhGWhN/RNKeHH/he+odHJzfIKQTWai3GVZtFIjxYZ15j7yWdpRI0XiNoKoEe4tMBTWOmxWlitGBlhK0Bz8zZ1VmIsQM9sPj5U32Ko02Mpb9Ic2KIGBdEDV77tRdLNzvFw5J3EWxIfge7M2M4+bpPfBmG2bDNatyzUWBF0l60Wav8mSPMNCYU6b0Y/pfTJhWiPDLIOJoFJxI3f6EZPgIM0C7ytgm8IDnYLXLxoNhjwvhXQQZ7SM29SCT0WdkgYh21QzUTLf9ickbLVFPUTYk0ICLmYrOP6KMTWsK56UNcaQBvJOb60CikAq6hoMGToJFtkTLZZP9v5lVeWKPv3yHrl9JKtjAIdq5SwDgwGw2x9/GHz6LCBBXEr+fW0N9K4q+rUHLfUPwY5oHUjEvQjzSGplH5BgXDFVK6bqWY+tbzoCo+5cTp4BL1K9ThXkIFtiNeYDN1cBlJ+mzu56EVE90Xbnp7DeoZjwg4PBr3I4+XsUiJ/h1AOeHTRIes+St9ISqT8i+4QEwuv/7PYK4sNItF5T1jUIwRuddgt8zDokooeMDU98PahHfac5Sby5SASgADhPmmAcCapdu5dTVewtZNZO9vYlmw6/fN8Ro7kvVGi34koem7uBSD92a9o0kdZ68dek1zmFnGVOAoY3dNBKn3rVWO5IwueefucuQu4kUhJ4JV6YTE0GLyk/zMpobbsd8rOEQwQ+nUTI2EXzB9RKMzpnm9wjktvRE86CcrK5ZZ0Py4JzddCAkwSXRYJJWvXsuZkGyX8BYrKRiegvqNDUMy2ut0ZXAAZzRtm3ULXWr5CQZ k3txtOMx TnH/tN4sghAJQFnpg7yOzEBlufJ4nWX5ANiQYSw+mYSgz1p4/YDQQmu8jAmr92A/nVvuvu4kFujuM3eSNnGpzSAYLarRhoG2/qlVGiel7JOslhrg= 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
DEPT(Dependency Tracker)
|
expand
|
diff --git a/include/linux/completion.h b/include/linux/completion.h index bd2c207481d6..3200b741de28 100644 --- a/include/linux/completion.h +++ b/include/linux/completion.h @@ -41,9 +41,9 @@ do { \ */ #define init_completion_map(x, m) init_completion(x) -static inline void complete_acquire(struct completion *x) +static inline void complete_acquire(struct completion *x, long timeout) { - sdt_might_sleep_start(&x->dmap); + sdt_might_sleep_start_timeout(&x->dmap, timeout); } static inline void complete_release(struct completion *x) diff --git a/kernel/sched/completion.c b/kernel/sched/completion.c index 3561ab533dd4..499b1fee9dc1 100644 --- a/kernel/sched/completion.c +++ b/kernel/sched/completion.c @@ -110,7 +110,7 @@ __wait_for_common(struct completion *x, { might_sleep(); - complete_acquire(x); + complete_acquire(x, timeout); raw_spin_lock_irq(&x->wait.lock); timeout = do_wait_for_common(x, action, timeout, state);
Now that CONFIG_DEPT_AGGRESSIVE_TIMEOUT_WAIT was introduced, apply the consideration to wait_for_completion()/complete(). Signed-off-by: Byungchul Park <byungchul@sk.com> --- include/linux/completion.h | 4 ++-- kernel/sched/completion.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)