Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp936617lqs; Wed, 6 Mar 2024 00:59:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXSLATauDbbr+UZP6IGX1PK/mEN8d8GuczdKn4NTgQ6zCIkooRe5KroMnK3C70G1TzaRUXk1094RgzodTEVGoe3eJcSLs7eEq2tBs5CUw== X-Google-Smtp-Source: AGHT+IE4gySBcqLRM48Ble3iJirgPPC0v6w1O5oY8JpGerL8MH1T5fsZajvUwQ3R4lTVFk0OIMMR X-Received: by 2002:a05:622a:41:b0:42e:deb3:5c59 with SMTP id y1-20020a05622a004100b0042edeb35c59mr4824745qtw.13.1709715574395; Wed, 06 Mar 2024 00:59:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709715574; cv=pass; d=google.com; s=arc-20160816; b=EdZA0CUgG9XYEmGyuHIPF5TwZNRFlRwROwK6qZGsrb1TgNjESVc8BWu6ePiijGyEbx QhL8uVTFa8HOQNPuH6LgaoWefq8nBjhjnnMXDXTGjE011Oy7tHDKVrqN36zxIRViZvP0 ueCI7WS/yZ9lXNDL0B9OzYMufljrZmEL1i8aPmJHiVMZnbVYCBUydM4iVmru4ue1aTGR BMVRLQIwMCNlqk4HTx0w9JoRg+GHjaFePhvGAaCEQNsA0J4Q/k4fqcexH+vQ9UnINr/6 7aPRO7NgCAap6m+2VKn8uV3v6sW5T+3yeHAIO1AmQ16/Bo6S2YqYyQMwZ9DpvkvcRbmy dgmg== 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=jJeNhuOs33ufOy9DU95W1l4Cp1Nhf5LuW3gJvObKSUY=; fh=H2KRUF8uSM4+6+w6W9vKW2QB11XTfop4gd9hLuyjokE=; b=gdKnEwwNJ072JhgKbZpbb5yaVHHWh5HNQtWagTsqerG4NWgIaP5FhRgos+CLs9jq9H dsuU8BUGe5rPTEGCTX2s+TRMfMXMs/AI0KziZTc+R4WmaF4NWPEeBpzFrf20+7X6jsNf sMx/ToQ8BDLc2zSwn1oFS5clQhFkRNgg1p8HkImKyz5qs7IOk+AgWbYT4Zwp3oO5hS7E 2BqZ17mcGU86XKCwgTs5ZPdPpI5iCPwOGeEqJZnYjdU0JrGUuiDkFeG3m+tv66RaSWWv JATPQxuQN/ZzhH2ZLwwGlGg48a8ujBCyDkXxYcqWKeqtxSplaH0um9DaVbjXBHYCyBQ2 TWvw==; 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-1532-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1532-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 f15-20020ac87f0f000000b0042ef467bdd7si6301612qtk.800.2024.03.06.00.59.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 00:59:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1532-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-1532-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1532-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 2380F1C21852 for ; Wed, 6 Mar 2024 08:59:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2FD4D60BB8; 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 AFB695F488; Wed, 6 Mar 2024 08:55:37 +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=1709715340; cv=none; b=kSWa9MPeXw568SR7rkuhAf+WzjKJR0SKIqM2nk6pajSkIXyn/ieiVb50DzYrBXCsIegdTN4j+X5rGpYbUpUyUGEdgMhF1VhdDT0FHlg1+/mipVJKk8eVSYUq9zumgSbpYpsqnbEolN4FG5uVJpYB2K5c+mH6xQJaiQP1OzZTucM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709715340; c=relaxed/simple; bh=tg0pA2ZlUNywKtzMfrdbwkG7GYbhIVlK2HrCAbcpiMY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=kGjAPx53zNwpPmq7Z7zzWdqYhn55VD+CQWORpch4FOxy1sKtqeL1GPbD2lbZ6CkaM/bQEdPuI+V+SAKP8OMHiIp4RkQfn0nGSJOfCnnIZRv3KCIvvbijjSglg+SB31ui//Is02v0S/8HW3oB9D4a6pl1iIo3uJgtm4tTarhg9Ro= 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-a8-65e82f7d71d2 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 08/27] dept: Apply sdt_might_sleep_{start,end}() to swait Date: Wed, 6 Mar 2024 17:54:54 +0900 Message-Id: <20240306085513.41482-9-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: H4sIAAAAAAAAAzWSf0zMcRjH+3x/d5y+O22+sokzbFk/EB6b0V98/7EZ5g9s3PRVR3fs+nVR W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-Loop: Reflected Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 d324419482a0..277ac74f61c3 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; \ }) -- 2.17.1