Whamcloud - gitweb
LU-10902 mdd: force disable changelogs early and safely 07/32007/6
authorBruno Faccini <bruno.faccini@intel.com>
Mon, 16 Apr 2018 13:31:28 +0000 (15:31 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 6 May 2018 03:42:24 +0000 (03:42 +0000)
commit99cc32b013d411335a694c5f94a83cef839c68c4
tree4f20f2419ca355ecae10b7128dd7099711aa64f9
parent9b5337b695be699ce289d5f509436286d4d7185c
LU-10902 mdd: force disable changelogs early and safely

In mdd_changelog_user_purge() changelogs were disabled too late
allowing for new records to be unnecessarily gathered.
Also, a race was possible, causing changelogs to be disabled even
with registered users.

sanity/tests_160h has been added to check race is fixed.
Also, changelog_[unregister,clear]() functions in test-framework.sh
had to be modified to handle facets in same order than
changelog_register() to allow the race simulation to work in
DNE environment.

Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: I78f07068e89b1cf2cf0c83dd2068f82f8a4a6dd5
Reviewed-on: https://review.whamcloud.com/32007
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/obd_support.h
lustre/mdd/mdd_device.c
lustre/mdd/mdd_internal.h
lustre/tests/sanity.sh
lustre/tests/test-framework.sh