From: "J. Bruce Fields" <bfields@fieldses.org>
To: Tigran Mkrtchyan <kofemann@googlemail.com>
Cc: linux-nfs@vger.kernel.org, Tigran Mkrtchyan <kofemann@gmail.com>
Subject: Re: [PATH v4 0/3] nfsd41: current state id processing
Date: Mon, 12 Dec 2011 18:07:10 -0500 [thread overview]
Message-ID: <20111212230710.GF22927@fieldses.org> (raw)
In-Reply-To: <1323723627-413-1-git-send-email-tigran.mkrtchyan@desy.de>
On Mon, Dec 12, 2011 at 10:00:24PM +0100, Tigran Mkrtchyan wrote:
> From: Tigran Mkrtchyan <kofemann@gmail.com>
>
>
> Yet another update (v4) of current stateid handling
>
> difference with v3:
>
> Patches re-organized to only add functionality, e.g. there
> are no patches fixing other patches. Operation flags are
> not used any more. Existence of a corresponding function
> pointer is enough.
>
>
> Let me know if you want to see updates less often.
>
> Tigran.
>
> currently tested to work in a single compound:
>
> OPEN+CLOSE
> LOCK+WRITE+LOCKU+CLOSE
>
> On the way (not tested yet):
> OPEN+LAYOUTGET
>
> TODO:
> dispose current stateid on operations which provide CFH, but do not provide stateid.
We also need to go through the list of operations that might set or use
current stateid and make sure we've got them all. On a quick glance, in
addition to the above, maybe these?:
COMMIT
DELETRETURN
LOCKT
OPEN_DOWNGRADE
READ
SAFEFH/RESTOREFH
SETATTR
FREE_STATEID
TEST_STATEID
WANT_DELEGATION (?? does it set current_stateid in the case
where it returns one?)
>
> Internals:
> 1. struct nfsd4_compound_state contains pointer to current stateid
> 2. during compound processing before operation execution current stateid copied into
> operations stateid if it's equal to corresponding value ( 0, 1).
> 3. after operation execution current stateid changed to:
> a) point to stateid of last operation
> or
> b) point to NULL, if operation is marked to do so.
>
> Probably all patches have to be squashed into a single one before merged
> as none of the changes makes sense without others.
I think it's probably OK to do operations (or groups of operations) at a
time, as you have been. Any operations that remain unfixed will
continue returning EXPIRED, as they have before, so we won't be making
things any worse.
In any case, just make sure the layout stuff is kept separate, as we
want to sort out the current stateid before merging pnfs.
--b.
>
> Tigran.
>
>
> Tigran Mkrtchyan (3):
> nfsd41: handle current stateid in open and close
> nfsd41: handle current stateid on lock and locku
> nfsd41: consume current stateid on read and write
>
> fs/nfsd/current_stateid.h | 22 +++++++++++++++
> fs/nfsd/nfs4proc.c | 39 +++++++++++++++++++++++---
> fs/nfsd/nfs4state.c | 66 +++++++++++++++++++++++++++++++++++++++++++++
> fs/nfsd/xdr4.h | 1 +
> 4 files changed, 123 insertions(+), 5 deletions(-)
> create mode 100644 fs/nfsd/current_stateid.h
>
> --
> 1.7.7.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2011-12-12 23:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-12 21:00 [PATH v4 0/3] nfsd41: current state id processing Tigran Mkrtchyan
2011-12-12 21:00 ` [PATH v4 1/3] nfsd41: handle current stateid in open and close Tigran Mkrtchyan
2011-12-13 8:03 ` Benny Halevy
2011-12-13 16:44 ` J. Bruce Fields
2011-12-14 17:01 ` Tigran Mkrtchyan
2011-12-12 21:00 ` [PATH v4 2/3] nfsd41: handle current stateid on lock and locku Tigran Mkrtchyan
2011-12-13 8:09 ` Benny Halevy
2011-12-12 21:00 ` [PATH v4 3/3] nfsd41: consume current stateid on read and write Tigran Mkrtchyan
2011-12-13 8:11 ` Benny Halevy
2011-12-13 8:17 ` Tigran Mkrtchyan
2011-12-12 23:07 ` 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=20111212230710.GF22927@fieldses.org \
--to=bfields@fieldses.org \
--cc=kofemann@gmail.com \
--cc=kofemann@googlemail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.