Whamcloud - gitweb
LU-3540 lod: update recovery thread 37/11737/50
authorWang Di <di.wang@intel.com>
Thu, 28 Aug 2014 09:15:32 +0000 (02:15 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 5 Jun 2015 08:13:20 +0000 (08:13 +0000)
commit4f53536d002c13886210b672b657795baa067144
tree9e8c728f5ee87958b017461acdff5596e9701429
parentb1f01a709ffe66d82f13ad421d319432d235c05b
LU-3540 lod: update recovery thread

start recovery thread for each sub device in LOD, and
these threads will retrieve the update log from remote
MDT and attach them to recovery list.

Add update records to the recovery list, which
is attached to lu_target, and the recovery thread
(target_recover_thread()) will choose update or request
by transno during recovery.

Add update_recovery.c to handle updates replay during
recovery.

Change-Id: I367e9ef88f010143df50f7d06bd4242db1105db7
Signed-off-by: Wang Di <di.wang@intel.com>
Reviewed-on: http://review.whamcloud.com/11737
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
29 files changed:
lustre/fid/fid_request.c
lustre/include/dt_object.h
lustre/include/lu_object.h
lustre/include/lu_target.h
lustre/include/lustre/lustre_idl.h
lustre/include/lustre_fld.h
lustre/include/lustre_update.h
lustre/include/obd.h
lustre/ldlm/ldlm_lib.c
lustre/lod/lod_dev.c
lustre/lod/lod_internal.h
lustre/lod/lod_lov.c
lustre/lod/lod_sub_object.c
lustre/mdt/mdt_handler.c
lustre/mgs/mgs_internal.h
lustre/obdclass/llog_swab.c
lustre/ofd/ofd_obd.c
lustre/osp/osp_dev.c
lustre/osp/osp_trans.c
lustre/ptlrpc/Makefile.in
lustre/target/Makefile.am
lustre/target/out_handler.c
lustre/target/out_lib.c
lustre/target/tgt_internal.h
lustre/target/update_records.c
lustre/target/update_recovery.c [new file with mode: 0644]
lustre/target/update_trans.c
lustre/tests/conf-sanity.sh
lustre/tests/sanity.sh