Message ID | 20240221094933.36348-10-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 6CFD0C54764 for <linux-mm@archiver.kernel.org>; Wed, 21 Feb 2024 09:50:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3AF9A6B0093; Wed, 21 Feb 2024 04:49:58 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 2C30E6B0092; Wed, 21 Feb 2024 04:49:58 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0297E6B008C; Wed, 21 Feb 2024 04:49:57 -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 D5CEF6B0089 for <linux-mm@kvack.org>; Wed, 21 Feb 2024 04:49:57 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id A82881409AD for <linux-mm@kvack.org>; Wed, 21 Feb 2024 09:49:57 +0000 (UTC) X-FDA: 81815339634.16.E048EB7 Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by imf27.hostedemail.com (Postfix) with ESMTP id C08194000A for <linux-mm@kvack.org>; Wed, 21 Feb 2024 09:49:55 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf27.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=1708508996; 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=1eOBFcXalbGipOzQfCW6GVtCbnT7Fu15jm7pcDyfuMU=; b=KRp25TKBkGX+WNk9KNWSdbH+2/IoxbKQLTx3VDGfHNL1uMreXI6XoM33Dbgy5eeS1hrPA+ DMeUw9QI4yQD2Z0JTs2bEuiH86uZNJT9P3mgiHu2H3s7f4DjwSkBnmne08QqJtZuQ8lbrK 12H7JSBTPQNk96t41jNLiNrqc2CTmlA= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf27.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=1708508996; a=rsa-sha256; cv=none; b=mWP0lVl3e77F1U7g0+piO5C2I1K5NNlY+NmzQRC7YXNWNOhUKw3jVqxOSKSYV8Pe3R388e wzVCmhlDZGNC33TCdePwpwY6yywn3dxvDuz8fn78m+t+WWyWKxo5LyyZm5nkZZkesmEn7d JY/qTG6rmxmfIzD1QVOWZK1NjOB0omg= X-AuditID: a67dfc5b-d85ff70000001748-19-65d5c7392c4f 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 09/27] dept: Apply sdt_might_sleep_{start,end}() to waitqueue wait Date: Wed, 21 Feb 2024 18:49:15 +0900 Message-Id: <20240221094933.36348-10-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: H4sIAAAAAAAAAzWSV0xTYRiG/f8zW62eVI3HEUfjxIUzn0bBO48aEw3qhcRII0fbWCppsYjR BGWKlgAKqBAthZQyXAUiojWACiKCVQuiAaKIg1BGkFaROlqMN1+evG/e5+pjCfk9agar1kaJ Oq1So6ClpLRvgnn5hvoWMTD220JIvxAI7uFkEnJvldLguFmCoLT8DIaeJ1vhjceFYLTpBQHZ mQ4EeR86CCiv60Rgt56l4XX3RHC6B2hoyDxPQ1z+LRpe9noxtGdlYCix7YTGNDOG6pEvJGT3 0JCTHYd95yuGEUsxA5bYBdBlvcqA98MqaOhspcD+bilcudZOwwN7Awl1lV0YXlfl0tBZ+oeC xrqnJDjSjRTc6DfT0OuxEGBxDzDwqtqE4Xa8T5T47TcF9cZqDIkFdzA4395H8DD5PQZbaSsN j9wuDGW2TAJ+Fj5B0JXax0DChREGcs6kIjifkEXCi1/1FMS3r4PRH7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An7ebEAwmDvEQPr5cQaKz+QiyE4vIuHFryYK0nqDYeKHkd4UItS7hwkhzZYo 2EdLSKGllBceXnnHCGk1PYxQYj0u2MwrhbInLixc/+qhBGv5OVqwfi1gBP2QEwtfnj9nhOZL E6Tw3mnAu+fvl244LGrUCaJ29cZIqaplzEXF3ZIkjeRl0inoJqNHEpbn1vIZw0+JKaa5Ffyb N+PT7MMt5m05Hyg9krIElzmTN4+00VPDHG4PP1r5A+sRy5Lccr7dPq1l3Dr+wrP+f81FfMW9 2umOxOtvFbupKZZzwfyrjgdEHpKWoBnlyEcdkxCtVGuCA3VRquQYdVLgodhoK/L+jOnUZH41 +t4ZVoc4FilmyVRVTlFOKRN0ydF1iGcJhY+MTPQq2WFl8glRGxuhPa4RdXVoHksqfGXb94qR cu6IMl6MEsU4Uft/xaxkbgoKsK/aVvfywr7Q7qOLRoZCTh70dRV05nYvXmqmLtrFnKi4rCUz ydJYviNk65ETk2Nt2NfVOmb7udDTk77gkmjQZGs2+PVJ/PWKMP+GZqsqPPRylTt8jzz+wLG9 p8/mdX1Q6dOXRe4o2+V4uyUg2xKxqTA0qsJ5au0qv2Obe7rWZTYpSJ1KuWYlodUp/wIpHJes LwMAAA== X-CFilter-Loop: Reflected X-Rspam-User: X-Stat-Signature: 55icbiwrd7b6ut9dft698edg6ku735kg X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: C08194000A X-HE-Tag: 1708508995-268314 X-HE-Meta: U2FsdGVkX19NEi5DC+RqmUWtjYQvCg4vS0e/VlumQfdwYl+kdw2HJkIDp2M/qb0Oug50t9d4EnVFEhRQgZ0w8SKYGF7x0965GL4ebtktJgg2YDx3BKYaxkNMIj1MtKwggsiJsrrZYxTS2wJI+ATkAnVPS5EXIg5M6hMXeNJ+DpsTMAOqMsVZNoICaUVFTYC7rf8w2ClwR3dxKL3doUW5eIAFxNfRPC+dazPuCSZR0FAaNB59f2+pEhPVgdCgJu4dEkVpMsIgarAJBXHfXJwnDNmv+4L3h1xBaCVwhqeMANqAS6JjSGFzAg0Z/6XHS2dTO94C9971og+Lv/JndnbonMf1ekTI04OIOYrfpEdxC/Cezx8ownt/u+hK2szBm2tl57UZ3/0SkuZXtjzchjPlGyPjzYd9M8gpj+9kjpRODEdlMQX6F7BQHK7F9jiZ4iByk7XGoqz2WxcnJzvA7OS/RIOALtnGNsZlEyo7RrtWKfYQ9o49HdG/gdZAvSbOVncjzYvLcQexTfcVLysxLmndaQk7imO797ureBIFDEXJ5juC/VPNnDsP5w+y/qeRccHMBvKl1Q09/VqzneHuhJHmzjH4/8HFoK82bG8NzdoaYuWyHVgF7lqePL28b5FD+JBJ2R2v3gDvul9zfNSHWZtVm+otYmDiB1axDQv1Tqj9QDXsushDFKuCGYmoKVLwKRkI/KDYx1z27yNDXXzAftqLF7pL+bwTZTH/bJcZ6OEfS7ATEF700zZ3kYGzVqlV5WmwI5KprkI83j75FuF9dk8dWsRwazJvfq1J7ulC6IghYE65UyZ8FLPFd93jxCbXYFKLtEFDBisikM7Z7FWlZ3oYpR5TZNOn1n6kQyGiSZofzOXiZ3Z4GRkDV+Vb4OQNOqhCNXa2aQRtq1TspBG+Q5ydUJyqOvlWL2DUd8RntlpwxolKwdpNSobBqE+C3iz338DMDudZnLWADKsjhbGOX35 1QlGwhGM Ipl7aooov1+Uln6/ZPBxYJv+W0Kph1m/MNyhTfZD/jRXT2qfiIZtH+StzhPUd7wOt7yyzAi++j65jynjvVyuGhbIZgBARMS/nkya7qyN9lzlcgilGMmSUitV8UZsY8Y9FgwWDg+M/qNobyGVoljgseDpIZQ== 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/wait.h b/include/linux/wait.h index 3473b663176f..ebeb4678859f 100644 --- a/include/linux/wait.h +++ b/include/linux/wait.h @@ -7,6 +7,7 @@ #include <linux/list.h> #include <linux/stddef.h> #include <linux/spinlock.h> +#include <linux/dept_sdt.h> #include <asm/current.h> #include <uapi/linux/wait.h> @@ -303,6 +304,7 @@ extern void init_wait_entry(struct wait_queue_entry *wq_entry, int flags); struct wait_queue_entry __wq_entry; \ long __ret = ret; /* explicit shadow */ \ \ + sdt_might_sleep_start(NULL); \ init_wait_entry(&__wq_entry, exclusive ? WQ_FLAG_EXCLUSIVE : 0); \ for (;;) { \ long __int = prepare_to_wait_event(&wq_head, &__wq_entry, state);\ @@ -318,6 +320,7 @@ extern void init_wait_entry(struct wait_queue_entry *wq_entry, int flags); cmd; \ } \ finish_wait(&wq_head, &__wq_entry); \ + sdt_might_sleep_end(); \ __out: __ret; \ })
Makes Dept able to track dependencies by waitqueue waits. Signed-off-by: Byungchul Park <byungchul@sk.com> --- include/linux/wait.h | 3 +++ 1 file changed, 3 insertions(+)