Message ID | 1675154394-25598-12-git-send-email-max.byungchul.park@gmail.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 AD0C5C64ED8 for <linux-mm@archiver.kernel.org>; Tue, 31 Jan 2023 08:40:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 26B296B0083; Tue, 31 Jan 2023 03:40:03 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1A1ED6B008A; Tue, 31 Jan 2023 03:40:02 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CCC7E6B0083; Tue, 31 Jan 2023 03:40:02 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 53E7F6B0082 for <linux-mm@kvack.org>; Tue, 31 Jan 2023 03:40:02 -0500 (EST) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 36883AADB7 for <linux-mm@kvack.org>; Tue, 31 Jan 2023 08:40:02 +0000 (UTC) X-FDA: 80414446644.26.157FE57 Received: from lgeamrelo11.lge.com (lgeamrelo13.lge.com [156.147.23.53]) by imf30.hostedemail.com (Postfix) with ESMTP id 11C2980007 for <linux-mm@kvack.org>; Tue, 31 Jan 2023 08:39:59 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=none; spf=softfail (imf30.hostedemail.com: 156.147.23.53 is neither permitted nor denied by domain of max.byungchul.park@gmail.com) smtp.mailfrom=max.byungchul.park@gmail.com; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1675154400; 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=YFB+mTTRMO0UpYua4CshxSpPgO7v1xqcrwX+V2Zz91Y=; b=6bpyfiGJRUMrKJTV6f9qFKZEoCf7rcEgpNWtVqckHd+hP5w6SPaby3/4MPDAVSx7aU2i2t P062f0kUNI8b52VrLyr8apqAZmOdL5tW/o1S8XUJxNAZjr6NvRU3zBP1pLN/8NZ2f18OZn INnoARNo+4iGz/9ue78jZzqJujSZiok= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=none; spf=softfail (imf30.hostedemail.com: 156.147.23.53 is neither permitted nor denied by domain of max.byungchul.park@gmail.com) smtp.mailfrom=max.byungchul.park@gmail.com; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1675154400; a=rsa-sha256; cv=none; b=UDRejCRIhSyRUgYrEzs6bNIojWbt4ROI2UToehlDDQ9bRi/ljPQx2+3PGMf6yInhY9n+02 qfC5lOFu+dPdRXwTT+ojrVwGFH+n7o+SGt1BecvWImqBaxUKx0ALcgdu8mT9Od6/PXm+t5 y+lzCos0fmhk0467HggKHOv6pws+F6U= Received: from unknown (HELO lgeamrelo04.lge.com) (156.147.1.127) by 156.147.23.53 with ESMTP; 31 Jan 2023 17:39:58 +0900 X-Original-SENDERIP: 156.147.1.127 X-Original-MAILFROM: max.byungchul.park@gmail.com Received: from unknown (HELO localhost.localdomain) (10.177.244.38) by 156.147.1.127 with ESMTP; 31 Jan 2023 17:39:58 +0900 X-Original-SENDERIP: 10.177.244.38 X-Original-MAILFROM: max.byungchul.park@gmail.com From: Byungchul Park <max.byungchul.park@gmail.com> To: linux-kernel@vger.kernel.org Cc: 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 Subject: [PATCH v9 11/25] dept: Apply sdt_might_sleep_{start,end}() to hashed-waitqueue wait Date: Tue, 31 Jan 2023 17:39:40 +0900 Message-Id: <1675154394-25598-12-git-send-email-max.byungchul.park@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1675154394-25598-1-git-send-email-max.byungchul.park@gmail.com> References: <1675154394-25598-1-git-send-email-max.byungchul.park@gmail.com> X-Stat-Signature: krezkwypghiw38qoytbnpnh14mdyecb7 X-Rspam-User: X-Rspamd-Queue-Id: 11C2980007 X-Rspamd-Server: rspam06 X-HE-Tag: 1675154399-691389 X-HE-Meta: U2FsdGVkX18ydb/nusrtbK3Hr9OPRBe671IE46mH5UsAM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1p0SqSq54BwAab0Z/KoT1QOecHfW9PPlfTTpDwZGxIEOjoThSyeM893cHY+bB8Xsi8VfVzY2Z8PWXFpdWbJtSB1cNcduVjpQ7YEM23NWAXB78TWKcp8OrrO8U2ADnExvbpTgso3as1tv16xNz4tFeRgYXGTFtAh/pLw0xKES5f3AAVmLjwHMS0EFH9nHdmLeYVO1Wg1RIORQxOoEqpuWv8NuApgLZpIRZWgm3d5dZDpWb3Wcog= 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_bit.h b/include/linux/wait_bit.h index 7725b75..fe89282 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 @@ struct wait_bit_queue_entry { 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 @@ struct wait_bit_queue_entry { 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 <max.byungchul.park@gmail.com> --- include/linux/wait_bit.h | 3 +++ 1 file changed, 3 insertions(+)