Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2129368rdb; Tue, 3 Oct 2023 11:04:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH95cAeCtbectaU5DCxfAvJy7cv6eTnKVBnL8OSNzqcL2A5DjXcB5+sy7/I5L27k6fFw0RZ X-Received: by 2002:a05:6a21:778b:b0:159:fe1d:2f09 with SMTP id bd11-20020a056a21778b00b00159fe1d2f09mr232578pzc.6.1696356244550; Tue, 03 Oct 2023 11:04:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696356244; cv=none; d=google.com; s=arc-20160816; b=cFRZg4miHyHwfp9HycnAKCRYJZfq7hoIajlECXcvnCkwnToqnp64dSXsmquOsbRFqZ k+LCznti3MNO9wCM1A7mdEwIp6G3b4vMRMJLaGJwsGqA78LAQ/QjQ3JnRAyfh1tQXJIK SQS5O2611ls3bWEYwcl2yEhqS2hsZVPoS/v9Xlm/gjVWA5aJLIYaHAo+CtXYaDYmEwYh 0CfJKoAiMFF40gDVeJMgSsz2KAduedmPsKQFNVdQwEuI1Ohf793en1R5X98Bj0k7ANSz 76fiwVFFnBzj4BUmcxFNPs4KDTdmAijUiibva1gxusiGEcmplkJHR8DgCBZuQ/vJREbE gTkA== 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:subject:cc:to:from:date :dkim-signature; bh=T1sxpeFIHysZnuuiSj2ohzLa2k2jVadVsCEbXk9pk68=; fh=VxY+Wmqg85qc13Ygd+I5uloGCvRHoxlqj05aFtiB4ak=; b=eQAiN3EZZLnjzlZ4TXZRU08GaU54bC5/NuXqzu8BcFJd05XxGi+JYddz2NXpzsOkGV lSG4+1C0ibhWsT6iDl7mQu5COdySy/ra6IeDBxmNfJ/JySdQ0ERhZBeBn1L0BZo6vH3+ XvcqtO2a6Et8FZwQhkpvGcVJgoDYhYTUb6+zbtAf6hYz7ZvTCaMf+zxpi6UI8B9bb/M/ IAb7EyDE6uTxXCPb/q7I6QHNuCV+boNAKFmS0vVTeV+0APzIyjOgTKF/Zgf+0JUqUSDV nafYddugGnbUhWouUecTOKMOus1z9yscrMjjoCdWtxvUvEoWSvdeG0ZvXiZ3RvpKZA47 LzMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tfcA+Uvr; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id l131-20020a633e89000000b00585a5e9a963si1911794pga.24.2023.10.03.11.04.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 11:04:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tfcA+Uvr; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 7940480FC080; Tue, 3 Oct 2023 11:04:03 -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 S240748AbjJCSED (ORCPT + 99 others); Tue, 3 Oct 2023 14:04:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231622AbjJCSEC (ORCPT ); Tue, 3 Oct 2023 14:04:02 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2E81AB for ; Tue, 3 Oct 2023 11:03:59 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16F07C433C8; Tue, 3 Oct 2023 18:03:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696356239; bh=i5SJqPcjVPyVB1ildzpV3oWH+KGv0OBRnSp5zrfjEQk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tfcA+UvrJwLDoVISbmRAJ9D5QZE3zMic+ZBol+Bh8fY8Kx7FM7Kkj8yU0JzljCV0C NQBgwJTA2Ev6OEqyeXnfjG5ex8FcXasqyBOHjjZRAwsRW47ed/g1enBj50EJseoacN lcWAfjrXCfn9Wc5L78Ri4QiqWqf8kE8coGw7YLj5tt+7saV9yM3+BIYjt9BtU5yrkJ Ekw1dScZfJrVHvBreRtdC0gUVX6rLMew9X8mXIciAEoRgxo6ZiL4a7BVFtvV3K/zyy 1BkFlFh6EXbKSJ0N62VZFmVV7VX1KuQhOmfmdZoXfWNIC+MrfN34rQq8tnEdUXh9xJ yqQEKdZClhK1w== Date: Tue, 3 Oct 2023 11:03:58 -0700 From: Jakub Kicinski To: Lorenzo Bianconi Cc: linux-nfs@vger.kernel.org, lorenzo.bianconi@redhat.com, chuck.lever@oracle.com, jlayton@kernel.org, neilb@suse.de, netdev@vger.kernel.org Subject: Re: [PATCH v8 3/3] NFSD: add rpc_status netlink support Message-ID: <20231003110358.4a08b826@kernel.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 03 Oct 2023 11:04:03 -0700 (PDT) On Mon, 11 Sep 2023 14:49:46 +0200 Lorenzo Bianconi wrote: > + hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, > + &nfsd_server_nl_family, NLM_F_MULTI, > + NFSD_CMD_RPC_STATUS_GET); > + if (!hdr) > + return -ENOBUFS; Why NLM_F_MULTI? AFAIU that means "I'm splitting one object over multiple messages". 99% of the time the right thing to do is change what we consider to be "an object" rather than do F_MULTI. In theory user space should re-constitute all the NLM_F_MULTI messages into as single object, which none of YNL does today :(