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

@ -61,6 +61,7 @@ static int create_open_state(
state->ref_count = 1;
list_init(&state->locks.list);
list_init(&state->client_entry);
InitializeCriticalSection(&state->locks.lock);
*state_out = state;
status = NO_ERROR;