locks: serialize lock requests

adds a critical section to nfs41_open_state.  this lock is taken before generating the stateid/seqid, and released after updated stateid is saved to nfs41_open_state

Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
Casey Bodley 2012-05-01 15:08:42 -04:00 committed by unknown
parent b9775a69e9
commit 49693532a2
3 changed files with 15 additions and 2 deletions

View file

@ -149,6 +149,7 @@ typedef struct __nfs41_open_state {
stateid4 stateid;
struct list_entry list;
uint32_t counter;
CRITICAL_SECTION lock;
} locks;
HANDLE srv_open; /* for data cache invalidation */