Whamcloud - gitweb
LU-12098 mdd: explicitly clear changelogs on deregister 88/34688/7
authorSebastien Buisson <sbuisson@ddn.com>
Tue, 16 Apr 2019 13:32:43 +0000 (22:32 +0900)
committerOleg Drokin <green@whamcloud.com>
Tue, 21 May 2019 05:13:13 +0000 (05:13 +0000)
commit83ffa859bc629e246de9fcdfc82838b14c6d0ea3
tree9c4c4a0877d325bd263fb8f18928f2407a779698
parentf2bf0379a773c8c1659bfe018a22861784a0b9a6
LU-12098 mdd: explicitly clear changelogs on deregister

In case of MDS crash in the middle of changelog_deregister, the system
can end up with the changelogs user deregistered, but the changelog
entries not actually cleared. Then the only way to get rid of the
remaining changelogs not used anymore by any user is to register a new
changelogs user and then deregister it.
To protect from this scenario, explicitly clear changelogs used by the
user, before actually deregistering it.

Also add recovery-small test_136 for non-regression purpose.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I14576180c9351337fc4d9ed0e1b176d352584750
Reviewed-on: https://review.whamcloud.com/34688
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd_support.h
lustre/mdd/mdd_device.c
lustre/tests/recovery-small.sh