Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2258089rdb; Wed, 21 Feb 2024 01:52:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW6OX6Ro0/Gm616xDDZzn+FtMouG1wPCSV8QujbkB0hgpfKoA+Cd1mh1JKF6VJM+Hlb/VRvWxjJJdwcfldmv/hNFF5JJGG+RcR77uskcQ== X-Google-Smtp-Source: AGHT+IFcOHa8P41968YNLr4whLgrhzntxKzY9azo5PcyCfC4JtsdoW1yEIqEElXI4LqvikqV0KPL X-Received: by 2002:a5b:64f:0:b0:dc2:3af4:3ff4 with SMTP id o15-20020a5b064f000000b00dc23af43ff4mr14817013ybq.52.1708509160289; Wed, 21 Feb 2024 01:52:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708509160; cv=pass; d=google.com; s=arc-20160816; b=NFdY+cQfD8FyBXTvB/Gn05dWGSSpnMjQmr52l1GtW+UMWiK6sJWWL/29r/x7SRxTtK FdjotQUieEJnleQNiivJMZ3ULmNsO6uQZb6UwwFk91AcxyzRa6TXIVu8FgaXVDMXJPZc oRlzzS3x6PlQsSmLChTjSKT5D35tAySIEq20HGUeTFW8QhyV9iOxCaK8dWGREN0PoEMN 9YmYTFah8s4pVnbztkwuu2vyDHonpivXGNd0aR3VYTVSlHfcF0+Ok2M48nggXvt+NZvR pmza8IxAtLxmMVvy32lPNhxWDe/nCgqpaY2NkvdWTu4E6UgAE6E3KZoasB++ne0NLgS2 UGkg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from; bh=z7OkeT6xvSEqQwLdFXJGyxH34kbodoT4wnSvM20EAlw=; fh=QMm8m/ZWm+A1EqjKAllYKUqNg+o2tkLujHELlI5tZV0=; b=P1P8Rgj0UUMjYXgS1TqEY60OlBIzpLoD/iCupQHg4QByMkxURbZ6TLg1PTgK2gh/Ba gtIL68piPdeTifgzU3Dy+Z+0CTwT2Acv0JVWXjWk4zltbxUhbh7YZykaUeVmLbNmvu67 0mB7m6ov0Vgvr4JURAeTNZ6cib7VbaW0u8i9ySc8O8AvMirk3X+w+j/YErs+PRR0+OO/ HiaSc0mPZHxdctCzLJF9wH/DAUJL5Vvmp0aUMaqMR9flBNZrCZSJ7dvwdEb4OGiZ8LG7 MPdQnxopp65uc9MBZwYYot2YvFsPhoNUtt2HPPHne/WuhHlhYNjgOe0/t/bx80Jiqw9s K9QQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-ext4+bounces-1314-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1314-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d14-20020ac8534e000000b0042e328aa90asi1669794qto.553.2024.02.21.01.52.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 01:52:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1314-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-ext4+bounces-1314-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1314-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 097AB1C2309E for ; Wed, 21 Feb 2024 09:52:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D4B4B46453; Wed, 21 Feb 2024 09:50:00 +0000 (UTC) X-Original-To: linux-ext4@vger.kernel.org Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49FD23F8C3; Wed, 21 Feb 2024 09:49:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=166.125.252.92 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708509000; cv=none; b=N4/j/8dDWwpkGPbJuP+CI+ad4ayReBGxbBJ3vNgC/XO7tnT+Yg8w4YuTQ9xRn4gtbqWfIgN5l2jB8+KprWmv/tPJzrKSXeX3GFX1gWENuC2NMrHaJ/vaF7JiuTUJxesFxvI7LDle0FtICCQhThbZ6M+v70wpzGY+5+L/RwAO/NY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708509000; c=relaxed/simple; bh=MruAYr/ze2aZU4Q6DDtEFdBspBpkL05uqzvhsrQG5Gc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=kIrSy8MqjJQ97vU39lyIBnJ3gqkAN6LbkunRPPHRFidzCTkkEFDgNvD8aoRzL9Ou4jK755JmOrssnmp7iMrp0TPSC7eNMQQGzY4kuHemBt2rnpR4Ad+ZcQinWE3kmIFYOdbNSuGmNiCJTIkooqut5/ylEjiVoglqk1iqfF9DTkA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com; spf=pass smtp.mailfrom=sk.com; arc=none smtp.client-ip=166.125.252.92 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sk.com X-AuditID: a67dfc5b-d85ff70000001748-28-65d5c73939f9 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 v12 10/27] dept: Apply sdt_might_sleep_{start,end}() to hashed-waitqueue wait Date: Wed, 21 Feb 2024 18:49:16 +0900 Message-Id: <20240221094933.36348-11-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240221094933.36348-1-byungchul@sk.com> References: <20240221094933.36348-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAz2SfUzMcRzHfb+/xzuu/XaMX/mD3ZiNJdmxDzOLGb9/bB5m8xi3+k3HdeVS yTwUJxxRzYmrcc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-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Makes Dept able to track dependencies by hashed-waitqueue waits. Signed-off-by: Byungchul Park --- include/linux/wait_bit.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/wait_bit.h b/include/linux/wait_bit.h index 7725b7579b78..fe89282c3e96 100644 --- a/include/linux/wait_bit.h +++ b/include/linux/wait_bit.h @@ -6,6 +6,7 @@ * Linux wait-bit related types and methods: */ #include +#include struct wait_bit_key { void *flags; @@ -246,6 +247,7 @@ extern wait_queue_head_t *__var_waitqueue(void *p); struct wait_bit_queue_entry __wbq_entry; \ long __ret = ret; /* explicit shadow */ \ \ + sdt_might_sleep_start(NULL); \ init_wait_var_entry(&__wbq_entry, var, \ exclusive ? WQ_FLAG_EXCLUSIVE : 0); \ for (;;) { \ @@ -263,6 +265,7 @@ extern wait_queue_head_t *__var_waitqueue(void *p); cmd; \ } \ finish_wait(__wq_head, &__wbq_entry.wq_entry); \ + sdt_might_sleep_end(); \ __out: __ret; \ }) -- 2.17.1