From patchwork Mon Jul 3 09:47:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byungchul Park X-Patchwork-Id: 13299824 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 04F64EB64DD for ; Mon, 3 Jul 2023 09:50:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7A92D8E00AA; Mon, 3 Jul 2023 05:49:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7324C8E00A8; Mon, 3 Jul 2023 05:49:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 55B688E00AA; Mon, 3 Jul 2023 05:49:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 413758E00A8 for ; Mon, 3 Jul 2023 05:49:51 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 19219120868 for ; Mon, 3 Jul 2023 09:49:51 +0000 (UTC) X-FDA: 80969828982.23.38A9899 Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by imf24.hostedemail.com (Postfix) with ESMTP id 1647F18000D for ; Mon, 3 Jul 2023 09:49:48 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=none; spf=pass (imf24.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=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=j3qZaaTKkqDKVjKQYLdByHPT5Ri7p6S8VHG0sIrEZsU=; b=nDUpSQzvStweL7GhdieCUa2el7J99hDJDhh8sr1/b4C0qkHPjSQ0v8Wq5RQR8MGlK3cf8l Otd9Q0p15x2LgV7GicNma2nYaBK9zzh14aUcnRvEXHr5DZxn5Alu4IN9bu6bEb3/b/svMi OIs8EfYpC1zROCof3xo5yLfeVV1WD/g= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688377789; a=rsa-sha256; cv=none; b=FbCYcVMK2+fZKcznod4SU+zbsOB9Ta95fPnBNMLwg3NChEa+zNwIsfo9OSUDSDfcULmksQ 7x2twAAk611ZTs/mqyg44Qm0n6WWe2EM3Cds4M+khMcRBYAHDpmr5tAO6HTpA3VgDkuVWE 5MWT4sPkRjEzypHSbePl64OzbPMr4BU= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=none; spf=pass (imf24.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-66-64a299b232c5 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 09/25] dept: Apply sdt_might_sleep_{start,end}() to swait Date: Mon, 3 Jul 2023 18:47:36 +0900 Message-Id: <20230703094752.79269-10-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: H4sIAAAAAAAAAzWSbUxTZxTH9zz33udeOrvdFBMfX5KxRrNMFFHRnZhlMWbGuyxmxA0/aJat 896MZryYVqp1L0FeHCsvqTrsUKK0klqhTLg1EV/qGMwqI0DRqkiwCFGxArKwtRNhutbNLye/ /M85v5wPR2B057kFgjFvl2LKM+ToiYbVTMxxLvfVuOT09q7X4UBFOkT/KmOh9rSXQPDnRgTe M/swRC5vgluxcQQz3b0MOKqDCJzDdxg4Ewgj8HuKCFy/9xqEopMEOqvLCRSfOE2gb2wWw+Dh gxga1c3QZXdhaJseZcERIXDUUYzj5SGGaXcDD+7CJTDiOcLD7PBK6Azf5MA/kAo1xwYJXPR3 shBoHcFw/XwtgbD3OQddgassBA9UctD02EVgLOZmwB2d5OFaWx2G5pK4aP+fzzi4UtmGYX99 C4bQ7QsILpXdxaB6bxLoiI5j8KnVDDw9eRnBSNUED6UV0zwc3VeFoLz0MAu9/1zhoGRwDcw8 qS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5UPsTgcQ8S6IxMYvB66il4feEWgrBxioUTNXMsNJYZEVSfOE1D4M1tBspH0mD+ lYVs3SR2Tk5TYrn3B9E3a6XFbpsgXj3zgBXLbwRZ0eo5LHqdyaL9+jgWm2YijOhpOUlEz8wp Vqya6sfi854eVrzz8zwtPuo3490r98k2q6VcTZGk+3zLQVlOT00vW9DFHfnDF2RKUYBUoQRO 4FOFlqpOOs6EXysMDc1RcU7kVwve2idMFZJxFP/TYsH5771YgeM+5PcLY+HM+A3NrxGehR7i OMv5L4SgqZn+z/mR4LrY/t6TEMsfvzKiOCv4NGGkIURMSGZFi1pQokZblKfS5Kat1x/KKdZq jqz/Lj/Pg2I/4yhZqLuCXvaldyCeQ8ol8qFjTWoFoyrSF+d1IIGjlIlyw+h5tUKuVhUflXT5 B3SHcyV9B1rB0cok+VdZ0kEFn60qlA5JUoGk+3+LuYTlpQimo5+69mW9iJa0qV8vk4dMO/dy F56SHSklA9lfRjO+7zak+5K6Vw/8ldmYOqXcvuPmMu8H1ZWM10DP7zk7GG0umPlk47Nw6Nsh i32sOMuabyr7fSK4WftLZtJOPzTBHlcgI4M3Ok2uHz9uk++yG23D9ifGmwMVeqt5caV71TYl rc9RpSRTOr3qHWmXBMkvAwAA X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 1647F18000D X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: irjemrypwrmo4gimff1ckb73f81rs4ui X-HE-Tag: 1688377788-34953 X-HE-Meta: U2FsdGVkX1+2BLFd4K7eXO1/TDg4bYZEu+C3EgnkAE0Ex4r85u+SQfisZk56ICPCriEwzv+KmnudBsysRkaOzL49gBjQh0owfkjG/6WOix+OcxBUPNakc7lGsNajelDPhy9gbk/TAAq30Fy0Wrm6aoFUpIWQM8z9K4UxOaUtCBeIB7kNNfq52CvYMK0OExuVyiWG+jYYvohRUjayJyHms1AKAlLUQ59Ff4/aEyvrXR6tUHchcq5V5LuMWEh23wHOPV0VhVGry7b9DPyUCiYOGmhKiYVaUyd2Pwde3MgkgRNqWSFfBTjkqYjS7lYN0EPYsrjmHM1a73JiCOKt+DjANvZG09x7hDHfDvSH0u9/kasbepXCX8nSrfbWEdw0kNNMA1v2waLMo7mKZ47otgCsGZDvA2CYsQKO90bCYooo/1ksrNijSc0ESt5sHRKItnvLNdL/+Qe22KTAh6THZhNEC6uBhI9w5isCRVwwI90M58f0guItlMrLR1UHo51dmZLJ3MrF4LZMB39duLNTwiuVD5w1CnFalCn0hbW3IZOLWAV51ZQAgE7DulE0/WkAOUVTl5VUoVpyUJ6ZE8kk72VZhJhQqrGbUDE+2kDrF/dqQb9fLmPGxGPFYZD2/MEVYq2QetG+idovyOQt7rK/KbdG6420gVDk+h7uAAdvKtJUFz2pT9B7kMLGIf3zdjx3bz/6Wq70BEo3caJlm59kl8PRE8qjy3fLpPgBuac/AuYGqz0CswwbBHxiIR9nZ0r2ztpbSqVW1AfU9zvXFwALbusTMhmNWeooerJDWBaiv2FE2m+GPXLj8W41ZutDvwH5G/9dQKQpGdGj4JNqL42rUGgdr/DlS/PY9xJZnZTXdfkBVbtY7HWknhLd05V0DzL2iZ2xH4Otb+vY4N8pkdzyT2pRf9gh5bYmVM7uxR29oo+W6Uugsd35UF9w74AJ5MzGbvFDvXx4cMW5MhtttVNLNrC GoXZ6yFI e9a3iLQlvTHrrP4lHcIOZOfxXfb9kj77tl4rFtww7BLB26U6dSpn77EUujN+ibpGEqvkm1dRoERDQh4kPeOc6t56cvcoeyGvvs1xZerpgvQgZy6QkIWNqs1KL5Zh/SIPwQk06JwiP5YCwWYgO3eeQ2hzKLg== 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 swaits. Signed-off-by: Byungchul Park --- include/linux/swait.h | 3 +++ 1 file changed, 3 insertions(+) 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 #include #include +#include #include /* @@ -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; \ })