Message ID | 20240124115938.80132-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 01BACC47DDF for <linux-mm@archiver.kernel.org>; Wed, 24 Jan 2024 12:00:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0771D8D0009; Wed, 24 Jan 2024 07:00:07 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 006958D000A; Wed, 24 Jan 2024 07:00:06 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D20AB8D0009; Wed, 24 Jan 2024 07:00:06 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id BEDD78D0007 for <linux-mm@kvack.org>; Wed, 24 Jan 2024 07:00:06 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 8E1AB120C82 for <linux-mm@kvack.org>; Wed, 24 Jan 2024 12:00:06 +0000 (UTC) X-FDA: 81714061212.16.8D58300 Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by imf30.hostedemail.com (Postfix) with ESMTP id 89DF780024 for <linux-mm@kvack.org>; Wed, 24 Jan 2024 12:00:04 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf30.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706097604; 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=jTSjP+jXmdt+5ZBvWmfI+FHB4Uwrqdaf398X8saJntl8KQ9RM4/VaKTAiCQgEyrUmxGN5w Zs/ruOMi5RMjUyJlk8V+YCaZO5RT8n2/6+4wYWBnBdUiSy440hNEBqtXQ8eq/iUt9Z1rsX a2Ou7chx19dyBrQ1axEppfdgFbxfLgw= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf30.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706097604; a=rsa-sha256; cv=none; b=odDVUM6PiH642CvmFNIqTnZBnBzQTSPKtW9cBj7HjUwgc0jxpbI9xwS/dOfmus/SnbgLF5 JeDZG+GHcx+Yq3hXCZMFzv7nx42pu/Rt5HTQQ1oyKlpP8auzAOkignYWDZRMDzqFT7kbl6 VtlIfqyvY0Tz+Zq4fVBXvoRzYwvBbic= X-AuditID: a67dfc5b-d85ff70000001748-55-65b0fbb68577 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 v11 17/26] dept: Apply timeout consideration to wait_for_completion()/complete() Date: Wed, 24 Jan 2024 20:59:28 +0900 Message-Id: <20240124115938.80132-18-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240124115938.80132-1-byungchul@sk.com> References: <20240124115938.80132-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSf0zMcRjH+3y+P+84++4wX8VwkywrP+bH48eMjfmOhY2/+EM3fem4O+2i kw3h9EslbTmltbrs3K5LdWdz6JJrlTQ5aSRJP25I5TiuyeVHhX+evfZ+nue154+HJeT3qVBW pT0u6rRKtYKWktLhqaVRd4JV4rL+B1K4krUMAt/SSSiqtNHguVWOwHb7HIaBhm3wcmQIQfDJ UwKM+R4Epb1vCLjd2I3AZTlPw3PvNGgP+Ghozr9Ew4WyShqeDY5h6Lqah6HcHgMtuSYMdaPv STAO0HDdeAGPlw8YRs1WBswp4dBnKWRgrHc5NHe/oMDVuQQKirtoqHE1k9Do7MPw/F4RDd22 3xS0ND4iwXMlm4KKTyYaBkfMBJgDPgba6kowVBnGRalff1HQlF2HIfVGNYb2V/cR1Kb3YLDb XtBQHxjC4LDnE/DjZgOCvpxhBi5mjTJw/VwOgksXr5Lw9G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PdYwT11/ow mE0dNDhcwxgs5mwCfj9sRDCQ/pWBlJvjDNxLSkdwIyWHhFdTzyjQdgfAxK98es8OwTE8Sgha S4JgcxeSwvNiXqi528MI2vouRig0xwkWg59QUjeEhaIfLkowG6/TgvlHFiPovjqxMPLyJSM0 35kghUFnLj648ogkMFyMUsaLqo27wiQRpjd5TOx9yXnL9ddYg/pYHfJgeW4LX9JmomeZ5tbw nZ3jxCx7cqt4S9pHSockLMFdnc8bvr2YO1rMhfGNDusck5wvn55qm3uQclv5+u+16F+pN19a YZ/zPWb8R3ld5CzLuAC+z3iLyUCSQjTPiDyVMfHRCmVUwAZ1ZERijPL8hlNno81oZjT6S5OZ VjTWHtSAOBbJF0j3GMtFGaWIVydGNyCeJeSe0s7lZaJMGq5IvCCqzp5UxUWJ6ga0giXly6TB oWKYjDutOCdGimKsqPqfYtbDS4OarEuTccK+xuDProt47+/NzvbF07EjdzqO9aqf9CcssYeX H9B8uLzIe9vHnsDK4E9TPkWJfiFO9swJc3Z1RqxV0xPk3r19dYHWc3tHfPplnUGj2/nU2/jO 58np/Vyg44yx7P38iLUeu46GHr6U4u0TrL7t7g6Zd9x6YXNWzqGawOm9clIdodjkR6jUir/I npxQMAMAAA== X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 89DF780024 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: 7nkefz58i6kuiw1dcapmi4yui7hoj4zc X-HE-Tag: 1706097604-582996 X-HE-Meta: U2FsdGVkX18ursVW/NFwRZZ9cUzg4cHThQRXsH2ZzLXr2oJcE7QM721680Iz5k2qPpYuauUMcqk5AJabE0lGgjr3dsxXIoF0Cx3ZpxicblH2OVPpCbCnxAFz2Sxd43hUO5RG5jQlC7TSan0eSA3si+Tu4JAqX0G6Tu6+fsTIeCXK710Ynx7ULqwQQNsM053plxpzT1RcpK+RcVvZR1zc8i1w9I8bwyng+vRGWLEhaFkXkbUJu5ZomIBuTUpe7rGC7RHFp3CmbmLKsxQY4G3ABlMwcnopPKni9Arozan9eoK3iXyw+JyRqAPppdye3Cq4k1C5aOR6/xUCjScOfjVELCACOR/fzwDYhE1hx/0xIk4Jz8Cfufm+RIPwfwXLg3Ar1V4ArixkrLVRFyfOqDN2EejYWmx5AGdEIE41khD1y8jwKJVT2T4MYD+eOmF8YFTvONnQoPQOP90AGOHJcef1CBTp6JCc6ZL6Usq6HzIwQFxn3HRz++WNB4uF8AuufdA++/UgNF8FbIQdlLeG9jp/BTvEpCuqHh/nX2cjTN04aoW26z3XjJfSWoRSNXwJ/WJ2dtSjMfr0go//Dd2XqFB0Drh2EmMAkLqM4oYMmkUPGoUnjORDgF+pnjB9Actp/cleW4pHglkc29iMC82Vismr6fKuYTJ7RVwf95ZP5mVfndqyMXsXXFmu8yJ1H1tfu6d8IgGhMUv8ZPCZK+xbDMrB+Fj4KCVdtTwejxQfPajycxB+mIFHpdex54nrBWSc8HKWpplU0lpquuPmYW6qpwO/ojTm2fiFnjb63jrEPOp0W5oqCiOYqH7wre1e20clnRDQOpBenAhojxfqETsSfvOIfPmqLyNa2EWxhP2MbWa0qy3TaatxifjlfLxkGLuTCWQk9D59JCcvVd+y8M0R2PSaRU/7iu+Qddl+Z0txJ6j0SL/vwBY0TGCKr2SysAk/ihKZx8R+I9DEk6mkdmxsBsp dZoxpX3E mqSTw88q6MOMios9Y1u3Okm/J2njKUGgInqmXEayKDz2Pz7PUVLvC7410NI7N5K9SwLgaifPueV45q9Udelxdu6mCm7uHnJDW0zNmxby6vBhvbkA= 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(-)