Message ID | 20230626115700.13873-11-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 47540EB64DC for <linux-mm@archiver.kernel.org>; Mon, 26 Jun 2023 11:59:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B88BB8D000B; Mon, 26 Jun 2023 07:58:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AEABB8D0005; Mon, 26 Jun 2023 07:58:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 98B078D000B; Mon, 26 Jun 2023 07:58:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 865478D0005 for <linux-mm@kvack.org>; Mon, 26 Jun 2023 07:58:48 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 4ECDEAFADC for <linux-mm@kvack.org>; Mon, 26 Jun 2023 11:58:48 +0000 (UTC) X-FDA: 80944752336.25.2E84D62 Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by imf22.hostedemail.com (Postfix) with ESMTP id 53EBDC000D for <linux-mm@kvack.org>; Mon, 26 Jun 2023 11:58:45 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=none; spf=pass (imf22.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=1687780726; 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=rmNEJTaUYs7UE2cWJwbcfEU9pc5mtKN+YN10z92GqIs=; b=7/hqUB8rY47vzinnzJlArniylSZ+9hHKPPjkIo/sfiJB3vaauosRuTSpbTEpcdPzH+9tKN AXomLWKtEBLXF3D37RplPfEfrvqovXPUlpebZd0qYqAJCDnwjPvdtbKFGob3+I2tphrFPn cqXKbCEJVDlvwZJUcMmug4CcY9+kHtk= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=none; spf=pass (imf22.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1687780726; a=rsa-sha256; cv=none; b=JHr59BvdSmMbRZGVaDVB3iX7tZKTINpuE6XOdYq6DfX2MDEZ0u3Bfay+Badg61NwwdAl+E KhrX00OS11mnZq4Pxm74OuKW4aKBKW4S9FpLzeWCg4NgIndJPL0412XcRwCK+6oE0rLrdA nKOVfo9JfttQlezrHLU/Pc+MdV1fGPI= X-AuditID: a67dfc5b-d85ff70000001748-35-64997d6ceff0 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, paolo.valente@linaro.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 v10 10/25] dept: Apply sdt_might_sleep_{start,end}() to waitqueue wait Date: Mon, 26 Jun 2023 20:56:45 +0900 Message-Id: <20230626115700.13873-11-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230626115700.13873-1-byungchul@sk.com> References: <20230626115700.13873-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSXUyTZxTH97wfz/u22u1NBX2mqEsn2+ICK0aXs6mbu1h8srhkm9kStwtt 6BvpLOCKosxoAEGhWAddsApkluJqhQ6k9cINShAUqKB0whjDgkrYkEllAcrsYB8tZjcnv5zz P7+rv8iqW/iVoiHjgGzK0Bk1WMkpQ0sdScaj5/TaX2dehLJTWgjPFnFQ1eDGEKivQ+C+ksfA xI3t8PPcJIL5W70s2MoDCKofDLNwpWMEgc+Vj6Fv7FnoD09h8JeXYDhe04Dhx0cLDATPWBmo 87wP3aUOBloj4xzYJjBU2o4z0fGQgYizVgBnbiKMuioEWHiQAv6RAR58Q6/CuW+CGJp9fg46 ro4y0PdDFYYR9788dHd0cRAos/Dw3WMHhkdzThac4SkB7rTaGbhcEBX9vuBj4MTMPzx0Wlqj dKGRgf5fmhC0FN1nwOMewNAenmTA6yln4a+LNxCMng4JUHgqI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dl2P924T0H76xoE dWd7KLBUdWCo9w5SYLXk0fDr5hMEvec/c3Amy8dB4enzCDLPXGbg+e9GFgzuKBj9WYTXRpP6 wWGaGKxHiW2khCHNZSJ5WNDNEUNdF0dKLEeI1RxKymsHKFL6zcsSS8U5TCzfcjli/NxOEXdH LSZDra0caboyymybs0sWrZa0miRJt3R1rCzOWXP88K2A5LoLXSgV3eSMKIAXhUjxXN+dScbC IrGz00dPcJAwX7Rmf2CNSMbTQvlUsa/p8aQ0Xdgh9t8yT0qMsFDMyHThCZYLy8WeL4X/SueJ lffsk06A/17ztAxNsEKIEtPcDnwRyUrQlAoUpElIildptFHh+oNxKQma5PB9h+ItyD8c08mx nAfoh2uDAwk8Uk6TR8y9olawqiR9SrwDiTytDJLP+JmvVsjVqpRjku7QXt0RraR3oFk8o5wp 37RTilUI+1WJ0kFJOizp/n8pPiAkFcXkfdlYGLjUUOsxlI9gxO/3bY5P61/FKMNcm7b7eEUn rzFef+qwzx0P3l28y9Rav0BYcyO1uH1N8LPA5nVFkc1CaNKcaHPfh9hL1SvkIebZ3p5FvsWn DiyeotMeiJuatSN5KEa2Z7bx/rg3w7P+UUHjlu7bJ5as/rr13fdQIuW+UTL6ONWyUFqnV/0F DodnXDQDAAA= X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 53EBDC000D X-Rspam-User: X-Stat-Signature: dg1qejk18fz3nbdkbifatjxtjdog96xa X-Rspamd-Server: rspam01 X-HE-Tag: 1687780725-618867 X-HE-Meta: U2FsdGVkX18ezrKfDNaAMXreO7nuzD4GWU7ABm91xjjztwRJtir/wZ2vOoD/hKD4GjE9hKszYy9Q0BmKLnKu1mP3LE3W6/HOrmXn0xi6rBGKuF5Be4M3+MTzbtkajTQSCeN9I/FRI7MHJzygGAPUjNqjmpKWUhv+AdRdJbW1CeynIpIH6OqbOKY1a7ke1Tm/ZqaqUCU5zCoLQb5nEIWj9o54rLmmsnt4sccJ7t9FdKAOdbonavadQ4b1BABj6HgnbToCidgKuYb/G42A9WTmW7MV66Pw3re2jDXywwH2GUwsUJwMW1hWPeZ07ei7OnppWK8zGBzfaxmHRxSMlxBkKp9cjvnLQQWQTQTry7xaXyz/I3LtZjXBL8LJr1tX2EFi4Uwru7y+WSoisQZJlvcdtYzm71whc5YnShjJR7DuZZe5Acb9mKrfwGPWnI/rmJTdbpNjPtr8zYYM6mKhO+66E6pQdskrPdxvWnf+i2r5YaIDA7ST+Zc9ywG4N7Z18WcLaanebn5YMmLvF8GOVlK+OcktYzJaks8VIkRHPHdYyalMdV0SotCFgN/WGBUDdBd6DQCxvq1lBVFjsc59BqJLvqguXGiD1AHK9zVT1XWL8vKK/BiG68sZPK5Ckj0BN7fjXjFt795+svKBy8yLBvWtEJz75H+KZNVeZLnOmM+1t9ukJY0kDnC8MU6dtVGu+LIvS8I5FZKDPwGPvEHJXNb4/36i2yalovPl3NsXVIDgB/wgTqNgllSXtfDhJy9j9Gx96crbgZ6pj6yRPBGBt24oSkafLwTpRPDt2cSmV6HfkEZ4gLRppBb/z3kvkRWPSq+Skc4kj0Q1wIj0g9W5cQ3IM0fnTuOPQqAbfphu3aY8047VCO3cqXPB9IOjwjfi35EqMMVJJ7xZ2khvN0ze3Npy40+z9X5+xFHrrKMPHJb9gSnafxygKbwkPmO/BQaVNjeYc/FEv9F3e3zdF0IvRmJ 0oy67ClO JfxT+sZEXBe2Y1vwBpYJz2j4Ck9E2OYGJKlC2VSDJevf5a7gRrdbZtgKwih+yqvOlqKqa3f37ckJ0bhow+gvD4hgSyaB3lPgd0/EVLMsJSscEWGSJvtGMqQphumKSpE0ypyYDgrCrJPcWY4s= 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> |
Series |
DEPT(Dependency Tracker)
|
expand
|
diff --git a/include/linux/wait.h b/include/linux/wait.h index a0307b516b09..ff349e609da7 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(+)