Whamcloud - gitweb
LU-4022 hsm: Set agent_actions start index from -1
authorJinshan Xiong <jinshan.xiong@intel.com>
Tue, 8 Oct 2013 00:52:27 +0000 (17:52 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 7 Jan 2014 16:30:39 +0000 (11:30 -0500)
commit30bdc382eeff2475ee4cd52602ada0e2e0d1b643
tree22576ec89b14526a0d78905d08368390089b3b58
parent63422a5423ebce7043d645adce2e3e286590280c
LU-4022 hsm: Set agent_actions start index from -1

aai_index was set to start from 0 which will cause the first entry
to be skipped. Set it to -1 instead.

Also take llog lock in proc_show() to avoid it from being changed
during the iteration.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I09013dbf8a85d198496d8470746e773b388d9bee
Reviewed-on: http://review.whamcloud.com/7879
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Reviewed-by: Aurelien Degremont <aurelien.degremont@cea.fr>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_hsm_cdt_actions.c