From: Oleg Drokin Date: Thu, 25 Feb 2016 03:00:21 +0000 (-0500) Subject: staging/lustre: Remove dead code in ldlm_lock_destroy_internal X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8e80aa294dc3cfeb44392b6617837f9969304b25;p=linux-beck.git staging/lustre: Remove dead code in ldlm_lock_destroy_internal This code has been commented out since end of 2012, so it's clearly not needed here. Signed-off-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_lock.c b/drivers/staging/lustre/lustre/ldlm/ldlm_lock.c index 07e83e5c2904..65d0cfe2242f 100644 --- a/drivers/staging/lustre/lustre/ldlm/ldlm_lock.c +++ b/drivers/staging/lustre/lustre/ldlm/ldlm_lock.c @@ -337,16 +337,6 @@ static int ldlm_lock_destroy_internal(struct ldlm_lock *lock) ldlm_lock_remove_from_lru(lock); class_handle_unhash(&lock->l_handle); -#if 0 - /* Wake anyone waiting for this lock */ - /* FIXME: I should probably add yet another flag, instead of using - * l_export to only call this on clients */ - if (lock->l_export) - class_export_put(lock->l_export); - lock->l_export = NULL; - if (lock->l_export && lock->l_completion_ast) - lock->l_completion_ast(lock, 0); -#endif return 1; }