All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATH v3 0/5] nfsd41: current state id processing
@ 2011-12-11 16:41 Tigran Mkrtchyan
  2011-12-11 16:41 ` [PATH v3 1/5] nfsd41: handle current stateid in open and close Tigran Mkrtchyan
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Tigran Mkrtchyan @ 2011-12-11 16:41 UTC (permalink / raw)
  To: linux-nfs; +Cc: Tigran Mkrtchyan

From: Tigran Mkrtchyan <kofemann@gmail.com>

This is yet another update of current stateid handling

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.

Internals:
  1. struct nfsd4_compound_state contains pointer to current stateid
  2. operations marked to PROVIDE, CONSUME or CLEAR current stateid. 
  3. during compound processing before operation execution current stateid copied into
   operations stateid if it's equal to corresponding value ( 0, 1).
  4. 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.

Tigran.

Tigran Mkrtchyan (5):
  nfsd41: handle current stateid in open and close
  nfsd41: handle current stateid on lock and locku
  nfsd41: update operations's stateid iff current stateid is set
  nfsd41: consume current stateid on read and write
  nfsd41: use pinter to current stateid to avoid extra copy

 fs/nfsd/current_stateid.h |   22 +++++++++++++++
 fs/nfsd/nfs4proc.c        |   55 +++++++++++++++++++++++++++++-------
 fs/nfsd/nfs4state.c       |   67 +++++++++++++++++++++++++++++++++++++++++++++
 fs/nfsd/xdr4.h            |    1 +
 4 files changed, 134 insertions(+), 11 deletions(-)
 create mode 100644 fs/nfsd/current_stateid.h

-- 
1.7.7.4


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-12-12 20:59 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-11 16:41 [PATH v3 0/5] nfsd41: current state id processing Tigran Mkrtchyan
2011-12-11 16:41 ` [PATH v3 1/5] nfsd41: handle current stateid in open and close Tigran Mkrtchyan
2011-12-12 15:21   ` Benny Halevy
2011-12-12 16:04     ` J. Bruce Fields
2011-12-12 16:42       ` Tigran Mkrtchyan
2011-12-12 16:42     ` Tigran Mkrtchyan
2011-12-11 16:41 ` [PATH v3 2/5] nfsd41: handle current stateid on lock and locku Tigran Mkrtchyan
2011-12-11 16:41 ` [PATH v3 3/5] nfsd41: update operations's stateid iff current stateid is set Tigran Mkrtchyan
2011-12-11 16:41 ` [PATH v3 4/5] nfsd41: consume current stateid on read and write Tigran Mkrtchyan
2011-12-11 16:41 ` [PATH v3 5/5] nfsd41: use pinter to current stateid to avoid extra copy Tigran Mkrtchyan
2011-12-12 15:55   ` Benny Halevy
2011-12-12 20:59     ` Tiramisu Mokka
2011-12-12 19:44 ` [PATH v3 0/5] nfsd41: current state id processing Benny Halevy

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.