Message ID | 20230626115700.13873-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 55227EB64D7 for <linux-mm@archiver.kernel.org>; Mon, 26 Jun 2023 11:59:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5957D8D0009; Mon, 26 Jun 2023 07:58:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5457D8D0005; 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 397CD8D0009; Mon, 26 Jun 2023 07:58:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 24F768D0005 for <linux-mm@kvack.org>; Mon, 26 Jun 2023 07:58:48 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id D756A16073C for <linux-mm@kvack.org>; Mon, 26 Jun 2023 11:58:47 +0000 (UTC) X-FDA: 80944752294.26.8DD88DF Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by imf06.hostedemail.com (Postfix) with ESMTP id EB348180008 for <linux-mm@kvack.org>; Mon, 26 Jun 2023 11:58:45 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=none; spf=pass (imf06.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=j3qZaaTKkqDKVjKQYLdByHPT5Ri7p6S8VHG0sIrEZsU=; b=M+bYRU0oHobLzTQ1kAAfREoJ9yxZP7pKsBsvr3u6BwZKy5zWUS2Km4sKtjuOKuX+dNtr5R xDZs1bjSHxJ3S9pTWMzM+uo+oXC/AXG/EOd6kxKb8m0JSNFti8UIc/h36FLBeW0NodNieD ANjhNpcTZLiEBBtYsTtb/MlFXPTtnwQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1687780726; a=rsa-sha256; cv=none; b=WtD6XN5xKooWEfTfO6tZfKhdxgwTAARzjxEwvIkA+GtDHx2caw9MNZh78+ijlZwr1qajJx yGLQn9prixB4PNPyQYAwlcxgiKtagMwSqcQ6ZLtaqnOiMv2Y6ZL/dA4qfU/chvE9SRpfNk LrAzIBdtTeY7EvtoULxq3ve4CdPUAjE= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=none; spf=pass (imf06.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com; dmarc=none X-AuditID: a67dfc5b-d85ff70000001748-22-64997d6ca48a 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 09/25] dept: Apply sdt_might_sleep_{start,end}() to swait Date: Mon, 26 Jun 2023 20:56:44 +0900 Message-Id: <20230626115700.13873-10-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: H4sIAAAAAAAAAzWSa0yTZxTHeZ732mrdmw7mCxI1TTqNi4BOyDFeE018P0g02cwWXKbN+iLd Cmi5iYkLl7ooF4MmpQgNwaIdoTiw1YhCkRUtIAoVEZEUJrCIKIhhtrEUxcL0y8kv55z/73w5 LCG/TUWwmpR0UZei0ipoKSmdWmperz15QR0zVh8J54piwPv2NAmm+joa3H9ZEdRdy8UwcXcP PPFNIgg86CHAaHAjuDgyRMA11zACR00eDY/+XQZ93mkaOg2FNORX19Pw8NUcBk/peQxWWzx0 lZgxtPrHSTBO0FBhzMfB8gKD31LLgCVHCaM15QzMjWyAzuF+ChyD38CFSg8NzY5OElyNoxge 3TLRMFw3T0GXq4ME97liCq68NtPwymchwOKdZqC3tQpDgz4oejnnwPDHfx8oaC9uDdKlqxj6 njYhaDn9DIOtrp+GNu8kBrvNQMDsn3cRjJ6dYuBUkZ+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2loyq73Udk9ApyvaxDU XXhLgLmyC0Oje5QAizmfhJ+3niEYvDTGwLksDwMFZy4hyDx3mYL2X000pLtCwfujEG+OEBpH J0gh3ZIkWKeKKeG5gRceXetjhPS6XkYoNicIlvJAobR2mBBKvrppwVxxEQvmr3mMkDHmJARX Vy0Wxu12Rmi+4qV2LdsviVCJGnWiqF238aAkyp7lYOJs7ImH1l46FbXjDOTP8twG3mb6SMww 5lbzPT0ecobl3Erekv2BzkASluRK5/BDzU+ZmWIht4Pv+J02O6C4AP5VX9esSMqF8Z6cvn/S Fbzpbv2syN+X17wwoBmWcaH8WVcDzkGSYuRXgeTqmMRopVoTulZ3LCo5Rn1i7eHYaDPyfY4x ZTq3Gk12RjYgjkWKudLg5VdUMlqZqEuObkA8Syrk0kU/9CqZVKVMPilqYw9oEzSirgEtZSnF Yun2veJBGXdEGS8eE8U4Ufu/JVj/Jano1J4jbc4nJrmf6svTPe8ipaex/UnHsuN+u29UJ916 u95u5J0F+w6POTSqi+FFYd1SpW4+tW1VCXpg+V6Vv2BiizdWP2dyG24LZAt/Hd26arzW+oiP 3v5ivvwxn+DdtzVQPbcnr3OvJORnkV11+mZQWPObAH2Q4fPqpk2HWoczN1YoKF2UMiSQ1OqU fwGlIlRlNQMAAA== X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: EB348180008 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: dx7sefc3gqx4k9sgnocbh4e8ocn51csj X-HE-Tag: 1687780725-971583 X-HE-Meta: U2FsdGVkX1/WoXPXZ/hwNE9WBpCcUoKTKiQYoxphU/vePz19hbQ5de1IWhp8OcvVksP0/PQQN/y1tHmTxqzxqSxYvwvRAyNIW7qj63UFxEgPg0mnVHJVD41XfSS63LAm6axQWUhOjc4yqtqunbc1hdwyfkT8DfATp7Onh+HYUdglQTPDcF3+5FrGUz/8cHT0MN3GI8ZAUCOCsYtZ+kucZvuKyd61Q7zEXV1yuXgGS4ybo3IUeXlpdrcLsji54JkqQmrK9unPqqU1QNvpwKbCxAjsObCMiam5hfdyQQVmT57XC3E/5eQL77FRTXPyVuqFwWGpVT2v0kbmtpGQHr1jTlewDIHzqbqJFBI6A20E2MaX7VFDUhgwz+/YOjSp+bVJI2UznD1TTiKnKUyQE4+Gz/6ze1KlpMod9qKCFzybl/qfIwnkXbzsE2w6Yl/cgjqA/v8H0/fTIyF1Zvu0/QF8RbLlSG0Yzwar3noPOyx7dIs6PS7vqpIdq2VHV4IHfpqviSkwviUh8O3NFTAAz5cKOoTJITOOKqzJvy/AEeBwjr2RRMD7hhI6tFO7znmoqzMeN7hJ2WBFAsf3m1xP1sIkRHmzOFQqa+ziIsTuso/1TgP8g8VxR8LqJ7cIu02KgTFRvnDViwRwcvSTVl3maOxqqq9RHHA93tz3TSSAB0xN4gZ01cXCOY7QeCRmqZ1/8B1qbljfW7zrRIj3N+vXOF0iwNOTDgEL/gy+UZSOEURrLw4WdIPszzsJqj1siDSr2XOWs6EDgMv14z8El83dn/NK7aqG8WLiSpaC6vdq1MCe/SkvE3RsDxZRJKj/dysGS9Jfbq6CC3t+eiypoNCk7uuj8RUPKJpqGIN0cP5mkmE1p2N+pfg/yHw6apT90in0Zo1jiYBxji6fsPXZk7CEFyPqTm/RHycLgqwicifY7phDIsXKoExT2GsHB8TiFVe7puJw6WN5fwPWej2ojZHucCH svwAP+Su ohrho315f7PLmxTrx2nALoSI4SP6vOFY4Gz4czqB0RYVKr48wPVeqfpJG3VHQ8O8BYUs5ve6BG4IscV0Q9hakLtosgppXk5gPP1gvG3qXEz7iYr9I8F+cYk9IF8WrihRqq/3SVptiU59c1rJA+S/MTEiOow== 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(+)