Message ID | 20230821034637.34630-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 5AE05EE49AA for <linux-mm@archiver.kernel.org>; Mon, 21 Aug 2023 03:50:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6808194000D; Sun, 20 Aug 2023 23:49:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5A4E294000C; Sun, 20 Aug 2023 23:49:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 35CEF94000D; Sun, 20 Aug 2023 23:49:53 -0400 (EDT) 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 1274394000A for <linux-mm@kvack.org>; Sun, 20 Aug 2023 23:49:53 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id E0857403BF for <linux-mm@kvack.org>; Mon, 21 Aug 2023 03:49:52 +0000 (UTC) X-FDA: 81146733024.28.A061F48 Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by imf04.hostedemail.com (Postfix) with ESMTP id 1175A40005 for <linux-mm@kvack.org>; Mon, 21 Aug 2023 03:49:50 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf04.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=1692589791; 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=j3qZaaTKkqDKVjKQYLdByHPT5Ri7p6S8VHG0sIrEZsU=; b=zX7bFhiAvGoVzc9WJGwJ3eZfIRjgZ09YC36YGViaIgkop6dQtoKjZfGiYXaN5aECxnQDOI Dv3THThXYGjjXKenI0jjgySDzW0HVzztSBU4oR0I939Yn1PK3S4lRRk5+CQqoF8tKmi1zP mpNz2N2QM7jlJZIHu9FtqrMPqvvOwak= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf04.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=1692589791; a=rsa-sha256; cv=none; b=1+mrCwjSdb5wsstnlQAo5PL0cHsFY4dHKgBYXpRSTIB3rJMqKxGTvTQ7VUgiD/7X3VXcGt UbcMUi6kci/lo7szjvfiJ8w7DlNeS6xODQrQX1LdCRzUv1B9Z+QMLCzrHVmOZFNbpoUg3E J+EnBF1COnjuZ58W3B4aLv13wYgh7ig= X-AuditID: a67dfc5b-d6dff70000001748-7c-64e2ded5515b 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: [RESEND PATCH v10 09/25] dept: Apply sdt_might_sleep_{start,end}() to swait Date: Mon, 21 Aug 2023 12:46:21 +0900 Message-Id: <20230821034637.34630-10-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230821034637.34630-1-byungchul@sk.com> References: <20230821034637.34630-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSbUxTZxTHfe597gtXa66dmc/EOG1iTFhkanw52YYxmdEn2TQmmzHqB71b r6NaQMubLFmCUsAp+MKCqIApoLWBKtLqVsBiRQHRAHVFBIZMKlGJRTZcGZVOV3z5cvLLOf/z +/QXWW0tN1s0JKaopkTFqOMlLA1PK1t0r9+vX9zQFwvH8xZD8J+DGEqq7Tx4L1YhsF/ez8BQ 0zq4PxZAMNHWwUJRoRdB2cADFi439yNw2w7w4BucDp3BER5aCw/zkFVRzcPdZ2EG+k4UMFDl WA93jpUz4Ak9wVA0xENxURYTGU8ZCFkrBbBmLgC/7bQA4YEl0NrfxYG79xM4daaPh6vuVgzN Lj8DvroSHvrtrzm403wLg/d4PgcXnpfz8GzMyoI1OCLA7x4LA5fMEVHOi1cctOR7GMg5W8NA Z089goaDDxlw2Lt4uBEMMOB0FLLw8nwTAv+RYQGy80ICFO8/guBw9g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osQVvWh68MdObbMWRdqcfQ N3AHQUv2Uwxy7WMW2gIjGBrkIgo+X21H4C14w0Fm3gQHZekFCHIzi2no+dLJgMWlgclP5ezm DaRtxE8RS8PvxDZeQZN7lSK5XTrEEUvLIEcq5MOkoWoZudw8jMml0QBD5OrTLJFHz3Ik500f Jm+7uzly99wkTXx9JXjn/L2KjTrJaEiRTKti4hX67jwnl9zBH/nLNsikoR42B4XwohAtWixP qBlmhaVif//Edw4XFokN+c+ZHKTgKeHUbLHqXVewwPNhwm6x8fz2mRtaWCL21g/QM6wU1olN 02X/OReKNXX2756QYC7faUIzrBI04nvPM/oMUlSgWdUo3JCYkqA1GDUrzQf1qYmGIyt/S0qQ UfBnrMenChvRWG9cKxJ4pA5Vxs/36lSMNsWcmtCKRJ5ShyujPnp0KqVOm3pUMiX9YjpslMyt KIqn1RHKbT9L8SrhgPaQdFCSkiXT/1vMh0SmIeHWg6vpxWH79p/yy5YF7T3O9OVtsTGaW6/m 7TDpY/Sx5A9j67nIop2fOyV6cfHW9e8L5iYbNc1dvtmzjs2lY0PfRe//t/TX7LVjD8Iqo9w/ XCdhD3V7TuBnGtsuMdQxZH26aXTVNbtv3Ytkn7d/yyJXtmt8Ojo2aY9l0NnlGYjwq2mzXrtm GWUya78BjoQ5KS8DAAA= X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 1175A40005 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: cnm6wbik93m8qgrtmwg1aw7zkcpcyjju X-HE-Tag: 1692589790-369167 X-HE-Meta: U2FsdGVkX19eUbAAUwk945DQgc337kq3MrEpKJF60Tbyw1gkw3hGkwE/IENwX1YK2YSr7X3tGd+hfQaZgEYJYir7BngAWOKQbkBjuL97PnvvsW+n/ghd73/yoMd972beeuB77I/C9XUdPJXJtJ+A4vGHDvbWDGIzxrKe/+ycfc2Ekq/xYo0ykfHGk5tH7cd7YOfeQ296DQ0EvlCia69E5y/NRgpfxWf0SFbpw/rGywo6m18TyPuGlEGcm1k6e0qHk3saGzYiDQb+viDQrP+malxom1oCcd3/kMe/ytgSz715gISpcsWEac/XEov5icOqb8h7VJVlpvfdiuXOvIFnD5k/vQnS2e/dUGO120+CKpzWiH5hzD3Fsh6iMytCyEntIZ9D/b3OTricpV2hHrjtSJI9RZCdZLUb7BXuYaTFdup9OY/35xT5KZ0yanoP13XUyzGMaFOqIWep3fAjbDreNzGrqIzp8vARiPwioqO4AI+fuDuH/v3X9B2r5PMo7uHZ+cROlHG5V/g3bBF6nTXlVM2lQv7RKdxsfnWcaTl6jX98WGHsAsNfWl5o8Ye8tvpx3pRG7wcgiVsuIqRyqY9bjjE1ejQLVXvWTJXTBB7j4y0ddcvkfvJG8jsLcs0qbfyhRr1s3juO3ghsIyCldeswKoyYLMu1xw/Lf+rL0U3rtVBCY5WfsnUIK9ombUfPRyZyJGI6oFMVtKeN0nBlM1u07MScFpEwERXw4CINkZ2nHhExnA4tc1oEoI8egDS9bibwisicqMX1fU+8nDfrvudyncxdNpOoIwOuT71Y0/qPlMYdbj0Jje/y1jGwRcByXJo0vy+3LAezo58ZDnR9nXK5Uff1fN2w8gFKE+ajwzbIRRNgW6Rsgr86VkUMH+RLRVusyn/CCdRDfwWRj6EKvyKZeFZfM2z5dUBgm/24W2JsBQQvLA9yZfVivGEftiIGCf5K36jQhB8QNjr8BVwGo6/ Kvs0C8d9 QDbcjsba2mtRB3BKJ3/FiAvW+141051JzD4OlvpZ5A6cpXOqqRTcDzyMYUd8WLTVN2dr/v01nJHJYheL87BMV/gre3Zcs5sTImpcquN0FqcfYlAuH6auuT2e3E+GD4qBJfnNuzclnBYXunbQrAb0OYlsz/Q== 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/swait.h b/include/linux/swait.h index 6a8c22b8c2a5..02848211cef5 100644 --- a/include/linux/swait.h +++ b/include/linux/swait.h @@ -6,6 +6,7 @@ #include <linux/stddef.h> #include <linux/spinlock.h> #include <linux/wait.h> +#include <linux/dept_sdt.h> #include <asm/current.h> /* @@ -161,6 +162,7 @@ extern void finish_swait(struct swait_queue_head *q, struct swait_queue *wait); struct swait_queue __wait; \ long __ret = ret; \ \ + sdt_might_sleep_start(NULL); \ INIT_LIST_HEAD(&__wait.task_list); \ for (;;) { \ long __int = prepare_to_swait_event(&wq, &__wait, state);\ @@ -176,6 +178,7 @@ extern void finish_swait(struct swait_queue_head *q, struct swait_queue *wait); cmd; \ } \ finish_swait(&wq, &__wait); \ + sdt_might_sleep_end(); \ __out: __ret; \ })
Makes Dept able to track dependencies by swaits. Signed-off-by: Byungchul Park <byungchul@sk.com> --- include/linux/swait.h | 3 +++ 1 file changed, 3 insertions(+)