From: bfields@fieldses.org (J. Bruce Fields)
To: Chuck Lever <chuck.lever@oracle.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH 2/2] DELEG21: Return delegations so clean_diff() works
Date: Sun, 7 Aug 2022 16:18:07 -0400 [thread overview]
Message-ID: <20220807201807.GC14260@fieldses.org> (raw)
In-Reply-To: <165971594611.1762917.16737275128372470606.stgit@morisot.1015granger.net>
On Fri, Aug 05, 2022 at 12:12:26PM -0400, Chuck Lever wrote:
> WARNING: could not clean testdir due to:
> Making sure b'DELEG21-1' is writable: operation OP_SETATTR should return NFS4_OK, instead got NFS4ERR_DELAY
Thanks, both applied.--b.
>
> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
> ---
> nfs4.0/servertests/st_delegation.py | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/nfs4.0/servertests/st_delegation.py b/nfs4.0/servertests/st_delegation.py
> index ff042cdb69a8..9c98ec0e0fb3 100644
> --- a/nfs4.0/servertests/st_delegation.py
> +++ b/nfs4.0/servertests/st_delegation.py
> @@ -731,7 +731,7 @@ def testServerSelfConflict(t, env):
> c = env.c1
> count = c.cb_server.opcounts[OP_CB_RECALL]
> c.init_connection(b'pynfs%i_%s' % (os.getpid(), t.word()), cb_ident=0)
> - _get_deleg(t, c, c.homedir + [t.word()], None, NFS4_OK)
> + deleg_info, fh, stateid = _get_deleg(t, c, c.homedir + [t.word()], None, NFS4_OK)
>
> sleeptime = 1
> while 1:
> @@ -746,6 +746,10 @@ def testServerSelfConflict(t, env):
> check(res, [NFS4_OK, NFS4ERR_DELAY], "Open which causes recall")
> env.sleep(sleeptime, 'Got NFS4ERR_DELAY on open')
> c.confirm(b'newowner', res)
> + res = c.compound([op.putfh(fh), op.delegreturn(deleg_info.read.stateid)])
> + check(res)
> + res = c.close_file(t.word(), fh, stateid)
> + check(res)
> newcount = c.cb_server.opcounts[OP_CB_RECALL]
> if newcount > count:
> t.fail("Unnecessary delegation recall")
>
prev parent reply other threads:[~2022-08-07 20:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-05 16:12 [PATCH 1/2] DELEG6: Return delegations so clean_diff() works Chuck Lever
2022-08-05 16:12 ` [PATCH 2/2] DELEG21: " Chuck Lever
2022-08-07 20:18 ` J. Bruce Fields [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220807201807.GC14260@fieldses.org \
--to=bfields@fieldses.org \
--cc=chuck.lever@oracle.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox