From patchwork Mon Jul 3 09:47:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byungchul Park X-Patchwork-Id: 13299826 Return-Path: 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 9A1B5C0729B for ; Mon, 3 Jul 2023 09:50:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 471E28E00AC; Mon, 3 Jul 2023 05:49:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3FA878E00AB; Mon, 3 Jul 2023 05:49:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 225A28E00AC; Mon, 3 Jul 2023 05:49:52 -0400 (EDT) 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 1435D8E00AB for ; Mon, 3 Jul 2023 05:49:52 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id C4FCF808B3 for ; Mon, 3 Jul 2023 09:49:51 +0000 (UTC) X-FDA: 80969828982.21.7A7EA40 Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by imf18.hostedemail.com (Postfix) with ESMTP id 22A741C001A for ; Mon, 3 Jul 2023 09:49:48 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf18.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=1688377789; 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=rmNEJTaUYs7UE2cWJwbcfEU9pc5mtKN+YN10z92GqIs=; b=gxNgDtQi8VNHAGn2NoUqv4aPLAm+5XCiHieTN8krmKxVNtx9GbnUeOjYHDj4QKH1Atj5JR DCIPVNmXOFUlgmwwV0F1ft/3PDZaR18x9Bh4kGKrlm42ghaPP9Qi9oQQ/8p1ywddNMGiLA 2kQ3mAP2v93pXYUnwndg/wpukl7fUd8= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf18.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=1688377789; a=rsa-sha256; cv=none; b=VP0hfg0VF196zrap+IV44djc6sOoI/8dp+fyr+AAolKsDoL+LGplyuSD5GYd9bdAz8+mF3 i8gYmOXPYBXR/a3TgwHh2CUElUnkvtAkf3OWcEiLlpWXSgvs+KGF/Ee6ztCp8zFZSTW9Lm LPkNDhMsEK6lkRUQwSTw4iQFYINjwYg= X-AuditID: a67dfc5b-d85ff70000001748-76-64a299b33678 From: Byungchul Park 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 v10 rebased on v6.4 10/25] dept: Apply sdt_might_sleep_{start,end}() to waitqueue wait Date: Mon, 3 Jul 2023 18:47:37 +0900 Message-Id: <20230703094752.79269-11-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230703094752.79269-1-byungchul@sk.com> References: <20230703094752.79269-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSXUxTZxjH977nnPecdnY5qWyc6cVME6NBUXS4PNnMsgsS35slRrzSRNfQ M2kslLRSRMYE+RD5UkgAUVTaulKhDG3dRBCCEEDEDxCiXYOdZTrHpGJw7ewAJ0W9efLL/5// 7+oRGHUHt0LQpx+QTelag4YoWWVwmTXeU2/TJfz+UyxUlSdA6J8SFhraXARGfm5B4Lqcj2Gq fxs8CE8jmLt9l4G6mhEE1sBDBi4P+BF0OY8QGHv8EYyHZggM1ZQRKLC3ERh9No9horYaQ4v7 Wxg+YcPQE3nKQt0UgdN1BXjx/IUh4mjmwZG3Giadp3iYD2yCIf99Drp866D+7ASBa11DLAy0 T2IY62gg4Hf9z8HwwA0WRqoqOGh9biPwLOxgwBGa4eFeTyOGi4WLouKXrzkYrOjBUHz+Eobx 3zoRdJc8wuB23SfQF5rG4HHXMPBfUz+CycogD0XlER5O51ciKCuqZeHuw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2XXmKQ7M9ocAYmMTRLpQT8WduDYLToHQMXjQsM3MgtQlBw8RoJT//qpcDgi4PF+Qp6d7zg nJwmBEPzKcExZyGFB9W80FY+zAiGziFGsEiZQrNtk1BzbxwLVTMBSpDqLtOCNFPCCPnvvFiY evKEEe5fXySFV14z3h9xWJagFtM0WaJ263fJshR3x9kTv4Sc7iweQjmolslHISzPxfIDjblE kGluIz84uPCZw7hIvrnwDZWPZCzB/bySt71/TAeHVdxR/lGliQwyyUXxt0vmcJDl3DZ+zO/C /0nX8fVNXZ9FIcv96/kiFGQFF8f7yvz0FSSzoBV1KEyTkZWu0qTFbdGlpmRnaE5v+el4uoSW P2M9t2RqRbMDid2IY5EyVD54tkqtoFRZuuz0bsSzhDJMrh+5pVbI1arsM6L2+BFtZpqo60Zr WVK5Rp50SExWcMdUJ8VUUTwhav9fMRsSnoN+m2lIighb9fv2LPbB16Er+nr2loeu7/9yj/3H pu+Hd5ijfbolV3FPa/KsZyo+taMtPOHCxC5T0vnR+V0tBrmldip0LHVnlTHR9j5pfW9TrDfy g6P4mx/ObV5TVGCMdFb2n1rdrgmXth5wug9uUJbl61s+5Vzefd2YfpVoOXhV8dUfHiWpS1HF bCK0OtW/ZFm/Ti8DAAA= X-CFilter-Loop: Reflected X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 22A741C001A X-Stat-Signature: 5f8d9r5rqyydatpnxaooukbq7dx9mfqg X-Rspam-User: X-HE-Tag: 1688377788-953700 X-HE-Meta: U2FsdGVkX19sI9HOOCj7XbxC99I2YcmVUc3PEhU5sxcRumXiqpTcikyculCMx9gMjgUlZeNdNJ4i+V6nwZjMjwkZnXF5Dp4hjQYwv2FjF1dp4L05G22sPDbvZvFWy6a8da6kpsAeCbqTqN6yKuIgMX6Pdvyq8Q5ASCPrYHhcCA5b2FrB9zj67uFvG2HJMBC3ZFaolr8RWuvbx1e0dHb0U8yWyC5Iw23JhEf4ixBGQsNaz/eEu6itUU0aUEBA9lZw/hQTsahNKNzvvhyP4pGddizBI/Oi8EOl2RmBpWn18MzkFveZuBj4AuWOZIi0dx2W7fL0JJjl/D0uWJhAfAmijFMwniamKpqIkR5OvdXjg/JZiyyb8z7dzHfqbIjA9tEOCHN4FeMPCxbwXuZFQyMePynKQ82cVECaOD30aQHUjGiED7pi1sDFByXu2zAeJ8M1Ka57DjoYiAnqhrAR+BJdARPrbK1mz9gM/gSxAAvAE5zMWGBKW4f42Agztrh+gzN6pMfMxWJQuhGUIG1FNSIq8uauZr4t7TRAquUrV/L8RXGmh7OopSg76MVkwx9sH2ohw47ISFqRia2v9b6guCWurjFBfUtFAjHMQhlFyAeYa0nWJNrICIIhz3+GWWsNloNTLZ23UnWLt0hQBJrFYcI6DCmiqUkG3AAresIXTIWYDpTX0IpWJXqa7edTmyg76Pg8Fas0s1HZmVBUCXoKKlLF6eoo584KV6+y3/yJZxIENg+ZkpBzdfvyVoi6Jmueaj2rZ8hwdO6ihTPRapg9r245qDQdXT0vr6xf4Xdlwym+RpTHeAmeODTN53xlGEg5KhOSEIpX2TvCFG2YEjt4gTAvFXqjuDUoo2peB7Sr3VFNcz6S9cKftbuIdNWp5wknO4LG/J5KJ6YFB14cPCcCWUCUGRf1OqK+6Pc0zxkxFHFVJANr6oBuGp2zaQQo2DnlCYo8xZGfSFdnAL+sPdbXV7V kuINF8WW RdPBsSyoxZusgAugME1QN0Pt/nWgXScUbFj4KinEsLAavWTleciyenPS0J84VPyNg8WDndH0Y0kpQ8drFD6vVXuW/uCT+o1fvn7o8x+4Ii3XjvJnjv3+sStfJ8sA8rkc0MZTJkfUrM8WSIONrU/C4cuA9vw== 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: Makes Dept able to track dependencies by waitqueue waits. Signed-off-by: Byungchul Park --- include/linux/wait.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/wait.h b/include/linux/wait.h index a0307b516b09..ff349e609da7 100644 --- a/include/linux/wait.h +++ b/include/linux/wait.h @@ -7,6 +7,7 @@ #include #include #include +#include #include #include @@ -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; \ })