 /* Ooops, no blocked request found. */ if (block == NULL) return nlm_lck_denied;  /* Alright, we found the lock. Set the return status and * wake up the caller. */ block->b_status = NLM_LCK_GRANTED; wake_up(&block->b_wait);  return nlm_granted; 
return res; 
nlmclnt_grant(struct nlm_lock *lock){	struct nlm_wait	*block;	/*	 * Look up blocked request based on arguments. 	 * Warning: must not use cookie to match it!	 */	list_for_each_entry(block, &nlm_blocked, b_list) {		if (nlm_compare_locks(block->b_lock, &lock->fl))			break;	}	/* Ooops, no blocked request found. */	if (block == NULL)		return nlm_lck_denied;	/* Alright, we found the lock. Set the return status and	 * wake up the caller.	 */	block->b_status = NLM_LCK_GRANTED;	wake_up(&block->b_wait);	return nlm_granted;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/ecdbf769b2cb8903e07cd482334c714d89fd1146/clntlock.c/clean/fs/lockd/clntlock.c