Message ID | 20240508094726.35754-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 A9EEBC04FFE for <linux-mm@archiver.kernel.org>; Wed, 8 May 2024 09:48:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E53506B00EE; Wed, 8 May 2024 05:47:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DDC296B00F1; Wed, 8 May 2024 05:47:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C55636B00F2; Wed, 8 May 2024 05:47:56 -0400 (EDT) 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 A69AC6B00EE for <linux-mm@kvack.org>; Wed, 8 May 2024 05:47:56 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 5FDB71A01B2 for <linux-mm@kvack.org>; Wed, 8 May 2024 09:47:56 +0000 (UTC) X-FDA: 82094752152.24.A0031BB Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by imf17.hostedemail.com (Postfix) with ESMTP id 6F33C40022 for <linux-mm@kvack.org>; Wed, 8 May 2024 09:47:54 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf17.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=1715161674; 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=Qdzmy1TcEpWJEOP7MW1F3RyiYBdHIzuM56+NctWWzP+wZEARNuE4rhFGgrAtwVnjoXkLbT NUw0/Oh6u9HZHDP5kPvtMDMuksqrKUJoBAtYTyrsXbVlhXHTZdU+Rx5kboLRuYdfset88l ZAfk+EtluAonsVXrgOzIPs25WBsMHbY= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf17.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=1715161674; a=rsa-sha256; cv=none; b=PxCUqKerFSgncZwJH6aGJE6bwWno3wyH4gnpUU7N6jxXmi/7hBcWCbNr0wB0xwGLy3NI0i dX+6o+v3CQdI6qA0az1Zac+KVA7WSJRrnSCI7RuydbJ1a908DREphsrPPnR0R+OUd8xVka 2lv0zv8hoSnHZntcmZjz548hjxEo1ag= X-AuditID: a67dfc5b-d85ff70000001748-27-663b4a3ac0a8 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, 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 v14 17/28] dept: Apply timeout consideration to wait_for_completion()/complete() Date: Wed, 8 May 2024 18:47:14 +0900 Message-Id: <20240508094726.35754-18-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240508094726.35754-1-byungchul@sk.com> References: <20240508094726.35754-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSf0yMcRzHfb/Pz26Ox2E98ofcZkZE5sfH718bDxsamyGTZ3rSzXW4FNlM 6YQUYXXUaVfs3OpS7tJCccqlQyk10hJuDc1VpGuXzo8r889nr73fn8/rrw9LKMqoIFalOSJp NaJaSctIWffo/NlLNi6NnpvkWwSX0ueCp/8sCYYSCw2Nt4sQWMqSMXQ51sObATeCofqXBOiz GhHkf3xHQFltB4Iq8ykamjvHQIunlwZn1nkaUm6U0ND01YehPfsyhiLrJnieWYDBPviZBH0X Dbn6FOwfXzAMmgoZMCVNA5c5hwHfxzBwdrymoKotBK7ltdNQWeUkobbChaH5voGGDssfCp7X 1pHQeCmDguKeAhq+DpgIMHl6GXhlN2Io1flFqT9+U/A0w44h9eYdDC1vHyB4ePYDBqvlNQ01 HjcGmzWLgJ+3HAhcF7oZOJ0+yEBu8gUE509nk6BrXwBDXgO9arFQ4+4lBJ3tqFA1YCSFZwW8 cC/nHSPoHrYxgtE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fm0XBpSuwJh7GcRu2EtqXMNUiTVcoJUjxho 8rxUJI8KujmSWtPJEYM5gVjKfMmNJ05MSobcDDGXZ7DEPHSZI5nfWjEZaGzkSMPVMZp8aM3D O7z2y4IjpGh1oqQJWBcuizK9yeeOFcuSLBnNOAX18ZnIgxeFleJwbwOaZFZYLHZ0jFKT7Cks EC36T8wkU4JLJt5s3DzJs4Vw8dH3nKmeFnzEM/ZLOBPxvFxYJToeJP5TzhcrKq1TGo+J+m3/ wJReIQSKVboCLgvJDGhaOfJUxybGqNTRgf7ao1HJseok/0NxMWY08RbjqfHsh2i4ZUstEnik nCFvYoMiFYwqUZscU4tEnlJ6yuvPro5UyCNUySclTdxBTUK0pK1FXjytnCMP2SeFK4TDqnjp qCQdkzT/V8x7zE1BaZ0/zbvyXz7esyTrRxGUWBm7fvfODNfHbUnvHFt9AhI2zrRp7+yU7T1y Pb6U7AgTnVWG8DW6AI8I58JF3jXTOv0zpvuejXkaur99aN6wV8Lek1dOBW+bo++7vt62aeUu vy/Eftwz3Y/zTreFiAfiZ62Y79PvrHTMDqtrDi7sDVzlraS1UarlvpRGq/oLHG6EWikDAAA= X-CFilter-Loop: Reflected X-Rspamd-Server: rspam01 X-Stat-Signature: tztb6t8zpxws37j38iqasno9ff6z5bbb X-Rspam-User: X-Rspamd-Queue-Id: 6F33C40022 X-HE-Tag: 1715161674-584639 X-HE-Meta: U2FsdGVkX19ZDc4YdiKohyS9T7DCmRiTuN+5H1BUjsy442gOwJP46n88lqE2gpgMyAkyHwYbGWJv4Xg3qCJBaUqjShhsl6tv5gfjmAH4RFvJT4f1kSY0G0sxiix/EUmA3XJQ/2M8vr0y3iRzkTZVxianUOOPRqcUK7zrGX708+M8Tou3RcvGcBB0K66kR1pPEqvabMfsPBnXnWyVdMGkm6m92uvvqvFEXaaocx29l3I6YdDqyWCrq5pi8potKRcVyYC7RN65Mc9f6wKmsvReRJqv+AbybP8+hk14vmjtFRmiEw8ZkdHjHVs03lYBx9k3Isu0CIUgVRDRI92C4/D/psoA9Yp/bm9tWZI51CRsPWv9FXb1xIhhAOtMbOLLDc7tI60eaAK2mPG7nMdSb5lscAXMG0eqsPCg/V4rBXjUqEjFsGvg3v+r/IzbkIWKRmmqvLn4xj1RB9SyfYEmfTz9boruC7sW7kX14unbC8lNa/WUX0YjAjgkewWnmPIDFgSaEAvAs8BikZT8PPj+zueBA8aRnS5PJqa8KZotl29isNoAZKn1oHzLYvxp/XCHHSn3pnYwKbPoSdKUxBWglQqKuJYpoRPBpAY8BP3uhYbgx6ya6V++kg2s3PUAa/8WgzpKuejOB4pG0zJOeBidsK/1S8/V7xS/nVG3PQ+5Bfias9iJSzqBbdshtOCjEocL0HcXoRSqJDatM74O1nTT4RNvb1+EkJqBuE34jBAfzgL2qSwihOpq9elQqTDjfsu/kIK+mrhhd8KTUaEyac9nMIAlmqykZRxQeLazIkpBunj2COQnVRRFqeHHkCVn2p6UBvPtGsDVJ83E+FSXfqSrrhFQQga6urRG0z9AIZUUoFhF0BWQhZV+pyyUNEzWuySQRDUBUgOR7daariEURnd6FZ1O2xTRnLPOu678xLmtTY+padXPawrh7QZBIoPxxnXVM2Hi139fuoHvAhdtTHavIOY FoivD7rk fm90WqJrd2MxKVP1bRq9QE6eqfEmWg0QZA8oJkA9MTkMY+ZuJt287fP7A9+gR+mQ/bkGt7AIdVsIIS5iGIEeDBvoLK50Xs3lZtMX2R7k7Ywvx9bw= 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(-)