From 1185ed1f6502ef4e7aeb367c4c1ef452ace2c41e Mon Sep 17 00:00:00 2001 From: pschwan Date: Mon, 24 Jun 2002 06:01:24 +0000 Subject: [PATCH] lock descriptor fixups --- lustre/ldlm/ldlm_lock.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/ldlm/ldlm_lock.c b/lustre/ldlm/ldlm_lock.c index 794c54e..33e8807 100644 --- a/lustre/ldlm/ldlm_lock.c +++ b/lustre/ldlm/ldlm_lock.c @@ -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) { -- 1.8.3.1