Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5660647rwl; Sun, 8 Jan 2023 20:07:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXvc6sA/eCjdrBI2OwUTShORlPkVKBa7xKTTNB0yUFR06bYthaRng6KlDDfREY1jQTrkp2la X-Received: by 2002:a17:90a:ca8a:b0:226:e1a0:6596 with SMTP id y10-20020a17090aca8a00b00226e1a06596mr11400372pjt.12.1673237276469; Sun, 08 Jan 2023 20:07:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673237276; cv=none; d=google.com; s=arc-20160816; b=kNgaZxi6bJJLyrCpCrFuIFUKWste6ezp/Qzn//w8D8rEdPNLNmC62ALT8BsA/FqneP h5PZD9bUfvGidcdPwFlic6UdbvZA9ZUjY42fosJjmgdBNiVeaa03q3xNvKAEaQ28sURH NKQkAASuGEQaVm33jmGLNU+tPYIfO0WbR1RvRcFv/vTQEOvB/yv8+Av0F4Y6MuYH+xPj dKuEnTp518u6dhNjCgynoHHm9Z3jAJgbdAQFcRqKH4LZOIOJuNF8z0IPY571JC+tuoMM 1xp8E/oH9QZ3mh755yVeCk1DfO1quQ1FgZ2G06E0eFGt+lPDZDdlfn2MBW3DM12bClAO +m0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=mr5fcRS1KSbqU0ETXJCDbAkhK0bZ7LbkKI53kmJ3NZ8=; b=gGWXJUFLAqEIAd1iCBZAvf8Htb7hXfUqokri9No4r0AULtDPUbulkYZbcfSzxvzYMf UT767Q/UPODGayAs37UPW2Y6+oN+dwICmoEHQi9oo6jjVXrqYPaMguvz7StN6aDgl6UX +TfEXOa8VRb4ynVGw4FPtY8DcjsX4XU92QM/dJJEJXqW3+lMeoBcgbWO/JbvN6s9QTLJ xiuU01CGJEsuuG3Vm5ANNUXWuR4tbzLyHIheJSsl3ic4ULfu7AQiyLzKcYkPQD6OeVJn dnpj7jO+YMO+yd1JIz+Q2w3OpTR+BzOvmVCx2YeOJfZRlMT58XXustX7bi+JNtvJUBWg QRTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x24-20020a63db58000000b0049d3383238fsi4345689pgi.436.2023.01.08.20.07.43; Sun, 08 Jan 2023 20:07:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236605AbjAIEFo (ORCPT + 99 others); Sun, 8 Jan 2023 23:05:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233780AbjAIEE2 (ORCPT ); Sun, 8 Jan 2023 23:04:28 -0500 Received: from lgeamrelo11.lge.com (lgeamrelo13.lge.com [156.147.23.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3A74E11C29 for ; Sun, 8 Jan 2023 20:03:54 -0800 (PST) Received: from unknown (HELO lgemrelse6q.lge.com) (156.147.1.121) by 156.147.23.53 with ESMTP; 9 Jan 2023 12:33:53 +0900 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: byungchul.park@lge.com Received: from unknown (HELO localhost.localdomain) (10.177.244.38) by 156.147.1.121 with ESMTP; 9 Jan 2023 12:33:53 +0900 X-Original-SENDERIP: 10.177.244.38 X-Original-MAILFROM: byungchul.park@lge.com From: Byungchul Park To: linux-kernel@vger.kernel.org Cc: 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, paolo.valente@linaro.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 Subject: [PATCH RFC v7 11/23] dept: Apply sdt_might_sleep_weak() to hashed-waitqueue wait Date: Mon, 9 Jan 2023 12:33:39 +0900 Message-Id: <1673235231-30302-12-git-send-email-byungchul.park@lge.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1673235231-30302-1-git-send-email-byungchul.park@lge.com> References: <1673235231-30302-1-git-send-email-byungchul.park@lge.com> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Makes Dept able to track dependencies by hashed-waitqueue waits, but weakly. 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 7725b75..bad30ba 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 @@ struct wait_bit_queue_entry { struct wait_bit_queue_entry __wbq_entry; \ long __ret = ret; /* explicit shadow */ \ \ + sdt_might_sleep_weak(NULL); \ init_wait_var_entry(&__wbq_entry, var, \ exclusive ? WQ_FLAG_EXCLUSIVE : 0); \ for (;;) { \ @@ -263,6 +265,7 @@ struct wait_bit_queue_entry { cmd; \ } \ finish_wait(__wq_head, &__wbq_entry.wq_entry); \ + sdt_might_sleep_finish(); \ __out: __ret; \ }) -- 1.9.1