Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp936811lqs; Wed, 6 Mar 2024 01:00:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWD1iMnJJN6DAXba07yNjNnBaaoh4OdecFldBlZpKBVcYa/K3//KszBCwMgwXKp/C3GckD9q6x2VI6cW3tmiXKGf3XwYq7WYPp/bZ+lKg== X-Google-Smtp-Source: AGHT+IEtFxQELT8qfmAE368xHwDWH9cFOp/L+an8l5NzH1UeMuR3X+jD/n9M/IbFd4xzb8HL/3L/ X-Received: by 2002:ac8:5fce:0:b0:42e:fb29:136 with SMTP id k14-20020ac85fce000000b0042efb290136mr5501961qta.9.1709715600942; Wed, 06 Mar 2024 01:00:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709715600; cv=pass; d=google.com; s=arc-20160816; b=IXjxj+LueHYu50gxyYCWfffeJnzUZEzpXGVvbJ7ZmRetWRH4msZoQwXi5/lJ7Sw6qM TnCOfBFHVBZsxycQjxyeSCkLsFcLc0qhl0ihzFPYFkLBP6FTj/cHqL9jev3xAQ00JBU8 /+kDRq37jx6NxD7yHUs07aXypJ5YRHwSRFcMT7qOtozaq89fqds6TyzrKSipmixCUdca rRMYiDlTiEhBhAQ6OAqQrBOH7VHbKXK25iaTQKLnvfoTUXO44iuPLy8taURwqu+26Ohm En/KghGcDKpauQDvz/zsJ3uvlZF/a4rXQZTg0Jq/EpSYoEbv+mVAf7rrr+y7Oh5N8qGZ d/Yg== 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=H2KRUF8uSM4+6+w6W9vKW2QB11XTfop4gd9hLuyjokE=; b=rtZJv2N46xYRO8liUHQTvZUaAjlWB0j6wX0zMXfHr3s6r04evmeL5lSO5Zu+lXbdko N4erqktBdNpAHC8oK+0pds+8aACknwLOfr6cdNszzaYii77tSNahgALqNXtYmHip32SM uXb0mXsFgvNmpmGhlfmcd49WEXYMyYBRGR6fbFuCl0ZhNu0K/DbHQadkkaMT5EydrMvD A8tE82yujStNlnwNd/G2jIkTpGd71JJhyNCmyvu7DJduo21+SVd9IoMgNWUFpK3A2Okl +hT/tDamldy9xQrxGakEzZaMFaV0DxGWkbNT/+8hjBgLey70zu5EShx5psOEJt/JpDFq UwIw==; 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-1533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1533-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e17-20020ac85dd1000000b0042ef866aeaesi5342889qtx.794.2024.03.06.01.00.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 01:00:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-ext4+bounces-1533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1533-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 A886B1C212D0 for ; Wed, 6 Mar 2024 09:00:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2FEA60DF7; Wed, 6 Mar 2024 08:55:41 +0000 (UTC) X-Original-To: linux-ext4@vger.kernel.org Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 464785FDD2; Wed, 6 Mar 2024 08:55:38 +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=1709715341; cv=none; b=pfYRemDs93kw6JBGVikpiGnSg/Q4fyYK0Y+IW1QmZ1Fr4RoRsURu+XkonrhTUsxs12EfVPFhtAnomjEPj4i/lsz7kdNSM9KNqKPy5LWZueA86+Hs73PbqpiTsGC2aSlgo//oDCeCS8ohy5tOe8eOeGm2eBp9vvZ7HrcAAzF9tps= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709715341; c=relaxed/simple; bh=MruAYr/ze2aZU4Q6DDtEFdBspBpkL05uqzvhsrQG5Gc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=l9oNF9fJLa7+ayKDGgJFgljVzKnZmKD2hAX4Q2G1YKjKtnPV0GOdEGzdz1p5bh2CE6LyILPVfD60BAy0n+rGDSaMBvHTI0Dw6nu5ZHIQy9o0+eMKrXee+i0NbRUN8ZaFKa8faapTbwtdxHgCVYdKx/QxI1FQSGLV1nkClwGxJJE= 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-c8-65e82f7dd99b 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, 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 v13 10/27] dept: Apply sdt_might_sleep_{start,end}() to hashed-waitqueue wait Date: Wed, 6 Mar 2024 17:54:56 +0900 Message-Id: <20240306085513.41482-11-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240306085513.41482-1-byungchul@sk.com> References: <20240306085513.41482-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSf0yMcRzHfb/Pz05nz06bRww7a01WZOJjzJoZz5Y2W+bHmXHco051cqUf xkRlSCpbDt1Sp51bXeJ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ernel.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