9f5ccc
From 147cff762b307bf60519bae4cdefc62f655119a7 Mon Sep 17 00:00:00 2001
9f5ccc
From: Pranith Kumar K <pkarampu@redhat.com>
9f5ccc
Date: Wed, 30 Oct 2019 10:47:17 +0530
9f5ccc
Subject: [PATCH 331/335] features/locks: Do special handling for op-version <
9f5ccc
 3.12.0
9f5ccc
9f5ccc
Problem:
9f5ccc
Patch https://code.engineering.redhat.com/gerrit/#/c/140080/ diverges from
9f5ccc
its upstream patch(https://review.gluster.org/c/glusterfs/+/20031) in op-version.
9f5ccc
On upstream special-handling happens for version < 3.10.0 whereas for downstream
9f5ccc
special-handling happens for version < 3.12.0.
9f5ccc
    When rebase happened for 3.5.0 from upstream, this downstream specific change
9f5ccc
is missed as there was no special downstream-only patch tracking this difference.
9f5ccc
This leads to I/O errors on upgrade from 3.3.1->3.5.0
9f5ccc
9f5ccc
Fix:
9f5ccc
Do special handling for op-version < 3.12.0 as in 3.4.x
9f5ccc
9f5ccc
Change-Id: I72fec058bdfb3cd30d017d205c90aa61aec86c5d
9f5ccc
Label: DOWNSTREAM ONLY
9f5ccc
BUG: 1766640
9f5ccc
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
9f5ccc
Reviewed-on: https://code.engineering.redhat.com/gerrit/185835
9f5ccc
Reviewed-by: Xavi Hernandez Juan <xhernandez@redhat.com>
9f5ccc
---
9f5ccc
 xlators/features/locks/src/posix.c | 2 +-
9f5ccc
 1 file changed, 1 insertion(+), 1 deletion(-)
9f5ccc
9f5ccc
diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c
9f5ccc
index 9db5ac6..4592240 100644
9f5ccc
--- a/xlators/features/locks/src/posix.c
9f5ccc
+++ b/xlators/features/locks/src/posix.c
9f5ccc
@@ -57,7 +57,7 @@ fetch_pathinfo(xlator_t *, inode_t *, int32_t *, char **);
9f5ccc
     do {                                                                       \
9f5ccc
         pl_local_t *__local = NULL;                                            \
9f5ccc
         if (frame->root->client &&                                             \
9f5ccc
-            (frame->root->client->opversion < GD_OP_VERSION_3_10_0)) {         \
9f5ccc
+            (frame->root->client->opversion < GD_OP_VERSION_3_12_0)) {         \
9f5ccc
             __local = frame->local;                                            \
9f5ccc
             PL_STACK_UNWIND_AND_FREE(__local, fop, frame, op_ret, params);     \
9f5ccc
         } else {                                                               \
9f5ccc
-- 
9f5ccc
1.8.3.1
9f5ccc