Whamcloud - gitweb
b=19405 do not flag a request as rq_replay for non replayable imports
authorVladimir V. Saveliev <vladimir.saveliev@sun.com>
Tue, 26 Jan 2010 16:12:40 +0000 (17:12 +0100)
committerJohann Lombardi <johann@sun.com>
Tue, 26 Jan 2010 16:12:40 +0000 (17:12 +0100)
i=ericm
i=robert

lustre/mdc/mdc_locks.c

index a5ad574..b8f69e9 100644 (file)
@@ -318,7 +318,7 @@ static struct ptlrpc_request *mdc_intent_open_pack(struct obd_export *exp,
 
         if (req) {
                 spin_lock(&req->rq_lock);
-                req->rq_replay = 1;
+                req->rq_replay = req->rq_import->imp_replayable;
                 spin_unlock(&req->rq_lock);
 
                 /* pack the intent */