Whamcloud - gitweb
LU-4423 ldlm: use delayed_work for ldlm_pools_recalc 05/31705/8
authorNeilBrown <neilb@suse.com>
Thu, 31 May 2018 16:44:57 +0000 (12:44 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 14 Jun 2018 03:56:27 +0000 (03:56 +0000)
commit3bf0b0589a11924356a2c529750e5d70515fc1a9
tree809ac7c8d5ac0ade2bdb1020cf36f3ff68e34016
parent6115eb7fd55abca12c110535be4f777e3eba2b10
LU-4423 ldlm: use delayed_work for ldlm_pools_recalc

ldlm currenty has a kthread which wakes up every so often and calls
ldlm_pools_recalc(). The thread is started and stopped, but no other
external interactions happen.

This can trivially be replaced by a delayed_work if we have
ldlm_pools_recalc() reschedule the work rather than just report when to
do that.

Change-Id: I85f8bc79ef86d1c7a6cbe159e6970445eb7f8389
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-on: https://review.whamcloud.com/31705
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_dlm.h
lustre/ldlm/ldlm_pool.c