From patchwork Wed Jun 4 21:01:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weston Andros Adamson X-Patchwork-Id: 4296861 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2A636BEEA7 for ; Wed, 4 Jun 2014 21:02:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6EAE520218 for ; Wed, 4 Jun 2014 21:02:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7F79D20142 for ; Wed, 4 Jun 2014 21:02:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751996AbaFDVCP (ORCPT ); Wed, 4 Jun 2014 17:02:15 -0400 Received: from mail-ig0-f175.google.com ([209.85.213.175]:47059 "EHLO mail-ig0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751980AbaFDVCN (ORCPT ); Wed, 4 Jun 2014 17:02:13 -0400 Received: by mail-ig0-f175.google.com with SMTP id uq10so6796395igb.2 for ; Wed, 04 Jun 2014 14:02:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UK6NiXq2/rrV0U4NDQkmZwjhiXcx6Ko06TjesZh0BNk=; b=cdJTI6oM5Wv1aEv4e+Hf9sh/dxPurTn+z3jlGWF/qQpRj05LQnlUNbETJs9RqUdWUE KA5w5TqqC1oNo5AW6qPN7NaFexccrwVR4w+dztNkQrgAyQen8UjeU1GGkLN9wm9XWkOM 4ZTZ733oci8fgzK+N8IEtvzV600IRMwC64fTtTnUT1kMRjIMY/8IdjSAbTn+qnYQr4YZ KaVXXBclqnqVncO2RMGVbVZTVJMYFujrAOsMjfgJUus8U7wMJVT9X/YfUGKYVJxhjtwW OLt/iCtMCv/zMr6uMPIF9akWWPRMzQUR+6TQ+VUlSWslN4PIvmts9w797WRAAZsUZELa fWCg== X-Gm-Message-State: ALoCoQnldP8Fr3lFw4ZAbWrnk9009gRm3fwWgaFdEelo+rXd9XYzqarfM7oltnQyiEKeFaU7I7Nl X-Received: by 10.50.61.226 with SMTP id t2mr11025610igr.44.1401915732685; Wed, 04 Jun 2014 14:02:12 -0700 (PDT) Received: from gavrio-wifi.robotsandstuff.fake (c-98-209-19-144.hsd1.mi.comcast.net. [98.209.19.144]) by mx.google.com with ESMTPSA id qh3sm47684584igb.17.2014.06.04.14.02.11 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 04 Jun 2014 14:02:11 -0700 (PDT) From: Weston Andros Adamson To: bfields@fieldses.org Cc: linux-nfs@vger.kernel.org, Weston Andros Adamson Subject: [PATCH pynfs 01/17] 4.1 client: reclaim_complete after create_session Date: Wed, 4 Jun 2014 17:01:49 -0400 Message-Id: <1401915726-29092-2-git-send-email-dros@primarydata.com> X-Mailer: git-send-email 1.8.5.2 (Apple Git-48) In-Reply-To: <1401915726-29092-1-git-send-email-dros@primarydata.com> References: <1401915726-29092-1-git-send-email-dros@primarydata.com> Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Send RECLAIM_COMPLETE after CREATE_SESSION. This enables backend communication to v4.1 linux nfsd servers (i/o through MDS only). Signed-off-by: Weston Andros Adamson --- nfs4.1/nfs4client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nfs4.1/nfs4client.py b/nfs4.1/nfs4client.py index e750728..0d94a42 100644 --- a/nfs4.1/nfs4client.py +++ b/nfs4.1/nfs4client.py @@ -367,6 +367,7 @@ class ClientRecord(object): self.seqid = inc_u32(csr.csr_sequence) # XXX Do we need to check this? sess = SessionRecord(csr, self) self.c.sessions[sess.sessionid] = sess + sess.compound([op.reclaim_complete(FALSE)]) return sess def _cb_hook(self, prefix, opname, funct):