Message ID | 20240508094726.35754-15-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 949ADC19F4F for <linux-mm@archiver.kernel.org>; Wed, 8 May 2024 10:03:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 04D616B00A7; Wed, 8 May 2024 06:03:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F3EFD6B0118; Wed, 8 May 2024 06:03:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DDF856B0119; Wed, 8 May 2024 06:03:01 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id C5AD66B00A7 for <linux-mm@kvack.org>; Wed, 8 May 2024 06:03:01 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 6C285A23F0 for <linux-mm@kvack.org>; Wed, 8 May 2024 10:03:01 +0000 (UTC) X-FDA: 82094790162.02.31CDB56 Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by imf21.hostedemail.com (Postfix) with ESMTP id DCFA91C0022 for <linux-mm@kvack.org>; Wed, 8 May 2024 10:02:55 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf21.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=1715162579; 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=z7OkeT6xvSEqQwLdFXJGyxH34kbodoT4wnSvM20EAlw=; b=VdfmpQOW2K3SolpQ2wfvlgMG4qYGCxvbOckv4fWSxBuuJV5jX3lBxGXkNQkJONnyvt3iTI Cb+63iEHBYz1e3JFJBxAILHu0ba5HkHDznXYjTCNVk6wgUHgVU3Zh4c3segsWgvWKIDdZW s0VQ+nqogXjyG1638gBi6xFV38yoerI= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1715162579; a=rsa-sha256; cv=none; b=5P3UfF1x5xMRCpphJR7/8DyjYg/Kv5P6Kna6nVIAh/FEw5caYrPTig0jU4Uk5IRCNXot5y RBPBeybkIKDxgOvswOHbDzQYmSdjBhkS2DfrzDxpC6BpVngbc4gQFQYtVt4v3RDLUnmNjV hCjiXbN86c2B5XbboP6IDdoVvL7d5/M= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf21.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com X-AuditID: a67dfc5b-d85ff70000001748-f6-663b4a3a5441 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 14/28] dept: Apply sdt_might_sleep_{start,end}() to hashed-waitqueue wait Date: Wed, 8 May 2024 18:47:11 +0900 Message-Id: <20240508094726.35754-15-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: H4sIAAAAAAAAAz3Sa0yTZxQHcJ73TkP1tcPwjpFMmxAVM4YG9UxxMYbpM4mJ15hIjOvgReoA tVUQGQlIuchFgQWqgKaAKRWqaOEDIrgKgiApdti4QrhMNCIKNDKK1lY3Ltm+nPxyLv9PhyNl jbQ/p0w4LaoSFHFyRkJJJn0qv9m8a0tMSEuXHIryQ8A5k0NBRb2RAeutOgTGxnQCxjt2wp+z EwjclickaEusCCqfD5HQ2DmMoNVwnoGnL5eAzelgoLskj4GM6noG/njrIWCwtJiAOtNu6Cms IsDsGqNAO85AuTaDmCuvCXDpa1nQpwXCqKGMBc/zddA9/IyG1oG1cOXaIAMtrd0UdDaNEvC0 uYKBYeM/NPR0dlFgLSqg4eZUFQNvZ/Uk6J0OFvrMOgJua+aCsv7+TMOjAjMBWdfvEGDrv4fg fs5fBJiMzxhod04Q0GAqIeFjTQeC0YuTLGTmu1goT7+IIC+zlALN4AZwf6hgtn2H2yccJN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hnIueFjoCyzAEFeTgkF2UMRMPujHEfvEjo806SQ3XRO aJ0xUsKLKl54ZBhmhOwng4xgtJ0VmmpDhLstE4RQ+dVLCzbzdSzYvt5khNzJPkKY6u5mhOel s5TwsU9PHA5MkESdEJNVaaJm655EiXJsWEefdrHnf3U+YjKQC+ciP5bntvPOFzXkgjG3gXe5 fIsO4NbxTfmf6AWTnEfCV3cfWPBy7ihf+Lly8Zbi1vOPHXmLlnI7eKvLTP7rXMtbGtsW7Te/ HxibQguWcRG8PcvAFCGJES0xowCVOi1FoUqOCNOeUqarVefDjqem2ND8u5guzema0ffemHbE sUjuL+3BkUkyWpGmTU9pRzxLygOkjqs7k2TSE4r0C6Im9ZjmbLKobUeBLCVfKY09IibKuJOK M+IpUTwtav6nBOu3KgPdWmNsiJIlRLGdIUFGd2Vzp8VdOG738RmpG+/tV45Z64I6Vw+Nh81J YoJn7YV5xvCZ+44PdRWeUX1w2Yr6Bl0MUicESrfmuEyOZZveXdzydJ9oie6ofmvGObilsDRX 0zWy+fUOZf/uB6b4fH9laFzB3vZ936IO2uNDDSm/42k5pVUqtoWQGq3iL4Oqv/cqAwAA X-CFilter-Loop: Reflected X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: DCFA91C0022 X-Stat-Signature: cenpsng5zus5rii7wowtx6s84s5ycudc X-Rspam-User: X-HE-Tag: 1715162575-293495 X-HE-Meta: U2FsdGVkX18wYfk0SiRDEDheCYWBHGwbbexqOrMbCh/9QIaxgHNup1V4HQJoSyHEo30ujCjYYPzc/0B7LtJy12UxccgEWr84WYfcQLffqRVkBFrdteJgm2yJlULGEM7l66eLFt/gcYajhx76OWQYP5BaK6ZIHxqeZT7DKkFyf4HpZpE84VpSvU6RSx7ow1eSAYiieaDnJYKBuNjv/oMbXgqZPB9EHx3vxcfKrl2QFtl5wuutjohPtIMFiQueZS81LfuiN/K6cAh0i3m/60wZNaZZYJgdxt+nKb6qLJY9qTL4uASV1FacEEsEZ0Z93UqKXdzWXlMKVZy3GsueKolha8RRn4uXLuONl74xOpp44o1tp2qCkdAx0jKuhYsXo09aTg8COkfQDgposoTCwLQv6EVs0iAnY5reG1BWRgDU9S+QwtSdcTXk+J9mXBehCkKquHAzbb/m0aJzgCUBmW8meaeL60/A5Ll0ATM3NcrEIeiauGAQ8kynsVQpBftaymHOcCiTGB8X5pETcmGp7Q6Wjpe/5q9SwaJB+UcGKE+jIoL24R1kddjag3hNq9gFRckUWK5GQjKkJhOSyB+RPk8LyoYXYy5yvf3Pjah7GYwDMEZ8Z5mAiUTDGaoEH6buKUKtGuGdCOOGit0SYvgofyuT2ITeCSTP4ObcLdhwaFodwWsJ4hzaT3QvMmErEOLSvmfBANotuzzt0BRNQ/znrwhwNiboYgwj6Mh7MnE3NJa+HE7zmuW58JcnVAOEbQXAuuFtKUSL2KvqIFvKoYgjceWPoBtu3YDJfwNqzPnar4FbQH6sNkLmZ0KwPNhZqrtCUexzCkAcQy1rV2lXuF0Hiq1DWoK7Y//EXKrKTps0Bbl0Krn91DZMjh9qlkzqGwUJcKmN/1wuqh2uRadnkEKG6q56h5tn4v6hudeaPFN0kROiMg0vEdyZfqR/k2wGidJBWvJS8uYGAdC3Bua7+CcLHme 62BV2+s0 2fDKDrWS56WgBWGI+OqaLZGgBanq44dnGMUgJeS4mjM9VgwTXxepxgkMeHT3/NCDl7MozBp07A+byNGyYRECUr4PhUkIY1zcMzunu0aavN+V3+yw= 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_bit.h b/include/linux/wait_bit.h index 7725b7579b78..fe89282c3e96 100644 --- a/include/linux/wait_bit.h +++ b/include/linux/wait_bit.h @@ -6,6 +6,7 @@ * Linux wait-bit related types and methods: */ #include <linux/wait.h> +#include <linux/dept_sdt.h> struct wait_bit_key { void *flags; @@ -246,6 +247,7 @@ extern wait_queue_head_t *__var_waitqueue(void *p); struct wait_bit_queue_entry __wbq_entry; \ long __ret = ret; /* explicit shadow */ \ \ + sdt_might_sleep_start(NULL); \ init_wait_var_entry(&__wbq_entry, var, \ exclusive ? WQ_FLAG_EXCLUSIVE : 0); \ for (;;) { \ @@ -263,6 +265,7 @@ extern wait_queue_head_t *__var_waitqueue(void *p); cmd; \ } \ finish_wait(__wq_head, &__wbq_entry.wq_entry); \ + sdt_might_sleep_end(); \ __out: __ret; \ })
Makes Dept able to track dependencies by hashed-waitqueue waits. Signed-off-by: Byungchul Park <byungchul@sk.com> --- include/linux/wait_bit.h | 3 +++ 1 file changed, 3 insertions(+)