Whamcloud - gitweb
LU-6896 llog: update log initialization needs to be sync 21/15721/3
authorwang di <di.wang@intel.com>
Thu, 23 Jul 2015 11:24:30 +0000 (04:24 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 9 Aug 2015 23:35:08 +0000 (23:35 +0000)
commit42a175ccdd39f164a12c65e9f9cd726bd7a3aaed
tree731b14946c4242f999b59b719cd92da71dca01d1
parentbe3c67ff1f55930f3c0871b2584c610805edb3d4
LU-6896 llog: update log initialization needs to be sync

During initialization, update llog catlist and cat file creation
needs to be synchronized, because the following update records
will be written to these files, if these files are missing during
update recovery, then update recovery will fail.

Because update llog is initialized in a separate thread, it should
set loc_handle until the catlog is written to catlist to make sure
the udpate llog is fully initialized because MDT can handle cross
MDT operation. see lod_obd_get_info() to check the healthy of the
target.

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: Iccd09749bedde46c01ff89b5be4fa6f4327ec9b9
Reviewed-on: http://review.whamcloud.com/15721
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lod/lod_sub_object.c
lustre/obdclass/llog.c
lustre/obdclass/llog_osd.c
lustre/osp/osp_trans.c
lustre/target/update_trans.c