linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/2]  NFSD: add FREE_STATEID and TEST_STATEID operations
@ 2011-07-13 14:50 bjschuma
  2011-07-13 14:50 ` bjschuma
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: bjschuma @ 2011-07-13 14:50 UTC (permalink / raw)
  To: bfields; +Cc: linux-nfs, Bryan Schumaker

From: Bryan Schumaker <bjschuma@netapp.com>

These patches add FREE_STATEID and TEST_STATEID to the NFS server.  I initially
tested them by hard coding calls both before and after the client completes a
CLOSE operation.  Eventually, I modified the client's state recovery code to
place these calls.  I would turn off networking on the client for two minutes
so it would expired on the server and force recovery once networking was
reenabled.

I later added in a fault injection framework on the server.  I would have the
client acquire a lock, tell the server to delete it, and then have the client
use TEST_STATEID and FREE_STATEID to recover the lock.

v2:
- FREE_STATEID
  - Free open, lock, and delegation state ids correctly
  - Use the check_for_locks() function to check for locks

  - TEST_STATEID
    - Remove openmode check
    - Sanity check on size of stateid list
    - Delay decoding stateid list until encoding the reply

v3:
  - FREE_STATEID
    - Open stateids and delegations are never freeable (return nfserr_locks_held)

  - TEST_STATEID
    - Remove unused arguments from a function call
    - Store and use the HAS_SESSION flag for validating stateids

v4:
  - FREE_STATEID
    - Remove unused argument from nfs4_free_lock_stateid()

  - TEST_STATEID
    - Remove double call to nfs4_validate_stateid()

v5:
  - FREE_STATEID
    - Acquire the state lock before using the state lists

  - TEST_STATEID
    - Acquire the state lock before using the state lists

- Bryan

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

end of thread, other threads:[~2011-07-13 23:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-13 14:50 [PATCH v5 0/2] NFSD: add FREE_STATEID and TEST_STATEID operations bjschuma
2011-07-13 14:50 ` bjschuma
2011-07-13 15:01   ` Bryan Schumaker
2011-07-13 14:50 ` [PATCH v5 2/2] NFSD: Added TEST_STATEID operation bjschuma
2011-07-13 15:04 ` [PATCH v5 1/2] NFSD: added FREE_STATEID operation Bryan Schumaker
2011-07-13 23:57   ` J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).