Whamcloud - gitweb
branch=b1_6
authorzhanghc <zhanghc>
Sun, 30 Nov 2008 16:12:44 +0000 (16:12 +0000)
committerzhanghc <zhanghc>
Sun, 30 Nov 2008 16:12:44 +0000 (16:12 +0000)
b=17031

during refreshing locks waiting its I/O to complete,
take current service time into account, not only using
the timeout gotten by ldlm_get_enqueue_timeout

i=Andreas
i=Nathan.Rutman

lustre/include/lustre_dlm.h

index 0507967..74a5324 100644 (file)
@@ -696,7 +696,7 @@ int ldlm_handle_cancel(struct ptlrpc_request *req);
 int ldlm_request_cancel(struct ptlrpc_request *req,
                         struct ldlm_request *dlm_req, int first);
 int ldlm_del_waiting_lock(struct ldlm_lock *lock);
-int ldlm_refresh_waiting_lock(struct ldlm_lock *lock);
+int ldlm_refresh_waiting_lock(struct ldlm_lock *lock, int timeout);
 int ldlm_get_ref(void);
 void ldlm_put_ref(void);
 int ldlm_init_export(struct obd_export *exp);