Whamcloud - gitweb
b=16367
authoryury <yury>
Tue, 12 Aug 2008 13:15:01 +0000 (13:15 +0000)
committeryury <yury>
Tue, 12 Aug 2008 13:15:01 +0000 (13:15 +0000)
r=adilger,nikita

- fixes pools thread often wake up;
- cleanups, comments.

lustre/ldlm/ldlm_request.c

index e35d6d9..1ea22a8 100644 (file)
@@ -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);