21ab4e
From bd091bbd91555dad98d23d09977db8cb2bdddf39 Mon Sep 17 00:00:00 2001
21ab4e
From: Pranith Kumar K <pkarampu@redhat.com>
21ab4e
Date: Tue, 29 Aug 2017 11:29:33 +0530
21ab4e
Subject: [PATCH 606/613] gluster-block: strict-o-direct should be on
21ab4e
21ab4e
        Backport of https://review.gluster.org/18120
21ab4e
21ab4e
tcmu-runner is not going to open block with O_SYNC anymore
21ab4e
so writes have a chance of getting cached in write-behind
21ab4e
when that happens, there is a chance that on failover some
21ab4e
data could be stuck in cache and be lost.
21ab4e
21ab4e
 >BUG: 1485962
21ab4e
 >Change-Id: If9835d914821dfc4ff432dc96775677a55d2918f
21ab4e
 >Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
21ab4e
21ab4e
BUG: 1486115
21ab4e
Change-Id: If9835d914821dfc4ff432dc96775677a55d2918f
21ab4e
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
21ab4e
Reviewed-on: https://code.engineering.redhat.com/gerrit/116643
21ab4e
Tested-by: Prasanna Kalever <prasanna.kalever@redhat.com>
21ab4e
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
21ab4e
---
21ab4e
 extras/group-gluster-block | 1 +
21ab4e
 1 file changed, 1 insertion(+)
21ab4e
21ab4e
diff --git a/extras/group-gluster-block b/extras/group-gluster-block
21ab4e
index 82bd6ff..e94f834 100644
21ab4e
--- a/extras/group-gluster-block
21ab4e
+++ b/extras/group-gluster-block
21ab4e
@@ -4,6 +4,7 @@ performance.io-cache=off
21ab4e
 performance.stat-prefetch=off
21ab4e
 performance.open-behind=off
21ab4e
 performance.readdir-ahead=off
21ab4e
+performance.strict-o-direct=on
21ab4e
 network.remote-dio=disable
21ab4e
 cluster.eager-lock=disable
21ab4e
 cluster.quorum-type=auto
21ab4e
-- 
21ab4e
2.9.5
21ab4e