Whamcloud - gitweb
LU-12098 mdd: explicitly clear changelogs on deregister 21/34921/2
authorSebastien Buisson <sbuisson@ddn.com>
Tue, 16 Apr 2019 13:32:43 +0000 (22:32 +0900)
committerOleg Drokin <green@whamcloud.com>
Sat, 8 Jun 2019 02:35:07 +0000 (02:35 +0000)
commit5bf8c0eaf9101f98b49029a8651b73bce436db17
tree65a48c2e0c8741e3ebfb247be50d0c5167cb34a8
parent29ab5b6b23d5592b813ec90891b546cf7fe195c9
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.

Lustre-change: https://review.whamcloud.com/34688
Lustre-commit: 83ffa859bc629e246de9fcdfc82838b14c6d0ea3

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