Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2966683rdg; Mon, 16 Oct 2023 23:36:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFaMRccNlvm8JDlgCpOfVlviEn3txEW4uUXg2G3KuFQ2LSXrsgR48EkBv5HK9bM7yOMWfsC X-Received: by 2002:a05:6870:d60e:b0:1d6:567b:7a93 with SMTP id a14-20020a056870d60e00b001d6567b7a93mr1451205oaq.11.1697524582249; Mon, 16 Oct 2023 23:36:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697524582; cv=none; d=google.com; s=arc-20160816; b=ndCZznvENok/LGrvTTc/ffaL/QYXEE/TxBPgJv+14mEWdcLunD7Ard8nClPkme0BRr siwIjEqihuN42/RrYdmxfC/m9VPTlv6Xc5cIUz5n2i4veidEVjgbvzAro/k+lwtzqsDn CjWnYaMUNht2X4jhstkmaBCYFbfbyp5uGXftWrQNbAyv1kOTgTFGpGTbj3RyPn96bIO8 VAGrS9LDjjPImD0NqjEKFMHEhsBEk74BP6ylht33cb35fS2kXX600FJcxTexgH0UI5Au vEsxu6PbxGTIJxsueuI1lQBKU0jydT86mqeRZyW0hk65kdSTkwtZ3S6EprTZc/1PmUzY DtbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=44iWvHTNd+nS8MiGx0eTaqa8xI+HSqvkPGWCivQwFAc=; fh=XeU736sMB1Y68qlCQ0r6zZGl7ktLeEUR0nZcrggklLI=; b=s+9oq16WwsyfmOW5cTAZm0xYiK9KRgGRAi/kT2qQpfjwOvZgfhOOIQEh7AQXfp+cz5 Ft3tZwGLadB+8Fh9VrGWahdnDvjQn9UPHdGP4PdpZA3PvfCJ1Z+BqVQymptYCcsggeHz Sfx+BOAhjN33di77vkSMQh6+YvGYGgtPLhcKVVODj2PDta6hiODAgxQSH7cApuYK8Fey LoOF/ZGKn0utbOrdspVb78xTTo5yMSjzOda9vM5u3TyAxCZHIMLgWB0RZQ9KQngdSsmx LNbNQkFb+Zy8id4r1nDzTRomxHv64CqpLOpq6+A6A5tmwNV6z1d63ctwcyBpVgvBlDIE 7m8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id az1-20020a056a02004100b00573f786103dsi1076117pgb.754.2023.10.16.23.36.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 23:36:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id C2BB580412D0; Mon, 16 Oct 2023 23:36:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234519AbjJQGfu convert rfc822-to-8bit (ORCPT + 99 others); Tue, 17 Oct 2023 02:35:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229666AbjJQGfq (ORCPT ); Tue, 17 Oct 2023 02:35:46 -0400 Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com [209.85.219.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83F8AB6; Mon, 16 Oct 2023 23:35:44 -0700 (PDT) Received: by mail-yb1-f180.google.com with SMTP id 3f1490d57ef6-d9ac43d3b71so5655556276.0; Mon, 16 Oct 2023 23:35:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697524543; x=1698129343; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0pTEuOWWO2hlVz1NuykhvoeD8VoF12j0MOdF/y8cBc4=; b=RKVplXhkJk8SQSzofkg2AepXrYhUkyElUnjWJRBB6bAvWHBVh1LkY2QhumOLmT0cjp tHYpUDH/xHpHdk9IGqqhIRjEm2YUnTdgjTFdb0qz1Mckhv2LQwMAHIoqYKe1GvOTeHJv DNL4epxYzld53P2TdZjEWmWQp9tAzqejQDkdcVs0Z6DC4aOHipd5KXneqgnIKFei1PPq W5OHpgzz3sp0W9kPsAjB97cVEEKGvZURsX0aj+vFIZy5bb7H8j0A6/t5wIXr5tfw3is0 KxBPb1TANdouIHreFwXuJ2qHc2vFqfNj/CawM0Smo/UlmHFxaJ1B3A0HG8OyZ7cgdMQA iBqA== X-Gm-Message-State: AOJu0YxKKizm+DtVBkTvPAQCjuNv+DFA04eYSaUR3CV+p0XRIKlzn6hd EmJwkSq/abuIhBlSWJ/wH+1JK7adC2joXA== X-Received: by 2002:a25:aacc:0:b0:d78:3047:62c6 with SMTP id t70-20020a25aacc000000b00d78304762c6mr1102104ybi.21.1697524543390; Mon, 16 Oct 2023 23:35:43 -0700 (PDT) Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com. [209.85.128.175]) by smtp.gmail.com with ESMTPSA id l23-20020a25b317000000b00d9b4ddf1c32sm307560ybj.2.2023.10.16.23.35.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Oct 2023 23:35:43 -0700 (PDT) Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-5a7b92cd0ccso67131107b3.1; Mon, 16 Oct 2023 23:35:42 -0700 (PDT) X-Received: by 2002:a81:4f87:0:b0:5a8:6397:5bdb with SMTP id d129-20020a814f87000000b005a863975bdbmr1458422ywb.3.1697524542508; Mon, 16 Oct 2023 23:35:42 -0700 (PDT) MIME-Version: 1.0 References: <25740B27-9C85-46D9-8ACF-17D45D56A014@redhat.com> In-Reply-To: <25740B27-9C85-46D9-8ACF-17D45D56A014@redhat.com> From: Geert Uytterhoeven Date: Tue, 17 Oct 2023 08:35:29 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH -next v3 1/2] sunrpc: Wrap read accesses to rpc_task.tk_pid To: Benjamin Coddington Cc: Geert Uytterhoeven , Trond Myklebust , Anna Schumaker , Chuck Lever , Jeff Layton , Neil Brown , Olga Kornievskaia , Dai Ngo , Tom Talpey , linux-nfs@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel test robot Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 16 Oct 2023 23:36:19 -0700 (PDT) Hi Ben. On Mon, Oct 16, 2023 at 11:15 PM Benjamin Coddington wrote: > On 16 Oct 2023, at 9:09, Geert Uytterhoeven wrote: > > The tk_pid member in the rpc_task structure exists conditionally on > > debug or tracing being enabled. > > > > Introduce and use a wapper to read the value of this member, so users > > outside tracing no longer have to care about these conditions. > > > > Reported-by: kernel test robot > > Closes: https://lore.kernel.org/oe-kbuild-all/202310121759.0CF34DcN-lkp@intel.com/ > > Signed-off-by: Geert Uytterhoeven > > I never work on kernels that don't have tk_pid, but I can say its so useful > that for 2 out of the 224 bytes that rpc_task uses (on aarch64), I'd be > inclined to just include it all the time. That way its around for folks to > reference with realtime tools (like bpftrace, stap). That would work, too. In fact always including it should not increase the size of struct rpc_task, as there's still unused spaced in the gap at the end. > Does anyone know if there is a good reason not to include it for all > configurations? > > Ben > > ..also: > Reviewed-by: Benjamin Coddington Thanks! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds