Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6463570rwb; Wed, 18 Jan 2023 05:37:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXulaePPVmRwmXIQYaMWNygBMelXovD8l9vxRbUql0xgQvpWtW1qCvKnWoYU/asxLejhQJGe X-Received: by 2002:a17:906:a051:b0:870:baa6:6762 with SMTP id bg17-20020a170906a05100b00870baa66762mr6843781ejb.14.1674049067746; Wed, 18 Jan 2023 05:37:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674049067; cv=none; d=google.com; s=arc-20160816; b=Xl7n6fieT7T4JFw9x7YCxdbq0exkAzen66Z/EeCUR5PAdhHlt/j4nm0PiOwOLqbF50 XQOgXpm7KFysZW0kFi/gC2/SeAg1GENYeeb7xkon4BaK0d0djUbgZMWBLZZUhJXLQAkL 6+bP7m/NZ2TXf5vHL3UHF9P+u8CvY19JIIX5vOTFiH0li87pT9Y97Xq6wvVWpVtVkn03 rn4JFEGlAaB/11l2bpBca1ZrxR0E1izm9XXcITbQru75lclF298USHDjvtilZMWsO7b8 1OhaErDkRa8sW951fwAGDxg3U95zDCj+0jzpfKGPAio/WRoHRhScl5mIAY1L7DazpyjC YyyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=Ia5mcSSMCX645DNR37kXbpCtB0DOcgHMBUz20RFHfC4=; b=cfq795FkH/0YMtSd7X7b2Z70+cpURi2NVYhbEOkAwofChek964jrJ8UUJqtwg5YT4W T3WnRbBf6lX68vp5dIv1AK7CI2qUdDCTQUbZGiRejfprWuIjyKk4vSE5brkstWQ1R+fE BasJdLvy8afz9lbBuX/wDssr7CXtf7Zs7RrHhnlDVzFSxowMgVs0FKSylxL6VM1w0uWg QLvy7Mjyjxm3J3uoO6tbp+XL22xSycCMAOnndNgnGY0RGhc8TXpvDohbAYsvFpvTuk6w LKZl6LB3SKs6CvO0ApGMi9IL491tH98AuKX700XEJ3eFRpWiYQDQitgH6Bxdq8cdAzsW mX/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="PgZLyda/"; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xc2-20020a170907074200b00780636887fesi7746578ejb.797.2023.01.18.05.37.24; Wed, 18 Jan 2023 05:37:47 -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; dkim=pass header.i=@linutronix.de header.s=2020 header.b="PgZLyda/"; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231183AbjARNdM (ORCPT + 99 others); Wed, 18 Jan 2023 08:33:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231169AbjARNcz (ORCPT ); Wed, 18 Jan 2023 08:32:55 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4280E8457E; Wed, 18 Jan 2023 04:59:36 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1674046774; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ia5mcSSMCX645DNR37kXbpCtB0DOcgHMBUz20RFHfC4=; b=PgZLyda/qk+zlwhzR6idZiNhlWjQ9dhxCmeT4rrrl2GneTevgb/CsxE+hZPT77/XxN/D3C OdouussxQq3+fqW0hIcz/Ki25tMkMCvzzYDB8pBZcMQlLCpDT5VZb1pVYMSDA/j2hwWryO XALXhf/W98qKDyrndcj1X2VDtSU3suaEkQMvFPFJNRpd3rP5YqRNavHx/iRYRfI3oGDLj7 Fyk2vEI66UfwY0KA5lZAxmspc7UiU9mKVU0asexmqh+7rGYFxRvu36Ar6cF1VNhzA334Kh j+N92wF2QwyoojycoKuUH4XjJ9yjXMXivJ1ePjsam5T0B2hbJpAWejPbykJQrw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1674046774; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ia5mcSSMCX645DNR37kXbpCtB0DOcgHMBUz20RFHfC4=; b=twkPO4xqcEqK9BdeHGZeT7P1XO2VXaNzoSGOiyD8GCiyvcCMbRNK/TsG05ivxP6PlVlbsI bMflMGBUtRJ91XBw== To: Byungchul Park , 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, 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: Re: [PATCH RFC v7 07/23] dept: Apply sdt_might_sleep_strong() to wait_for_completion()/complete() In-Reply-To: <1673235231-30302-8-git-send-email-byungchul.park@lge.com> References: <1673235231-30302-1-git-send-email-byungchul.park@lge.com> <1673235231-30302-8-git-send-email-byungchul.park@lge.com> Date: Wed, 18 Jan 2023 13:59:34 +0100 Message-ID: <87wn5khubt.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 On Mon, Jan 09 2023 at 12:33, Byungchul Park wrote: > Makes Dept able to track dependencies by > wait_for_completion()/complete(). > > In order to obtain the meaningful caller points, replace all the > wait_for_completion*() declarations with macros in the header. That's just wrong. > -extern void wait_for_completion(struct completion *); > +extern void raw_wait_for_completion(struct completion *); > +#define wait_for_completion(x) \ > +({ \ > + sdt_might_sleep_strong(NULL); \ > + raw_wait_for_completion(x); \ > + sdt_might_sleep_finish(); \ > +}) The very same can be achieved with a proper annotation which does not enforce THIS_IP but allows to use __builtin_return_address($N). That's what everything else uses too. Thanks, tglx