From: Phil S. <ps...@us...> - 2003-04-23 22:12:12
|
Update of /cvsroot/lustre/lustre/ldlm In directory sc8-pr-cvs1:/tmp/cvs-serv5760 Modified Files: Tag: b_devel ldlm_lockd.c Log Message: Make "ldlm_del_waiting_lock" a no-op on the client-side, because there is no waiting locks list. Index: ldlm_lockd.c =================================================================== RCS file: /cvsroot/lustre/lustre/ldlm/ldlm_lockd.c,v retrieving revision 1.131.2.22 retrieving revision 1.131.2.23 diff -u -w -b -B -p -r1.131.2.22 -r1.131.2.23 --- ldlm_lockd.c 23 Apr 2003 16:23:26 -0000 1.131.2.22 +++ ldlm_lockd.c 23 Apr 2003 22:12:07 -0000 1.131.2.23 @@ -203,8 +203,12 @@ static int ldlm_add_waiting_lock(struct int ldlm_del_waiting_lock(struct ldlm_lock *lock) { struct list_head *list_next; - ENTRY; + + if (lock->l_export == NULL) { + /* We don't have a "waiting locks list" on clients. */ + RETURN(0); + } spin_lock_bh(&waiting_locks_spinlock); |