Whamcloud - gitweb
LU-10699 hsm: simplify mdt_hsm_{add,get}_actions() 85/31385/2
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 22 Feb 2018 18:27:14 +0000 (12:27 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 2 May 2018 02:23:28 +0000 (02:23 +0000)
commit9bc0d837eb0cfc7e1d9ce702057761560d66434c
treee6036b33f2169daf79ef1d94d8f809ef30eedb63
parent32fb31f3bf3d74b6a1d78a75245c3b355cf38f33
LU-10699 hsm: simplify mdt_hsm_{add,get}_actions()

Split the mdt_hsm_get_actions() functionality of
hsm_find_compatible_cb() into a new llog callback
(hsm_find_action_cb()). Simplify hsm_find_compatible() since it only
needs to handle adding new requests. Simplify the MDS_HSM_ACTIONS
handling code.

Test-Parameters: trivial testlist=sanity-hsm
Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ie1e7eac85397d82ad9cc4790582bf8ba51713e70
Reviewed-on: https://review.whamcloud.com/31385
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/mdt/mdt_hsm.c
lustre/mdt/mdt_hsm_cdt_client.c
lustre/mdt/mdt_internal.h