Whamcloud - gitweb
lock descriptor fixups
authorpschwan <pschwan>
Mon, 24 Jun 2002 06:01:24 +0000 (06:01 +0000)
committerpschwan <pschwan>
Mon, 24 Jun 2002 06:01:24 +0000 (06:01 +0000)
lustre/ldlm/ldlm_lock.c

index 794c54e..33e8807 100644 (file)
@@ -357,6 +357,7 @@ void ldlm_lock2desc(struct ldlm_lock *lock, struct ldlm_lock_desc *desc)
 
 static int ldlm_send_blocking_ast(struct ldlm_lock *lock, struct ldlm_lock *new)
 {
+        struct ldlm_lock_desc desc;
         struct ptlrpc_request *req = NULL;
         ENTRY;
 
@@ -368,7 +369,8 @@ static int ldlm_send_blocking_ast(struct ldlm_lock *lock, struct ldlm_lock *new)
 
         lock->l_flags |= LDLM_FL_AST_SENT;
         /* FIXME: this should merely add the lock to the lr_tmp list */
-        lock->l_blocking_ast(lock, new, lock->l_data, lock->l_data_len, &req);
+        ldlm_lock2desc(new, &desc);
+        lock->l_blocking_ast(lock, &desc, lock->l_data, lock->l_data_len, &req);
         l_unlock(&lock->l_resource->lr_namespace->ns_lock);
 
         if (req != NULL) {