From 2b4d144d7da06933e7dce7005eaa87d710ac629f Mon Sep 17 00:00:00 2001 From: yury Date: Tue, 12 Aug 2008 13:15:01 +0000 Subject: [PATCH] b=16367 r=adilger,nikita - fixes pools thread often wake up; - cleanups, comments. --- lustre/ldlm/ldlm_request.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/lustre/ldlm/ldlm_request.c b/lustre/ldlm/ldlm_request.c index e35d6d9..1ea22a8 100644 --- a/lustre/ldlm/ldlm_request.c +++ b/lustre/ldlm/ldlm_request.c @@ -1070,24 +1070,6 @@ int ldlm_cli_update_pool(struct ptlrpc_request *req) obd->obd_pool_limit = new_limit; write_unlock(&obd->obd_pool_lock); - /* Check if we need to wakeup pools thread for fast SLV change. - * This is only done when threads period is noticably long like - * 10s or more. */ -#if defined(__KERNEL__) && (LDLM_POOLS_THREAD_PERIOD >= 10) - if (old_slv > 0) { - __u64 fast_change = old_slv * LDLM_POOLS_FAST_SLV_CHANGE; - do_div(fast_change, 100); - - /* - * Wake up pools thread only if SLV has changed more than - * 50% since last update. In this case we want to react asap. - * Otherwise it is no sense to wake up pools as they are - * re-calculated every LDLM_POOLS_THREAD_PERIOD anyways. - */ - if (old_slv > new_slv && old_slv - new_slv > fast_change) - ldlm_pools_wakeup(); - } -#endif RETURN(0); } EXPORT_SYMBOL(ldlm_cli_update_pool); -- 1.8.3.1