3604df
From 8294edc08de0b85eda741ba7d11e2639de8cdd84 Mon Sep 17 00:00:00 2001
3604df
From: N Balachandran <nbalacha@redhat.com>
3604df
Date: Tue, 30 May 2017 13:52:19 +0530
3604df
Subject: [PATCH 319/319] cluster/dht: Fix crash in dht_rmdir_cached_lookup_cbk
3604df
3604df
This was caused by an incorrect backport :
3604df
https://code.engineering.redhat.com/gerrit/#/c/104865
3604df
3604df
In dht_rmdir_cached_lookup_cbk
3604df
        if (is_last_call (this_call_cnt))
3604df
                dht_rmdir_do (readdirp_frame, this);
3604df
should be
3604df
        if (is_last_call (this_call_cnt))
3604df
                dht_rmdir_readdirp_do (readdirp_frame, this);
3604df
3604df
Change-Id: I7fc879a8d82e6bf2c8ad991ea79904783517d238
3604df
BUG: 1456696
3604df
Signed-off-by: N Balachandran <nbalacha@redhat.com>
3604df
Reviewed-on: https://code.engineering.redhat.com/gerrit/107638
3604df
Reviewed-by: Susant Palai <spalai@redhat.com>
3604df
---
3604df
 xlators/cluster/dht/src/dht-common.c | 2 +-
3604df
 1 file changed, 1 insertion(+), 1 deletion(-)
3604df
3604df
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
3604df
index a97294c..be8552e 100644
3604df
--- a/xlators/cluster/dht/src/dht-common.c
3604df
+++ b/xlators/cluster/dht/src/dht-common.c
3604df
@@ -8134,7 +8134,7 @@ err:
3604df
          */
3604df
 
3604df
         if (is_last_call (this_call_cnt))
3604df
-                dht_rmdir_do (readdirp_frame, this);
3604df
+                dht_rmdir_readdirp_do (readdirp_frame, this);
3604df
 
3604df
         DHT_STACK_DESTROY (frame);
3604df
         return 0;
3604df
-- 
3604df
1.8.3.1
3604df