Whamcloud - gitweb
LU-7772 llog: do not destroy llog twice 62/18362/3
authorAlex Zhuravlev <alexey.zhuravlev@intel.com>
Tue, 9 Feb 2016 13:00:04 +0000 (16:00 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 11 Apr 2016 02:51:59 +0000 (02:51 +0000)
commit932577dd2a4afe1bf00103390c87ea552d782169
treec8428e29efb9ffaca7a6df6abcd71ca46b6e8117
parentae70c9e898b8230f26f659bfd85665230ea49720
LU-7772 llog: do not destroy llog twice

if llog_process_thread() finds a llog corrupted, then it cancels
all remaining records which in turn causes destroy of this llog.
but it's still referenced by the catalog's in-code structures
(chd_head list) and llog_cat_close() at umount tries to destroy
this llog again. we can reset LLOG_F_ZAP_WHEN_EMPTY at destroy,
so it never repeats.

Change-Id: I8173d9dd2971fa5cce613e71555ca04e96b5512b
Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-on: http://review.whamcloud.com/18362
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/llog.c