Message ID | 20240124115938.80132-10-byungchul@sk.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-36926-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp941737dyi; Wed, 24 Jan 2024 04:08:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRbB9Jmr0npwTfhxGKOpa7K29vfPw4uXKvDnvfSGQVzrBZuEN7whHrw04DGahSKKSMC9cD X-Received: by 2002:a62:6504:0:b0:6db:da3f:9e00 with SMTP id z4-20020a626504000000b006dbda3f9e00mr2888278pfb.50.1706098119105; Wed, 24 Jan 2024 04:08:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706098119; cv=pass; d=google.com; s=arc-20160816; b=ZScksM/ANCp/+pzaAdfo03TkiHjCSrz9qsZwN6JNfrVie/XZBhytrVeRPMSVB0wf9L FXUe+gQifRGWhO+ILBuoKqc3KYywLAprUe4a3TFcoxrnqBdKIGQ/SSSQ/XvYjvxov5hL 6nHZ7WmImPBrHpFyrgR7GKYz0C6xEDZm4wvix1gzQNb0VdKYOZl+K3otLZ0l/MHvUqAb L+6nQEpLo9bsXvQ0oBaBxCdKdM9H81canP5wQ40MMiMsIzsDCovbW/hE6+TdPgrJpFui wsP7jEhT8eHv3ejcCb2EhVg1InRc45zS4etfRkeRD9Oksu8gSSAMhH0aza7zoM/pWaEs EC/A== 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=1eOBFcXalbGipOzQfCW6GVtCbnT7Fu15jm7pcDyfuMU=; fh=QMm8m/ZWm+A1EqjKAllYKUqNg+o2tkLujHELlI5tZV0=; b=T0Phy9E//u8saE3/6FU3ZQsMGKhhmJoeMvk4wa1R9bHHxvlshj8JCoCb1ZDgQnU8Fz 7b3jl7IZSPw3W2Ri00mCjZAxb01BR4zqTUOpuOTA4jEYXVb2Pow/4z4TM8XSVG6c/lfZ QWJhRTcZN7V1R9ArZHZ3j8rpC9WaErAZ82lKgmdlFtLC/noMLAI0PY6uvMuFaah/0dh6 SmOuYtXaSnozdaLY2QSlrlqrpoSgRBOFTTp+eX3vXkt5/UeM9ZD5LKL1rff9651BaF6C +kCbA5kZt3LvZtJlXOqVVxNXBfQBVwQBiMjl1QASBSTup/Dv/cUBNkH8Pe59T0DVqgeV coHg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-kernel+bounces-36926-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36926-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id jo29-20020a056a00909d00b006dd82f5be6esi2067220pfb.363.2024.01.24.04.08.38 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 04:08:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36926-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-kernel+bounces-36926-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36926-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BBE892881E4 for <ouuuleilei@gmail.com>; Wed, 24 Jan 2024 12:06:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64516664AD; Wed, 24 Jan 2024 12:00:11 +0000 (UTC) Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57E6A6169C; Wed, 24 Jan 2024 12:00:03 +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=1706097606; cv=none; b=CWVE7mIovmw3THGVvNDLrCbICKsg/JkmR/hTpIj1q97AWSHcboqYyrJVrH13BC27O3jxZSwkPqHOi2xTFAcuiVwAPXFuqYXibX6+XgRpReehQGmObghEsKA1wGv+1JloY3YI+gqZXtNFWWcFxKgoWWlxdp3hkuPmgTegyzd9JW8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706097606; c=relaxed/simple; bh=RIc5udGVOneBYojEExyl4QYDrUVZJa4Vo+L4Ic7nXzw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=Ay9TKuzDvAlGjHcCdOK0PkrsYPJrIzI2uTjMH3BSCNrJt3TMTBTxLeI+iMGCOmTZHzboT8bpDQcxbuIvzQoq6069UH4g5+TwtGo2fO78Mne8vZzaL72LviEzdOP7oKsfdGfbF5E3g0Jw6oaoYvOYbsyxMB75GUdf4D68mvzhdkA= 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-d5-65b0fbb5c9e5 From: Byungchul Park <byungchul@sk.com> 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 v11 09/26] dept: Apply sdt_might_sleep_{start,end}() to waitqueue wait Date: Wed, 24 Jan 2024 20:59:20 +0900 Message-Id: <20240124115938.80132-10-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240124115938.80132-1-byungchul@sk.com> References: <20240124115938.80132-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSfUzMcRzHfX/Pd5z9HOpHRrtpNs8PsQ/Lw9D6arMxmz/4g5t+000d7ipi LDrFXVG2RFp64Dp3x+UKSdcSRVEdFed2hdbQlNpxcS4PFf757L3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zz+oaMf3aord4na ylFcIu6anIfYVVznSl1XrcJR14qrpeiWtEStIUoNFz14qMw/7732fr/3/uvNkfI8eimn1iSK Wo0qVsFIKenOsPQ1VZMOcV3RmWAwXVwHvu+ZFOSVlTDQXlqMoKTyNAGDjdvh1dgQgsnWNhLM ue0I8vvekFDZ1IvAZTvDQMfAPPD6Rhjw5F5gIL2wjIEXn6cI6LmaQ0CxMwJajAUE1I1/oMA8 yMBNczoxLR8JGLfaWbDqA6HfdoOFqb714OntpKHhlocGV/cquH67h4FHLg8FTTX9BHQ8yGOg t+QPDS1NzyhoN2XTcP9LAQOfx6wkWH0jLLyssxDgyJheO/ftNw1Ps+sIOHennADv64cIHme+ I8BZ0slAg2+IgApnLgkTRY0I+i8Ns3D24jgLN09fQnDh7FUK2n49pSGjJxQmf+YxW8Nww9AI iTMqTmDXmIXCzQUCrr3xhsUZj7tZbHEexxW2EFz4aJDA+V99NHbazzPY+TWHxVnDXgJ/ef6c xc+uTVJ4wGsmdi3fL90cJcaqk0Tt2i2R0ujmH4N0wj3JyVGjgdGjIjYLSTiB3yBU3a2eZYYP Frq6xskZ9ucDhIrs93QWknIkb5gj2EZbmSzEcQv53ULZcMpMh+IDhco/+bN9Gb9RGGjVo3+b K4ViR92sL5n271/vpmZYzocK7+yXWSOSWpCfHfmrNUlxKnVsqFIXE52sUZ9UHo6Pc6Lpz1hT p0w16HvHdjfiOaSYK9tqLxPltCpJlxznRgJHKvxlXUtKRbksSpWcImrjD2qPx4o6N1rGUYrF svA9YqScP6pKFGNEMUHU/k8JTrJUj+IXWtIKjR7HsN/UarOpyb1v0amAzreZQfV7t3ziEkrD fxmC9POueHGva9sOidJYU2+N6I8IOLCgRag/5ppQSqgnfocu15bbX6fq0245gpXNt53UNzHu yO98X1uYzXWiOTpnLHK3JtySeM+0YiIoYP4m/5cG2adQg2du40C1u1tB6aJV60NIrU71F0/v DPAvAwAA X-CFilter-Loop: Reflected Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788973541198280478 X-GMAIL-MSGID: 1788973541198280478 |
Series |
DEPT(Dependency Tracker)
|
|
Commit Message
Byungchul Park
Jan. 24, 2024, 11:59 a.m. UTC
Makes Dept able to track dependencies by waitqueue waits.
Signed-off-by: Byungchul Park <byungchul@sk.com>
---
include/linux/wait.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/linux/wait.h b/include/linux/wait.h index 3473b663176f..ebeb4678859f 100644 --- a/include/linux/wait.h +++ b/include/linux/wait.h @@ -7,6 +7,7 @@ #include <linux/list.h> #include <linux/stddef.h> #include <linux/spinlock.h> +#include <linux/dept_sdt.h> #include <asm/current.h> #include <uapi/linux/wait.h> @@ -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; \ })