/* Protect against nfs4_find_state() */ 
/* Protect against nfs4_find_state_byowner() */ 
static void update_open_stateid(struct nfs4_state *state, nfs4_stateid *stateid, int open_flags){	struct inode *inode = state->inode;	open_flags &= (FMODE_READ|FMODE_WRITE);	/* Protect against nfs4_find_state() */	spin_lock(&state->owner->so_lock);	spin_lock(&inode->i_lock);	memcpy(&state->stateid, stateid, sizeof(state->stateid));	if ((open_flags & FMODE_WRITE))		state->nwriters++;	if (open_flags & FMODE_READ)		state->nreaders++;	nfs4_state_set_mode_locked(state, state->state | open_flags);	spin_unlock(&inode->i_lock);	spin_unlock(&state->owner->so_lock);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/d530838bfa507d67b40d13b00d9cbd7a46a47e78/nfs4proc.c/clean/fs/nfs/nfs4proc.c