Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp177372ybi; Tue, 2 Jul 2019 18:35:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOP0nhx+m3ptRbQIHIZQ/qSM9EQbkI+9y0R8onMzLFpv3ZT/2lVf5juxjFS5+iITQcHFJo X-Received: by 2002:a17:902:59c8:: with SMTP id d8mr39757462plj.55.1562117741699; Tue, 02 Jul 2019 18:35:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562117741; cv=none; d=google.com; s=arc-20160816; b=RR5KpB4UZPbX09ibzHG3deynWu+yeQ23+tEYvL/HrHiQwnBHgYzG15/DKjuAILBR9U uWBj71E3XHj6fwH6by2uHExzvSgE0ur7UxNoaTxq93GpJeh26bEIrW7HNCksU+n1BZu6 wvoCUSzOMU4UGMmlp2u7+seUG2J7qpvGrWTmPSG0h+VoEIqCUc3aG1EytgmqjNNnjq0g j8p+P+r4PWKE0twiD276C1C2/R7NHfwDZjHN+rBSH9KJBBtdrCMeCgfwwsIrMnYc3j1C 4NxeaBLhiuMfFKcTuumnzbL5F6PZpzRR/YQdb/+IuogtOX3kCOM9NRS97BVKLMTnhYUA 2kKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:date:message-id:cc:to:subject:from; bh=r08c3ZE/8F0ve+x1Eelq5F8dAyfFvcL6vS6ZibcfqNc=; b=hExMsxeWP4bDeD7OVwpkz2KkWcM8EGTDY6SYFdZQyRBoCZU1F+CWcciTQ3hq+ilxRq MJJd2eL2OxpuDzKGtUj5gymXyM2W3iptIsAFHGIM3ykFXYaxszrjaCipfczW3lU+ky4Q 3Y3jGGXJUIFN7POekCO7Eqa0kxG5EGhn5x6GCO8/aXoqgxEpr/+gPwueEOjchVxGv2VM RChXqA1Rm6D7TXNgzNtkTZSENKhSTGMlKSX+a3xUPNCB3gXlGNo/eQs7yu4I5z3QM81s BjIk5x2xvNv9koW2++Zi4unmhfKdZ+4EZJ0smhv1FxQ04QVv34Cm/1SLypBhoyM48LqK S6Jg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1si469913pll.194.2019.07.02.18.35.17; Tue, 02 Jul 2019 18:35:41 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727107AbfGCBfP (ORCPT + 99 others); Tue, 2 Jul 2019 21:35:15 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:57932 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727080AbfGCBfP (ORCPT ); Tue, 2 Jul 2019 21:35:15 -0400 X-IronPort-AV: E=Sophos;i="5.63,445,1557158400"; d="scan'208";a="70587071" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 03 Jul 2019 09:35:13 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85]) by cn.fujitsu.com (Postfix) with ESMTP id EDFA14CDDD3F; Wed, 3 Jul 2019 09:35:14 +0800 (CST) Received: from [10.167.226.33] (10.167.226.33) by G08CNEXCHPEKD03.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 3 Jul 2019 09:35:19 +0800 From: Su Yanjun Subject: [Problem]testOpenUpgradeLock test failed in nfsv4.0 in 5.2.0-rc7 To: CC: , Message-ID: Date: Wed, 3 Jul 2019 09:34:02 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.167.226.33] X-yoursite-MailScanner-ID: EDFA14CDDD3F.ADFC4 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: suyj.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi Frank We tested the pynfs of NFSv4.0 on the latest version of the kernel (5.2.0-rc7). I encountered a problem while testing st_lock.testOpenUpgradeLock. The problem is now as follows: ************************************************** LOCK24 st_lock.testOpenUpgradeLock : FAILURE            OP_LOCK should return NFS4_OK, instead got            NFS4ERR_BAD_SEQID ************************************************** Is this normal? The case is as follows: Def testOpenUpgradeLock(t, env):     """Try open, lock, open, downgrade, close     FLAGS: all lock     CODE: LOCK24     """     c= env.c1     C.init_connection()     Os = open_sequence(c, t.code, lockowner="lockowner_LOCK24")     Os.open(OPEN4_SHARE_ACCESS_READ)     Os.lock(READ_LT)     Os.open(OPEN4_SHARE_ACCESS_WRITE)     Os.unlock()     Os.downgrade(OPEN4_SHARE_ACCESS_WRITE)     Os.lock(WRITE_LT)     Os.close() After investigation, there was an error in unlock->lock. When unlocking, the lockowner of the file was not released, causing an error when locking again. Will nfs4.0 support 1) open-> 2) lock-> 3) unlock-> 4) lock this function?