Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2500526rdb; Wed, 4 Oct 2023 03:16:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFinE0ghYpYqhsPaq0WVZQu8GbA+uIW3bzfv44E15wIZ9dHa58QLKLp/0sIcYiHHOH+6tlc X-Received: by 2002:a05:6a00:3995:b0:68c:57c7:1eb0 with SMTP id fi21-20020a056a00399500b0068c57c71eb0mr2206263pfb.11.1696414587572; Wed, 04 Oct 2023 03:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696414587; cv=none; d=google.com; s=arc-20160816; b=fonLufQwZQlHAhAmchXAZ6iqNnuTldBEUK3xkYvr9wnfSQVZJln2sXNKQlh1ckFUzm GYb/UyR4dPPLM0tIepe8x+45qO3q8wHo6TUSgIB8ca2Wxp9FwWFodilUsaMIhbua65X/ Ennbs3C1/7XOZmr61X7uQMO6JCCvZ+ufh1rXl1H1ME/FqBh99PGwIFT1rd8DptZor86A Ke8m9u5XxpVW35lM1LUYeehAG356T06y86EOkDt3Sgv781L5dqHe9Xz5GgZvkLr0htPL 5zS86EbZtEDu/iGEzaEV2lcn2WenfrdD9Pz6USHGifya5GbPK+AkY2maL47GHHFJbdku VfoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iCGNMhLhtxoCMrWMD8suopdcDwmtDizUXoNxQu9mGP8=; fh=bIEojuTpBaakmLnjgjsnHWA0/47yjny+i5UIPV3YNlA=; b=qpd6Uhq9Uq0/wPFkdqqj4Gc//BpXRwvTtg955A+vy6v7ivr0FrpJu3lZ77hc1ZXJgK hTatSM28Zzk50MW7WwWVFAthRsdPb8wUu6KRZ66IpDjyEWS1DWr2bj8U0XTurXxNjv6z XtKGAqIjCGTQVZF3eGXCvdRwYiv/n3WdITR6w7Tz/3H8s/Kj60zqVWXJj6d2sMBRxq2N ZwBNr9A+q41yuvPDpN3V+8VWMN9apXXSXt6m7WXdaKbIs4QxOjr2S0U9WvLUSb81F93P fHDw2jh0qrb1dtHAsHCdZfcmpvKhftlvmpJWRQCBA8Yf33qj43RIOp3ASH1u2nna/s21 P52g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=R2sRz7Es; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-nfs-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. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id q10-20020a056a00150a00b0069338b22c0csi3537574pfu.359.2023.10.04.03.16.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 03:16:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=R2sRz7Es; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-nfs-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 0C16B80964DF; Wed, 4 Oct 2023 03:15:46 -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 S242062AbjJDKPg (ORCPT + 99 others); Wed, 4 Oct 2023 06:15:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242106AbjJDKPf (ORCPT ); Wed, 4 Oct 2023 06:15:35 -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 E760683 for ; Wed, 4 Oct 2023 03:14:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696414484; 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=iCGNMhLhtxoCMrWMD8suopdcDwmtDizUXoNxQu9mGP8=; b=R2sRz7Es8hFODkOlo9Tn1qg7GZ4oLNjYv5XysUuOFki1kJk+WwWZ5Hux1o/5pnxRzSTarh NIPuwKEnmt1+NcVQUK54KUh1KNNGDWnAKXDVvMo/AWYH+/swHw88clG2Odequ5FynWMO6B aF3kx1lQmhb2UqG22z1sDKJKQ6owjRU= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-643-4hzkDitBOqOcSDiJE_5lPw-1; Wed, 04 Oct 2023 06:14:37 -0400 X-MC-Unique: 4hzkDitBOqOcSDiJE_5lPw-1 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-321f75cf2bdso1377456f8f.2 for ; Wed, 04 Oct 2023 03:14:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696414476; x=1697019276; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=iCGNMhLhtxoCMrWMD8suopdcDwmtDizUXoNxQu9mGP8=; b=YdBrI1lE7QEqng4gpJxuUxZrsTY7oOrxCfi0sz2fkyf/r8sQkga75Ej0S9BSX9MXVe +8TXOBVeExYItQI0fop86NMMFgqCUOUgfa6GB/tje2M9gkPqdNd/O9Sa4p4rKHdprU5J afC7ll3BrWADPDCYa/RFawoKiPZ/AieerDllSX0IGN88+DBNVYcX3Tyufd8IZjHb0jYS AlbElZRpLxPs66ngMeKzVe9i5ZGMWfDeJ3DRDmrUuo0HPBbwg6VJQgx7362QZhQfTmLn ooHtvsbXF1EnoKubvzfjYlY8mePPdZdeRv3TZmUeuUnDVvgjNMWy9pBR4kJIkn3x3t+K kv7w== X-Gm-Message-State: AOJu0YzEdBiC0AXgpOxayzV0pH85DgKmj5jlds6ob/IBHa7Vc3G14qt4 9kbWtKS0r1jex5NkxsKsw3xrrMVPb4QlPTNichwpKk2tQTam+11oSuA6JbBGWBB7RbKhPgiCl08 QwRSIzPeTniVdVDcjON1B X-Received: by 2002:adf:fdc7:0:b0:320:c9c8:5f14 with SMTP id i7-20020adffdc7000000b00320c9c85f14mr1766425wrs.29.1696414476552; Wed, 04 Oct 2023 03:14:36 -0700 (PDT) X-Received: by 2002:adf:fdc7:0:b0:320:c9c8:5f14 with SMTP id i7-20020adffdc7000000b00320c9c85f14mr1766407wrs.29.1696414476209; Wed, 04 Oct 2023 03:14:36 -0700 (PDT) Received: from localhost (net-93-66-52-16.cust.vodafonedsl.it. [93.66.52.16]) by smtp.gmail.com with ESMTPSA id e7-20020a5d5307000000b003217c096c1esm3637595wrv.73.2023.10.04.03.14.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 03:14:35 -0700 (PDT) Date: Wed, 4 Oct 2023 12:14:33 +0200 From: Lorenzo Bianconi To: Jakub Kicinski Cc: Lorenzo Bianconi , linux-nfs@vger.kernel.org, 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: References: <20231003110358.4a08b826@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bviZ5Xg+0CkFD4tl" Content-Disposition: inline In-Reply-To: <20231003110358.4a08b826@kernel.org> 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-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 04 Oct 2023 03:15:46 -0700 (PDT) --bviZ5Xg+0CkFD4tl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > On Mon, 11 Sep 2023 14:49:46 +0200 Lorenzo Bianconi wrote: > > + hdr =3D genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_s= eq, > > + &nfsd_server_nl_family, NLM_F_MULTI, > > + NFSD_CMD_RPC_STATUS_GET); > > + if (!hdr) > > + return -ENOBUFS; >=20 > 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=20 > 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 :( >=20 ack, fine. I think we can get rid of it. @chuck: do you want me to send a patch or are you taking care of it? Regards, Lorenzo --bviZ5Xg+0CkFD4tl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCZR07CQAKCRA6cBh0uS2t rMbyAQDdl3098e/PoDusNCKv71zSKsaMiEZt/jv+k9NY/c6YhQEAnu8agwVUV6CY OTlChJGKZzOxcbzaEX/D4YdQ6v/Gqgc= =kW31 -----END PGP SIGNATURE----- --bviZ5Xg+0CkFD4tl--