Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp760174ybl; Wed, 29 Jan 2020 09:13:04 -0800 (PST) X-Google-Smtp-Source: APXvYqxKWr46tf0ORRyjl9rlXZmw7JJRDpavhpO6lGElZyw2K4UtYme2mebBRS3V8nQ1gms7p+sB X-Received: by 2002:a9d:6a4f:: with SMTP id h15mr245554otn.86.1580317984240; Wed, 29 Jan 2020 09:13:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580317984; cv=none; d=google.com; s=arc-20160816; b=BCIJ2Gek67D+YhAVIkBQmGZHBpWZNSh+lI320PLABYzM8AOfVGp6RaewpqaeALCfQt gcOzpddMBJGDd7Mqf5SAic7SZDbpBHg1UPgIH2VOrTmk2aQDgNS7UfCkkDV2BFwsA/q2 wnxVUsRKbzMecfNk5pZRjPYV1Wfr5o/v3kmLmmzBPYDTIXXaivj0JfdfEnGG/qek+Zht 6LowNsJITXuffX6IQQVwmU3RwNKrkI0dVIXJ42k+yYS23yHu2zCndOgH9pTNWB+PEagn 54ksG/OVo8WY+XSo1jEIKIGMTejiY0V7JtAWEk/tXHkW0ppgLJyGSgstAYehpBC4pcNV iPkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :mime-version:dkim-signature; bh=z4Hf0h5UVwoXDI4y0oEx4N0lVsJZ7hmxceDmsnlKcMU=; b=RCRIAtOZVtH5QZMNq8QJlOWqqqT2muIxptPDcbT7Lh1K4+vIUoYNiayqklV48QSdQ5 CyUHJ98VclIpj3RoE2Zif4m2McuolWLdjxpVWraJjieGvEERyyBXup2wcWu0H9zVfcLC mwh6ejsDoHjbc4B57r7MXYwJuHF38Y5wbjOU6iTSWhuK8jYXs20mLZ0GMFKYBV/W7S/9 gsC/BmwnV4zlrijCxo2UuAj3rmsNqr48lgISx6dzx55SrDIeMZ/vri7WQRgNF11BWO6/ 5C4vXOzaYF4mSNotDsGWJ+qTU8dHNOtgt/TNGbHxXaicgmJxlitRyOff1VqVLkc/ngGB 5WLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=Oh3TwXiX; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9si1295042oie.22.2020.01.29.09.12.44; Wed, 29 Jan 2020 09:13:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=Oh3TwXiX; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726939AbgA2RM0 (ORCPT + 99 others); Wed, 29 Jan 2020 12:12:26 -0500 Received: from mail-wm1-f47.google.com ([209.85.128.47]:39622 "EHLO mail-wm1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726647AbgA2RM0 (ORCPT ); Wed, 29 Jan 2020 12:12:26 -0500 Received: by mail-wm1-f47.google.com with SMTP id c84so638080wme.4 for ; Wed, 29 Jan 2020 09:12:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=google-2016-06-03; h=mime-version:from:date:message-id:subject:to; bh=z4Hf0h5UVwoXDI4y0oEx4N0lVsJZ7hmxceDmsnlKcMU=; b=Oh3TwXiXs7Z0hXNi2OxSlrPqeEBuL5DbALg3EdX5RQUD/n9to/Ylso1wJxUOwkz+OM AijOdVi2wApcXHEMM2RcpMBnQU++eBzTD4uLJHRC5UAW7HuE/CuCe2bneQpYGvik0trx FGfZ3WvXbmWJh3fOh0CUNPlnFoaJJTJ5su7Z8xcKBHIgEPSUgNPry4AtJRBguGq7DDfj pryaGXCTU7XT+GxyXTfgVGA5ylWM5/rm5Mqxxsi8tZ5qWw8Aw+wqXbK42OfDaGOMM4KR WLr2tojSVVXOIJsTkJ0W7P5oqxJ0KJtl7DgLPMgXtQDDhMbYFGrhN3+XacoImI0ImR1O AVxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=z4Hf0h5UVwoXDI4y0oEx4N0lVsJZ7hmxceDmsnlKcMU=; b=YNbq9oQdgqj4uz1/gd9RRz3QeVvhWI3k4nC/nwtBbi+e8TdP44MeuZkRXDolQ4XB/E 6CWeokjvsKt3VA0WlyltPAmzI3c9KLDk0hzLNolCW5gKSr2bMOcxaOWl0k9HN3u5WbkS niYLQZjXCjHKdOE8p51Uf7lKmy+QlIGd4uk71zwVoObo+FJXx2rNQPi7EIO5/Jgv0J2h OMqASFUCwLxA8+omtXZHFbNsC3gcAwNYmWn+xoEUL6gUy74wapIZ7CS/f8jhS8DnPQbp Qw9e0FIpbQygsjz3fgb7SEc2D0VBfSEprouHuur/wHu8+paojt63wHJ40uqUqJ8VeisV d3ew== X-Gm-Message-State: APjAAAVHmH/b7RwqKL6cp+FkmAyhlo7LpXdR73PD+LfPZ1sOisy69VGt taRC9DKbaduS3walwlb5mFWbyImzlH9iMZMw71aUeA== X-Received: by 2002:a1c:3b0a:: with SMTP id i10mr213463wma.177.1580317943903; Wed, 29 Jan 2020 09:12:23 -0800 (PST) MIME-Version: 1.0 From: Olga Kornievskaia Date: Wed, 29 Jan 2020 12:12:12 -0500 Message-ID: Subject: question about nconnect implementation To: linux-nfs Content-Type: text/plain; charset="UTF-8" Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi Trond, Correct me if I'm wrong but I believe currently the client will never bind new (nconnect) connections to an existing session until it gets an error CONN_NOT_BOUND_TO_SESSION, is that correct? nfs4_proc_bind_conn_to_session() that iterates over the transports is only called nfs4state's nfs4_bind_conn_to_session when cl_stat's flag of BIND_CONN_TO_SESSION is set and it's set on error handling of CONN_NOT_BOUND. Is the reason client not explicitly sending BIND_CONN_TO_SESSION before sending other operations is because client (implements) specifies "no state protection" for the client? And according to the spec if no state protection is used then just sending a SEQUENCE on a new connection is sufficient to create an association between that connection and the session? Thank you.