Message ID | 20240124115938.80132-9-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 17BFCC46CD2 for <linux-mm@archiver.kernel.org>; Wed, 24 Jan 2024 12:00:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E34BC8D0003; Wed, 24 Jan 2024 06:59:59 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D457A6B0092; Wed, 24 Jan 2024 06:59:59 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B9A3B8D0006; Wed, 24 Jan 2024 06:59:59 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id A3BD38D0003 for <linux-mm@kvack.org>; Wed, 24 Jan 2024 06:59:59 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 79E2EA0267 for <linux-mm@kvack.org>; Wed, 24 Jan 2024 11:59:59 +0000 (UTC) X-FDA: 81714060918.02.A10CBA4 Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by imf30.hostedemail.com (Postfix) with ESMTP id A80508000D for <linux-mm@kvack.org>; Wed, 24 Jan 2024 11:59:57 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf30.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=1706097598; 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=jJeNhuOs33ufOy9DU95W1l4Cp1Nhf5LuW3gJvObKSUY=; b=SgyktsKOLGZ+nGkNBPtELvVLUvDQkdr8p8sR+aFLCCBfHjxOAeAZRWOeYVxwqlSyhdjred H8PbPiOTKQrBxdfXLU/KW6+JuLpQTqaphrlLDoNz5zEZRwEtUzIE4ecyiIGdZ89rUworf1 rz4JcV+svivnWks+AORUeH+7FwwzC+I= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf30.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=1706097598; a=rsa-sha256; cv=none; b=I+wtIBPRwd84TIa31M8YDYGWGdtiii6vfWXCZYl1EBLKpM0EsYpg35HpGYRHSJ6ZaFfs7z HnBb3Krlty2Y7eT5GVacvmy7IBgeGR+F36eBEQW3RaMpBaAs3i3Xeqc0R2HMwdQenJh7MD WZilW9lQoWUMK/ZPL+LXlfJp9Su7Ryg= X-AuditID: a67dfc5b-d85ff70000001748-c5-65b0fbb52f43 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 08/26] dept: Apply sdt_might_sleep_{start,end}() to swait Date: Wed, 24 Jan 2024 20:59:19 +0900 Message-Id: <20240124115938.80132-9-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: H4sIAAAAAAAAAzWSa0iTcRSH/b93Z6uXJfRmRDKwe6ZlcjANoQ+9fQiioKAIXfmSq6k10zKI vKbNvIat8tLUmGuarq1ArdlSsky8S5qYqJlp3nK5kTorZ/Tl8ON3zvN8OgwuqSE9GHnkFUEZ KVNIKREhmlpVvOvFokHwGf3hDzl3fMA2l0ZAQVUFBe2V5QgqnidgMP72EPTYJxEstrThoM5r R1A89BmH540DCMy6RAq6RlZDt22Ggqa8dAqSSqso6JhwYNB/LxeDcuMRaM4uwcAy/40A9TgF +eokbHmMYTCv1dOgjfeCYd1DGhxDvtA08JEEc98OeFDUT8ErcxMBjdXDGHTVFlAwUPGHhObG 9wS052SQ8HS6hIIJuxYHrW2Ghk6LBgND8rLo1s/fJLzLsGBw6/EzDLo/vURQlzaIgbHiIwUN tkkMTMY8HBbK3iIYzpyiIeXOPA35CZkI0lPuEdC29I6E5P59sPirg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lfLUwTPkz9isFka CVS5+zHYbdkM/Lr3AkFn+lcezl308JAbn47gwrmrLNT9fslBYpsWvD/zyLoAWtU/wNBE+wnq GC5g6atCiZbf+MDTxOetPC2wHaf24gW06FkvprcH3Ry1mVMItQ1m8TT1qwvTb2/e8LTmmpel Xa4cvG3GTsXqUDlcHy0blqwJUYSlJ7tJVLUQ44jrZ+NQHUlFgiCJ/tItN0pFfgIR50nNzR7G x9XibMme9olLRQqBEc+Pl4q/1xKfMVncKn1q6mB9XVacK5XbZ/pkpaiVOruLWB+XxFlSSWnF vx0/caV0/3rrP101lvlovsRnIEUBGmdGan1kdIROH65dbDwcFhupj1m8/0iEDY1dxnR6JPMx GmrYVIlEAWkmKNeZrbKK00UbYyMqkSQwGrWyeeoDWaUM1cWelA1H9hqOh8vGSjRdYDVTlJt3 yCEq8aDumHxYlqNkw38XC37T4tCj0ffDizKcV5SvXO/OBAbOcZfOrFKrA7LmrxqNvxRUtHuz K9TjFXf3hfRtH0j5Tpsua4OeLFye1Hx3wqD/5bUb1h9V+Q8GBbeX2coP3DnVOOnsii35OzcE H5ojSWXBu8hvHDN/9p6hlEouu8XRfTPfKtbkaVfXnu7p3tjTvWaf5UuXhjWG6ZYtYAxG3V8+ 1AJ4LgMAAA== X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: A80508000D X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: 8efxiiixrcxdwqhbqbqf3qeoz9anwdgb X-HE-Tag: 1706097597-535565 X-HE-Meta: U2FsdGVkX1/e3hr4Z5bEzRJFCVJ1N9D06lqddM7MJgID4ZWikd8bEmLHBGZbFHWTIgJmSwZ8Nc/gdjhQCZdvdjzckMV1hdS5GR3ye34r2qbrv91h4gfOyCRu563rh9++OIWSqF/xm243EofvjwqY33J+u9iQCdgxhTPwQNNgAWPthCdjzOJ956Um1HGtKytHQ6GarmqFPVHqrLgWiJxH7Ycv7fdUuZutRFfmxktg8VO246rHMrUEFrFPKYJgDMe4b3HuaA/vogc9KxZYosCsddZDmosidAGLAjGdq44KULU5idYbUH17A8Tp7+mWSE0XYlFawK6/XbxU0c+Ff5pC39sNzxDvA435TRky5DpAQZNxfZuwMYKP2+uu20kPjtgzHLDVn7o1GZFIu0vusweDaWfgDXLlLt+X+5ll9xW0oEC/QqVDU/USmv9JV7T4ePeznJmuNj6dofsTXlHYmAG8DpsNrv2vpqECfSSYMV/YTljCGQQzBvKaH9ABaZHgZMG9dVoqd3W2w7lI9yNwQLL9t+xDbfeBKB2nFPTCTHN/t6hg2brn9k+Lvo5DhHYBaSJDx9ExtpTeOG/N+9VD/prlGzkCZDmRRfLB1Da9GmRarY+mTGl0Npi1eNZdPXIyzgNIRZZs/w7ejgMIyKvu7hasI0PJgjebE2JF7LNGLFCM/2EjAF20qGw47XApI+tJ9EZh+FCISTLeSk2bYEP8IzqOOP98H15FSu8I308cJSZjWFolgzt4Qnrbytn8norjVzQ2FvlNJ1R1+Zwzmm1M48KtnTEGG1kGOuATGcC0/FeyS4B5iuY0c7qILNvSeHzXarvV4MteilTbcy7azWJCGtZ9H3CsWeofYEmqlhkJ+JfiPqEi0i8oskBb1TgQBhTHRhrIHU2bQ2La0ZwPy6h4e4vBPUlZ8PJqjULKBwE9W6aYt8nfpDmSzapBmSyLm2WNJEBWMBAvTH5yLSVaBUOwMPc AT/MW+so TKz61cF4CJvD5V72tShZOiXr4LnsNU4GTc4gw0BzJzZFNRbpDPMaNqIbVDaOXynCDDWDFOcSfowU1o97rDB66syws57ogf8aIbln/OzZeJNlyIOFIwSUxVxoIhFlRCt+bofnHIEfL8p/c0C7NC4g6X9OUMQ== 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/swait.h b/include/linux/swait.h index d324419482a0..277ac74f61c3 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(+)