From 8f1ef95e5f8bba95c28d0c74fc5b4b56ae43f911 Mon Sep 17 00:00:00 2001 From: "John L. Hammond" Date: Wed, 7 Jun 2017 08:11:14 -0500 Subject: [PATCH] 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 --- lustre/mdt/mdt_coordinator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 1.8.3.1