Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2262470rdb; Wed, 21 Feb 2024 02:03:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU2mN30khghBy6k8aPP3hZ6pXEFThx1rAS0EbTWl4lX9uex/oT7MEb3T3qyQiKBQq368mnQeIgTqklir/Ke59DPozn4kbYqERkHnkEVpw== X-Google-Smtp-Source: AGHT+IE8Z9b1sOFEm6UzPIk5USEwUaQbMVo/DHOZ9j102Odkw8JVaZ2i2OibeBPyFXtX7rD2Qnqw X-Received: by 2002:a17:902:6807:b0:1dc:3c3f:c64d with SMTP id h7-20020a170902680700b001dc3c3fc64dmr100739plk.3.1708509781491; Wed, 21 Feb 2024 02:03:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708509781; cv=pass; d=google.com; s=arc-20160816; b=f9AkHsCPr9ZkxhMnVdO1jNwrjG/6oKcFWXul5djvYZDf8CjJ45A5W97iIW9vEpZWyb PacCwYH4vWC00SSQMd+GDR5QF02LJbeJIz+IRAuuQoBhX2GkCw9LyHfa1/FXs8AgjMZP al31pDHKJ4fnstUPFsmmWl1hiCq6/CxPNZm9J+g+P9sbUMZoJmjmR3ckzv+gqHi3sosu /dJcbW0HZ2HEiLiOP+95hGlQTIzypDWaGaNX5XiKL2uQfXkG55F7dz31qEesJykrLGa3 XjW1TXNI4w3brRuQNVnqtEkmk38W98oHZOG5pjHmFGSaNq5O8UT/nc7bC2FvB3Z/IkqJ YSvw== 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=nAAvDk3BNgCzK86NjdiRhsZWfkb+yXVVklkPmxltoUzpX0GXl2yUFLC9+JaTSYviiU FZ1lEoM4yiAtzXx+1fTelMvWsmfAba35vW7IJLHVSEbej8CkG1T33dmzrzN0ozlAG/da LmjdG+rW5zdMUAHmUpTmSVOgMP67rWfWv/XJePThDOKdzBkohhgDPxgSdJYOQqxo0yf4 sbuFABxybTRJs+/hdiWuvmJS0G+aTOQ/Uo3EWfUH1M4hFet5kugOX+eZyskvNoeHeJx1 5UZIeor95cOpgtqVqZmDCwc+50ax7y7f6f1jaN6y8CfEyYj5UTOXmwFLs0PDDzFlzdkY LmlA==; 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-1313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1313-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id lv4-20020a1709032a8400b001da0fb6a655si7957626plb.92.2024.02.21.02.03.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 02:03:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-ext4+bounces-1313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1313-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 025D1288ABF for ; Wed, 21 Feb 2024 09:52:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9329345C06; 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 127593EA71; Wed, 21 Feb 2024 09:49:56 +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=cobb+hG3vFK6DJMtk2zlGTXsApIClJIQ5//b6ELA4oIDyc0TM2i7EZHnrL544ztGEOJcF0L68T87PfYpG/8q3UCMP81N722IDim5xnYdrkzeR5cOGpoSDsokQBIoXfda5gy1koRoVVMQ7YLJ08b4i9cMHAeoFGa4a6BOx6bc8bA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708509000; c=relaxed/simple; bh=RIc5udGVOneBYojEExyl4QYDrUVZJa4Vo+L4Ic7nXzw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=XgAwwcOYWFSCFrRb5aJIf4aBfIWpiOeQPtgDITyoQhmb2qhJ6ygBOfosL2pDMtoIgtG5jZXDjOUK6+SiWVazrcv2X4ZLXXRxM1pINOOV7EBtLHLXG05immMv0CFd2eUTqW6ttFlKurq3d4kO/VfiWo8KgX8eM6wrIXq3ocGqIv4= 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-19-65d5c7392c4f 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 09/27] dept: Apply sdt_might_sleep_{start,end}() to waitqueue wait Date: Wed, 21 Feb 2024 18:49:15 +0900 Message-Id: <20240221094933.36348-10-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: H4sIAAAAAAAAAzWSV0xTYRiG/f8zW62eVI3HEUfjxIUzn0bBO48aEw3qhcRII0fbWCppsYjR BGWKlgAKqBA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Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Makes Dept able to track dependencies by waitqueue waits. Signed-off-by: Byungchul Park --- 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 #include #include +#include #include #include @@ -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; \ }) -- 2.17.1