X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fldlm%2Fldlm_lib.c;h=d5facc4b8eabaaa06defb80565f719b56a485cce;hp=f6b025ddafb01dfee5d951f2846582415b9d4ca2;hb=b11d0d89b22e8409cac12129a80044f84df0023c;hpb=a56b6687b68421b032b333c1e95a45950f7b625c diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index f6b025d..d5facc4 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -1046,6 +1046,7 @@ void ptlrpc_free_clone( struct ptlrpc_request *req) OBD_FREE_PTR(req); } +#ifdef __KERNEL__ static void target_finish_recovery(struct obd_device *obd) { ENTRY; @@ -1094,6 +1095,7 @@ static void abort_lock_replay_queue(struct obd_device *obd) ptlrpc_free_clone(req); } } +#endif /* Called from a cleanup function if the device is being cleaned up forcefully. The exports should all have been disconnected already, @@ -1178,7 +1180,7 @@ void target_start_recovery_timer(struct obd_device *obd) { spin_lock_bh(&obd->obd_processing_task_lock); if (obd->obd_recovery_handler - || timer_pending(&obd->obd_recovery_timer)) { + || timer_pending((struct timer_list *)&obd->obd_recovery_timer)) { spin_unlock_bh(&obd->obd_processing_task_lock); return; }