Whamcloud - gitweb
LU-7988 hsm: update many cookie status at once 73/28973/2
authorBruno Faccini <bruno.faccini@intel.com>
Tue, 18 Jul 2017 08:21:53 +0000 (10:21 +0200)
committerJohn L. Hammond <john.hammond@intel.com>
Thu, 26 Oct 2017 16:08:13 +0000 (16:08 +0000)
commit019c48b649d0f668563cf72495d1d1b02f4f69c0
tree44b260496d70fcbdd11a4c2ea94a5fce6b812201
parentec1dfdfae8b860af54ca0fdc4d035870e6338017
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

Lustre-change: https://review.whamcloud.com/19584
Lustre-commit: f3a415289b560b5f422efe2bd08b3b7cff113cf0

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-by: Quentin Bouget <quentin.bouget@cea.fr>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/28973
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@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