From: John L. Hammond Date: Wed, 7 Jun 2017 13:11:14 +0000 (-0500) Subject: LU-9615 mdt: use write llog lock for pending restores X-Git-Tag: 2.10.0-RC1~27 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=8f1ef95e5f8bba95c28d0c74fc5b4b56ae43f911 LU-9615 mdt: use write llog lock for pending restores In mdt_hsm_pending_restore(), ask for a write llog lock when processing the llog. Signed-off-by: John L. Hammond Change-Id: Ib93a3a3b0f9472afae50c240b7dcb14fce4a8501 Reviewed-on: https://review.whamcloud.com/27484 Tested-by: Jenkins Reviewed-by: Quentin Bouget Reviewed-by: Faccini Bruno Reviewed-by: Ben Evans Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/mdt/mdt_coordinator.c b/lustre/mdt/mdt_coordinator.c index 73463ea..ec1d53d 100644 --- a/lustre/mdt/mdt_coordinator.c +++ b/lustre/mdt/mdt_coordinator.c @@ -793,7 +793,7 @@ static int mdt_hsm_pending_restore(struct mdt_thread_info *mti) hrd.hrd_mti = mti; rc = cdt_llog_process(mti->mti_env, mti->mti_mdt, hsm_restore_cb, &hrd, - 0, 0, READ); + 0, 0, WRITE); RETURN(rc); }