Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1620368pxb; Wed, 9 Feb 2022 00:17:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJztoeaIM7XktOuQ8iBlESzALhTCrGCysiW7tZywydGcqkU9VmIf9fNE1nCS27sqICfGFGDS X-Received: by 2002:a05:6a00:842:: with SMTP id q2mr1094689pfk.1.1644394643977; Wed, 09 Feb 2022 00:17:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644394643; cv=none; d=google.com; s=arc-20160816; b=fQq287IertQWSoXsA3OjJbGE+2oBK2pB1dGGPxsr9isy2j2UDNhKyPNRTuE1dj6U+K GFTWnGZz1b1ABnE0NLADLHaN31puN/UX0iv62gt3bR2lTcXqKjFe0XVlo55yKBj8lHxw wHaNjO41V/ziAZJPdS3iJfFsF0DyidPvKf7glR61ToFpbDoRAzfKqM06ZqLAsOueu5RV Ou7uJMWZR35b00fqDpXTRZT6ghp85rBMQsYGzc+V4XXHr/Me+QNQufY2rToD0EXQMTBx 4iU9xGuHFgeOk2cWet/BlFF765gQEW3FQVwE3dw+1IiFL5EDhKPoBE/OR1p/8T5RU7qC LJcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=AYDXkNvRzvNYsBXx1z551aTKIN6Gewpo3KNhjfalPFk=; b=A4+WrpI9maLn1i9qvBXh5NpSpadCMO8zAnAxFjtSVlJqTxGqJvtsngjJXzsHXrpvzs b8pMZclEgbZ3nJxMvh4PW++udHtpiazuvkt/FUOzPTK2nwEmsWK/7xLjGdhvUBAwQBH2 pbsWuBzG5gpDJ3UR+qmO4JL8yLMu/aMql0SZ8coqmtBSfRvyzbnit604qQRzxbPvD9Ce axi+5R16XTdCYYCbjkFU+t+OWq66FE37ZZ5sXZavhZHgkm00i9lvZPWCECGFEscXKrUl EyCabNO7eFxFS0r+mH0UPCf0FaA6S5QHjf0A2b/U7FGZN484bncP26UKVGHri638ZAz9 jGJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DrUrdVN7; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h189si14692543pge.86.2022.02.09.00.17.03; Wed, 09 Feb 2022 00:17:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DrUrdVN7; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236852AbiBHQSR (ORCPT + 99 others); Tue, 8 Feb 2022 11:18:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230326AbiBHQSQ (ORCPT ); Tue, 8 Feb 2022 11:18:16 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8AAFFC061578 for ; Tue, 8 Feb 2022 08:18:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644337095; 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=AYDXkNvRzvNYsBXx1z551aTKIN6Gewpo3KNhjfalPFk=; b=DrUrdVN7WiGP+JwZj7zdRO6hB+wm3gWlCT+4eQvezITHzSCxDuDf/yVMVw3tLJ0glAHWda rJMTbr63gGT9w1Em8yN5ke64hIuuaRym/JOjrJHGLA3SxtGcCZqD5f3cO758WD9lmaqrPq +kaR6NaxRA4GitEDk/ziKtlyt/qU8Gs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-214-OOgw9qdAMi6F9-106S7VPA-1; Tue, 08 Feb 2022 11:18:12 -0500 X-MC-Unique: OOgw9qdAMi6F9-106S7VPA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 373F884BA42; Tue, 8 Feb 2022 16:18:11 +0000 (UTC) Received: from [172.16.176.1] (ovpn-64-2.rdu2.redhat.com [10.10.64.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D5C28879D3; Tue, 8 Feb 2022 16:18:10 +0000 (UTC) From: "Benjamin Coddington" To: "Trond Myklebust" Cc: chuck.lever@oracle.com, linux-nfs@vger.kernel.org Subject: Re: v4 clientid uniquifiers in containers/namespaces Date: Tue, 08 Feb 2022 11:18:09 -0500 Message-ID: In-Reply-To: <6c34f6721a11c426ac6f732aba37eb67c5b9dae1.camel@hammerspace.com> References: <6CEC5101-0512-4082-81F8-BDFEC5B6DF3A@redhat.com> <6ac83db82e838d9d4e1ac10cb13e43c5c12b2660.camel@hammerspace.com> <439C77F9-D5AD-4388-B954-3B413C1DF0E2@redhat.com> <596C2475-76AA-4616-919C-9C22B6658CA7@redhat.com> <43990B9C-013C-4E77-AADA-F274ACBE4757@oracle.com> <8CCCD806-A467-432C-B7FF-9E83981533EF@redhat.com> <6211BF2A-2A00-4E00-8647-57D829D41E8D@oracle.com> <6AB99AB0-A9A5-4000-BABD-8EFC34FC31D5@redhat.com> <50d04869ff78e2f59b78804f100f9127e3352496.camel@hammerspace.com> <6c34f6721a11c426ac6f732aba37eb67c5b9dae1.camel@hammerspace.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 On 8 Feb 2022, at 10:47, Trond Myklebust wrote: >> peernet2id_alloc() is not designed for this. It appears to use >> idr_alloc(), which means it will reuse values frequently. I did not think of that. > Furthermore, that would introduce a dependency on the init namespace > identifier being unique, which precludes its use for initialising said > init namespace. That's what the udev rule will fix! :) I think I was still on the deterministic bus, but it seems to make the most sense to simply use a random value as a default, then. And if a container wants to be the same client it must run udev, or write to sysfs itselt. Ben