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:
parent
b9775a69e9
commit
49693532a2
3 changed files with 15 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue