From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C1CCEC4332E for ; Mon, 21 Dec 2020 02:56:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8596722EBD for ; Mon, 21 Dec 2020 02:56:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728510AbgLUC4P (ORCPT ); Sun, 20 Dec 2020 21:56:15 -0500 Received: from fieldses.org ([173.255.197.46]:51700 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726550AbgLUC4P (ORCPT ); Sun, 20 Dec 2020 21:56:15 -0500 X-Greylist: delayed 552 seconds by postgrey-1.27 at vger.kernel.org; Sun, 20 Dec 2020 21:56:15 EST Received: by fieldses.org (Postfix, from userid 2815) id 70E977B71; Sun, 20 Dec 2020 21:46:19 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 70E977B71 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1608518779; bh=5JE9TJllW3bfzd8TtKpTM/aSWIBfxU6Che9CmbiwEvs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=t0re/AWPw4KF5LTGHYH4rPhMIDrf/IEP5uG0dN4CLrgA4Vux3e/OD2FKvarq7ar/r u7ymt+T2oCIWJhZjJV5Z/PAPHbxjtRCba6AI942UEMAEbPNVcSkzIvG7rDCOQniUuZ M6DnUx3DORFdt49toNfThyGo8BV3zVyTNMNf4384= Date: Sun, 20 Dec 2020 21:46:19 -0500 From: "J. Bruce Fields" To: Thomas Haynes Cc: Bruce Fields , Linux NFS Mailing list Subject: Re: [pynfs 03/10] Close the file for SEQ10b Message-ID: <20201221024619.GE24298@fieldses.org> References: <20201217003516.75438-1-loghyr@hammerspace.com> <20201217003516.75438-4-loghyr@hammerspace.com> <20201218164325.GD1258@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Sun, Dec 20, 2020 at 06:42:55PM -0800, Thomas Haynes wrote: > > > > On Dec 18, 2020, at 8:43 AM, J. Bruce Fields wrote: > > > > On Wed, Dec 16, 2020 at 04:35:09PM -0800, Tom Haynes wrote: > >> > >> close_file(sess1, fh, stateid=stateid) > >> > >> + # Cleanup > >> + res = sess1.compound([op.putfh(fh), op.close(0, stateid)]) > >> + check(res) > >> + > > > > This is giving me: > > > > SEQ10b st_sequence.testReplayCache007 : FAILURE > > OP_CLOSE should return NFS4_OK, instead got > > NFS4ERR_BAD_STATEID > > > > probably because the file was already closed just above. I'm not sure > > whta was intended here. Reverting for now. > > > > —b > > Ahh, that close is not there in the branch we have internally. And since git took the change, I thought it was still good. > > Backing out is cool. Oh, I see what happened, thanks for following up. --b.