Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2763374rdg; Mon, 16 Oct 2023 14:16:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4BGTj7NGOPIxT7dIaInelnf4JWm1z5ESMQoL+cY1iseBJ8steu+gsEFXqRViTQsb9QFtk X-Received: by 2002:a05:6870:648d:b0:1e9:a434:58a5 with SMTP id cz13-20020a056870648d00b001e9a43458a5mr379963oab.46.1697490964607; Mon, 16 Oct 2023 14:16:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697490964; cv=none; d=google.com; s=arc-20160816; b=o1uODYkrxdCtJAPIKQWKjiBazsZ6zq11DMrAQj8qGKUbrCV6movX5IjtNoNBb6smC8 nwwS4eox2t58ckUNN1e2uBE4O+6YXGaQ9IeONW6gNdt6wojds2yxzQw3RUMldiC5Ua77 b9ilqyc0bPP75nekEhaO8f5SIxsjkP9g1pa+WvU1/k9GPSi8RvJX17kklYDD92RKjEXL o8YG1/a6P7ts8UvjuyTHy3x+1ekijuVI+YqtF3YEAwaoGXwT+KacTM19CMDw8Zy9mpRL JBWIpF/VQ1uM6cg5sDvdNqGyNJ+6jEUKFqaCYQvgdqr4Nhcm+ymAvGaekYwxYNPviZqG ZnPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1U0tJBCh6QXkNDFsuE/5Z4GonEge9xZ6toufdY0dp58=; fh=0HBlgmDbTNDaKWvltX9D33wBsUfR3DB8MZneKJeDGQo=; b=qw2+qQ+Ua21ze3BzEDS8bm5M5KWXtNDWAiQwLrIpCj8sbKMnfVq2+KGPOT9/P4Cu6V IFPDZLqyp7rLHNqqDfLpJSL4YXpkmE66mqSHFBuv8InC5FbPDpOtYUNq2HNsLaPUK5/u lMuFyP+/c1UgNLlw5RZYtzJoerZPtv5jU6Jjj0kLVLp826waTEz+GNGRXwv/4YWcEMef UVAlNbLp5oRM0HRULCxbb9+penDLooXm2xR4cqwcsghYkO8izxd4uT8m+eVcZZ7XibuO 1uahjUUYoqkE8i+l+ILCdneq6CV8Y7DTcDJv+Vh/h8RhoLTLKW6VoVr+S37m1uMyu0xo eo0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LkMLLaJF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id s1-20020a635e01000000b005aa6c0aa22dsi168021pgb.724.2023.10.16.14.16.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 14:16:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LkMLLaJF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id B9E6280B5A33; Mon, 16 Oct 2023 14:16:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233461AbjJPVPz (ORCPT + 99 others); Mon, 16 Oct 2023 17:15:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233282AbjJPVPy (ORCPT ); Mon, 16 Oct 2023 17:15:54 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E941AAC for ; Mon, 16 Oct 2023 14:15:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697490910; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1U0tJBCh6QXkNDFsuE/5Z4GonEge9xZ6toufdY0dp58=; b=LkMLLaJFUEBIg5+vwfXbMoFqBcTwYwtkKl063Y2EH3rdb3CCJOUdR/7OBUJklZbVupDO3w 02d7JCXyya8S7c02SHJ69c9p7+j6HROZB3GEzhxuQCXgHxmMN4hNuArFoJOdkOW/VFuBLb gssNe2TFP/Bq4ZkIP+AQeuaykVypKiA= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-33-9SReimbpOVKLTBdsOmnlPA-1; Mon, 16 Oct 2023 17:15:06 -0400 X-MC-Unique: 9SReimbpOVKLTBdsOmnlPA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D83863C17085; Mon, 16 Oct 2023 21:15:04 +0000 (UTC) Received: from [192.168.37.1] (unknown [10.22.48.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 98DE320296DC; Mon, 16 Oct 2023 21:15:02 +0000 (UTC) From: Benjamin Coddington To: Geert Uytterhoeven Cc: 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 Subject: Re: [PATCH -next v3 1/2] sunrpc: Wrap read accesses to rpc_task.tk_pid Date: Mon, 16 Oct 2023 17:15:01 -0400 Message-ID: <25740B27-9C85-46D9-8ACF-17D45D56A014@redhat.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 16 Oct 2023 14:16:02 -0700 (PDT) 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 usef= ul 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). Does anyone know if there is a good reason not to include it for all configurations? Ben =2E.also: Reviewed-by: Benjamin Coddington