Whamcloud - gitweb
LU-9615 mdt: use write llog lock for pending restores 84/27484/2
authorJohn L. Hammond <john.hammond@intel.com>
Wed, 7 Jun 2017 13:11:14 +0000 (08:11 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 13 Jun 2017 16:55:32 +0000 (16:55 +0000)
In mdt_hsm_pending_restore(), ask for a write llog lock when
processing the llog.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ib93a3a3b0f9472afae50c240b7dcb14fce4a8501
Reviewed-on: https://review.whamcloud.com/27484
Tested-by: Jenkins
Reviewed-by: Quentin Bouget <quentin.bouget@cea.fr>
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Reviewed-by: Ben Evans <bevans@cray.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_coordinator.c

index 73463ea..ec1d53d 100644 (file)
@@ -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);
 }