Whamcloud - gitweb
LU-6705 lod: re-order lodsub recovery cleanup 10/15210/3
authorwang di <di.wang@intel.com>
Tue, 9 Jun 2015 18:49:45 +0000 (11:49 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 8 Jul 2015 17:30:39 +0000 (17:30 +0000)
commit8299bdd484ad44d3ed25dcc68e8440242c155c80
tree7c0202970bee0ebce4584a196add9464f9df0b8a
parenta3b9617c740f063a198bd6d81b7860af5799f755
LU-6705 lod: re-order lodsub recovery cleanup

Before MDT stop recovery thread, it should disconnect
the OSP and stop the sub_recovery thread, otherwise
the recovery thread will be blocked by sub_recovery
thread.

The the right steps to stop the MDT recovery thread is
(see mdt_device_fini())

1. Do stack pre_cleanup (by LCFG_PRE_CLEANUP), to disconnect
OSP and stop sub_recovery thread (used for collecting update
records).
2. Stop the recovery thread.
3. Cleanup the update llog ctxt in mdt_stack_fini()
(by LCFG_CLEANUP).

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: I4e938cb87ab02d388bce16bd15d181fd7fcc783b
Reviewed-on: http://review.whamcloud.com/15210
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lod/lod_dev.c
lustre/mdt/mdt_handler.c