Message ID | 20240124115938.80132-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 BBD1AC47DDF for <linux-mm@archiver.kernel.org>; Wed, 24 Jan 2024 12:00:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 496348D0006; Wed, 24 Jan 2024 07:00:02 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 41E056B0093; Wed, 24 Jan 2024 07:00:02 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 271BD8D0006; Wed, 24 Jan 2024 07:00:02 -0500 (EST) 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 0B41A6B0092 for <linux-mm@kvack.org>; Wed, 24 Jan 2024 07:00:02 -0500 (EST) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 9FBC41A0BDC for <linux-mm@kvack.org>; Wed, 24 Jan 2024 12:00:01 +0000 (UTC) X-FDA: 81714061002.15.0CC668D Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by imf27.hostedemail.com (Postfix) with ESMTP id 7804D40016 for <linux-mm@kvack.org>; Wed, 24 Jan 2024 11:59:59 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=none; spf=pass (imf27.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=1706097599; 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=0vg8hH1BRvHblXEm43Wn2x7K+G+Ywi0tu9TisurC0uYf8gDHl7EPxzkByb2+F44qJWDZPe uEYk0bTBISU0X3Q9vkil2TBdjGE0P0LEMFBVMBg1/bva117/BIs2YMI14hjMD7rpEa61XA ESRBLnQx4RARW6vzCrEM1xQNUk/xJ1I= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=none; spf=pass (imf27.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=1706097599; a=rsa-sha256; cv=none; b=AvdHgm/bF1N8agPRJTwy+xtLOMOZc33Y4VXspqhD7MFtOdlWA00rsxo4I5OLP3lsOtktlK ak/63dspGe6J6PIxIVEr0Jy2ztDO9QfKOxQT8YobSP5z1OGbQb916rcaEcBOmiqyYPtMFB m3cVoYTZrkK02sPNIIYZcyoD7CDt1N8= X-AuditID: a67dfc5b-d85ff70000001748-d5-65b0fbb5c9e5 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 v11 09/26] dept: Apply sdt_might_sleep_{start,end}() to waitqueue wait Date: Wed, 24 Jan 2024 20:59:20 +0900 Message-Id: <20240124115938.80132-10-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240124115938.80132-1-byungchul@sk.com> References: <20240124115938.80132-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSfUzMcRzHfX/Pd5z9HOpHRrtpNs8PsQ/Lw9D6arMxmz/4g5t+000d7ipi LDrFXVG2RFp64Dp3x+UKSdcSRVEdFed2hdbQlNpxcS4PFf757L3X5/15/fXhSHkVPZ1TqRNE jVoZp2CklLR/QtGCO4EycXGeFUF2xmLwfT1NQb7NyoDzpgWBteIEAb31UfBqqA9BoLmVhNwc J4Kid50kVDR0IXCYTjLQ1jMR2n0DDDTmGBhILbEx8PzTMAGeC+cJsNg3w9OsYgJq/R8oyO1l 4HJuKjEyPhLgN5pZMKaEQbcpj4Xhd0ugseslDQ73PLhU4GGg2tFIQUNlNwFtVfkMdFl/0/C0 4QkFzuxMGm58Lmbg05CRBKNvgIUXtYUElOlGRGlfftHwOLOWgLSrtwhof30fQc3ptwTYrS8Z eOjrI6DcnkPCj9J6BN1n+1k4leFn4fKJswgMpy5Q0PrzMQ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ennADv64cIHme+ I8BZ0slAg2+IgApnLgkTRY0I+i8Ns3D24jgLN09fQnDh7FUK2n49pSGjJxQmf+YxW8Nww9AI iTMqTmDXmIXCzQUCrr3xhsUZj7tZbHEexxW2EFz4aJDA+V99NHbazzPY+TWHxVnDXgJ/ef6c xc+uTVJ4wGsmdi3fL90cJcaqk0Tt2i2R0ujmH4N0wj3JyVGjgdGjIjYLSTiB3yBU3a2eZYYP Frq6xskZ9ucDhIrs93QWknIkb5gj2EZbmSzEcQv53ULZcMpMh+IDhco/+bN9Gb9RGGjVo3+b K4ViR92sL5n271/vpmZYzocK7+yXWSOSWpCfHfmrNUlxKnVsqFIXE52sUZ9UHo6Pc6Lpz1hT p0w16HvHdjfiOaSYK9tqLxPltCpJlxznRgJHKvxlXUtKRbksSpWcImrjD2qPx4o6N1rGUYrF svA9YqScP6pKFGNEMUHU/k8JTrJUj+IXWtIKjR7HsN/UarOpyb1v0amAzreZQfV7t3ziEkrD fxmC9POueHGva9sOidJYU2+N6I8IOLCgRag/5ppQSqgnfocu15bbX6fq0245gpXNt53UNzHu yO98X1uYzXWiOTpnLHK3JtySeM+0YiIoYP4m/5cG2adQg2du40C1u1tB6aJV60NIrU71F0/v DPAvAwAA X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 7804D40016 X-Rspam-User: X-Stat-Signature: 95cqmifkkfe53csq8rzzabm865so9qfd X-Rspamd-Server: rspam01 X-HE-Tag: 1706097599-59439 X-HE-Meta: U2FsdGVkX1/w/aO7Xiw3izhDlunIEVAxGLIKFvk8ke45HReX+hFNfwg1WSqJojIw8O9sDs4OeZrraoF//xkk0TTaHr4Ahs84eH43jWYulCKUVdhCWThVsZio9DO9H74Iuy/z75eg3tGCkYMecx3Oft/mvdjeeiRJY2OIO0O8cg8jIVE2/O9gwy5RcK/MYh9guMWNzeYcXrbgO/vkyj94ucBAc+V85cQ2LnH+ZazvXJaPr35WqXyse/5U7KNye2NyZccj7w09JwEtKYD9NrWNTm3/HHwFdkGTYUmaDqrQkYsPdEYuuLULS6J4+EpKfNvTZRSu6bXMhYkN8+DQ6Y28AY0bM+doDm503GA4yPTf0r04AWXJaey4YCIVQVflTwmP/UulaGdEwPadD5uOohQ2oWpp6DE+Bt2MnzXXIRwIqtRzCmXkws025tjdSC+hksO3rLaZTUT6UKDbEqvJqt0j+b5iRSV/rzKRodngE3IN7yqrQDQkXjYHgI2iP5KDkQfkdHxQP6R46NieSDuzWXAddrXvx+50XoKRfH3SJTzmD+rhsrsq7KBcv4bYZ0X0tlhAhJt2VcevGAsc++8G1vc3SMxJFI8JxXuphFelcxMwE6JMGKEapSspfKQMMXN2q+bJU6azY7pm0cilSy6x/IEKwHeMK+W41yX51AkFw+dWMdmjmy7fcm8MWGGuJj9r6n0FfPeFlcoOrLmMXWCeIqWP8PZriexlLyezrEy6DBd+kk7TTKO6fhr4WSezLlsFddxhiaXeIwvzJJw+yKWFfeN/sxLWtHa7LS3TPPyUjn8AMfs+7J5SsVb5Hq7rZDwXj/J83H+4iobHvyz7DdLStawMcWEhiCkiRT1v89URuLIaygLzvswSmW1ygJo1+R54ypGhDbGLYzPuY29iO2MOaUbEQlQ+ugLYuT0h4TzPE6ErJoOxWJe19AsV9O4s1lRIwjlYahlD30XqUSeoOVe2M0i 1REopE/K ZNU7tXEDpYN6eHNcvqLVqLHKoP9/J0hNdjkGDCfjwOdO6uW4NeNg5pItt9S0KxxzMizkHS4yDiimh9mDLpnYxabRshcXXq8d2qyN6h3Yv3Ba86gpndWqPAMB7dg+6v3mpTD3ey+JlkUL8g+WLwMjGL48m/w== 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(+)