Whamcloud - gitweb
LU-9744 mdt: avoid wrong CLF_HSM_DIRTY report in ChangeLog 62/27962/2
authorBruno Faccini <bruno.faccini@intel.com>
Fri, 7 Jul 2017 14:42:07 +0000 (16:42 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 5 Aug 2017 00:38:22 +0000 (00:38 +0000)
commit1b6af5006d0a36615f059030b005d55d3c7bb45e
tree88f524c451b1f9f935825fc55ab13bf14434cf4b
parent2b90c15b72c25711793cc4ea46b964098131c736
LU-9744 mdt: avoid wrong CLF_HSM_DIRTY report in ChangeLog

In hsm_cdt_request_completed() and upon error being returned
from mdt_hsm_get_md_hsm(), where "struct md_hsm mh" has not been
populated, HS_DIRTY can be wrongly detected and thus CLF_HSM_DIRTY
flag will be reported by error
This can be the cause of errors in associated sanity-hsm sub-tests
test_220a, test_222c, test_222d, tests_224a, when analyzing
ChangeLog flags.
!IS_ERR(obj) should also be tested before adding CLF_HSM_DIRTY
in cl_flags.

Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: I4469a55b35ea5d35a9f0be152f085bd676f74240
Reviewed-on: https://review.whamcloud.com/27962
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Quentin Bouget <quentin.bouget@cea.fr>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_coordinator.c