Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3799110pxj; Tue, 15 Jun 2021 08:54:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDd0qUpUAo6djD802cpOU+b4Ewlut77T2mWej8opVBz3nQpScmg++fWbPcCF/ImF5YciWZ X-Received: by 2002:a17:906:29c8:: with SMTP id y8mr233066eje.312.1623772463983; Tue, 15 Jun 2021 08:54:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623772463; cv=none; d=google.com; s=arc-20160816; b=PjsAuSLzWuVcqCT/yKvQ5nmGO5VPt4kuYUmHL3a1OTFAkrqGQisIi0K6KH9ugcyMIg 4Juw/oPcYSgdS+kl6VYtyqmZVTVolBEVLwgKZHcDfjdLcxeZ6fbstAX+6B25QbwYSdNv ZQGqXQRrKrhIHWdHNNkv1c8Y89ryV4G1AOaV7r60wGY+Yh7I1MnBeA1guuxtkSuRIQVb GmLqypI/hXYOl6u9Y0auZk1u67ERTwnSOZ7XJzGXLj8cnjIfAsT60MwNI2723hCqW9ep Tm+YsJNAacc+jXHt0wLlFhXoYcHrpI7tZQBANEdN7wYu3kb93qTpIwvkdFV1OZhN1fyK 2Iyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=MUKQWqA9OMR8veuTiMlJeo1ol+afe5Ti0C22ouRUF+k=; b=M6RUtqo1RmL6JkA/JMwrgDa2Yb7+qAkH8EJnE21Y9dr91Q9N/YI4URGUGC9XzYxSrL t6zOj+N1nMoFT7vk1LKxKDpo7/ZW7wqTmIkxBGKZi47ehfG86XD1CBt3+zIvROVU4VVO OV/3LfwhK26+mJBAOMtm2TB8LB827nsIyM4gekDnyh4Ar8VLt/8h2ppcQ/1NQjGlrxLr 90mV0lK9aC7pRSNETR1Z36IWmJdu5OYWe+iK0L8LwWNwclUX279PCOs6uCAdSnSGV41W FmWTFg8A3BOBppPtPXN8uRKrBynXJ5fdYXF0AzpufrazsJrCWht32DCkPdHRn1P9dLAg 3fHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b="AhBM/OSQ"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i4si8978948edc.17.2021.06.15.08.54.00; Tue, 15 Jun 2021 08:54:23 -0700 (PDT) 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=@fieldses.org header.s=default header.b="AhBM/OSQ"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232566AbhFOPzK (ORCPT + 99 others); Tue, 15 Jun 2021 11:55:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232573AbhFOPxH (ORCPT ); Tue, 15 Jun 2021 11:53:07 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F03CEC061149 for ; Tue, 15 Jun 2021 08:50:08 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 58ED56210; Tue, 15 Jun 2021 11:50:07 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 58ED56210 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1623772207; bh=MUKQWqA9OMR8veuTiMlJeo1ol+afe5Ti0C22ouRUF+k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AhBM/OSQlJVMzF70bW7SETpOZTf9Wbj/4KExzT0o/bQmTpt0g7wh27/QcLJ1gG7n0 luvn9uE377LzhuCQQbuUDKKfeN0RyXLBe7dNDkxto2zn1ipDjz9rnM7fC+xPzWcWVS KCtK6vtqdkPoopwlcIK85Bv56YQr9EjoM0Fk/Hik= Date: Tue, 15 Jun 2021 11:50:07 -0400 From: "J. Bruce Fields" To: Calum Mackay Cc: "suy.fnst@fujitsu.com" , "linux-nfs@vger.kernel.org" , "bfields@redhat.com" Subject: Re: [PATCH] pynfs: courtesy: send RECLAIM_COMPLETE before session2 opening the file Message-ID: <20210615155007.GD11877@fieldses.org> References: <91f1d7df-b63c-4aa3-cc03-a8e1cbb2ecb1@oracle.com> <20210615144724.GB11877@fieldses.org> <3f7ee699-bbd6-9025-82b5-40c37cbb6d9c@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3f7ee699-bbd6-9025-82b5-40c37cbb6d9c@oracle.com> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Jun 15, 2021 at 04:38:15PM +0100, Calum Mackay wrote: > I wasn't quite sure on the semantics of those calls. > > We want what appears to the server to be a new client c2, not a new > session from an existing client c1. I wasn't sure whether > new_client_session() would give us that? Yes, it gets you both a new client and a new session for that client. It does all the stuff you need to get a new client that you can actually use for normal operations, so it should be the default unless you need finer control. (Also, *eventually*, I want to port all the 4.0 tests to the 4.1 code and eliminate the separate 4.0/4.1 directories. new_client_session will then do either exchange_id+create_session+reclaim_complete or setclientid+setclient_confirm depending on minor version.) Anyway, so the names are totally unhelpful. Maybe we should reanme new_client to exchange_id and new_client_session to just new_client. --b.