Whamcloud - gitweb
LU-7988 hsm: update many cookie status at once 84/19584/39
authorBruno Faccini <bruno.faccini@intel.com>
Tue, 18 Jul 2017 08:21:53 +0000 (10:21 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 13 Sep 2017 03:36:51 +0000 (03:36 +0000)
commitf3a415289b560b5f422efe2bd08b3b7cff113cf0
treec7cbf1dee62b001e40660eff56dd8c2cc26edebf
parentcfb61eb95310b0c2f084859d1246680675b1e60d
LU-7988 hsm: update many cookie status at once

Instead of calling mdt_agent_record_update, which calls
cdt_llog_process, once for every HAL, build a list of the cookies to
update with their status and call mdt_agent_record_update just once
per seconds at most.

Update mdt_agent_record_update to take a status for every cookie.

Test-Parameters: trivial testlist=sanity-hsm
Signed-off-by: frank zago <fzago@cray.com>
Change-Id: Ie4afd667727e07570ed6a2d51e8dfaea8302b97b
Signed-off-by: Ben Evans <bevans@cray.com>
Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Reviewed-on: https://review.whamcloud.com/19584
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Quentin Bouget <quentin.bouget@cea.fr>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_coordinator.c
lustre/mdt/mdt_hsm_cdt_actions.c
lustre/mdt/mdt_hsm_cdt_agent.c
lustre/mdt/mdt_internal.h