Whamcloud - gitweb
LU-14663 mdc: start changelog thread upon first access
authorAlex Zhuravlev <bzzz@whamcloud.com>
Sun, 2 May 2021 09:16:01 +0000 (12:16 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 15 Jul 2021 21:40:21 +0000 (21:40 +0000)
commit5779c002db451923e48cf2fc08bb6cfd8fb6de04
tree0f879243756b3ddf3469e2599c362b98bbcc994b
parent45a43569ca8a3d67296d210a5db6577f562e02f6
LU-14663 mdc: start changelog thread upon first access

thus leaving the caller a chance to set CHANGELOG_FLAG_FOLLOW,
otherwise the thread (started from open()) can reach the end
of the changelog and exit early.

Lustre-change: https://review.whamcloud.com/43513
Lustre-commit: 72a08ea547dceb542d554e9057e0ed257138bd48

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: Ic14b6c991010bbe5197b5a8b0fedf0f4007e98c1
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/44263
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/mdc/mdc_changelog.c