Blame SOURCES/0100-imsm-remove-redundant-calls-to-imsm_get_map.patch

3c4af5
From b65c1f4a2340e24ae00babc4399fb4030ff99517 Mon Sep 17 00:00:00 2001
3c4af5
From: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
3c4af5
Date: Tue, 24 Nov 2020 15:58:53 +0100
3c4af5
Subject: [PATCH 100/108] imsm: remove redundant calls to imsm_get_map
3c4af5
3c4af5
MAP_0 is gotten and the beginning, there is no need to get it again.
3c4af5
3c4af5
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
3c4af5
---
3c4af5
 super-intel.c | 2 --
3c4af5
 1 file changed, 2 deletions(-)
3c4af5
3c4af5
diff --git a/super-intel.c b/super-intel.c
3c4af5
index 9562064..95f4eaf 100644
3c4af5
--- a/super-intel.c
3c4af5
+++ b/super-intel.c
3c4af5
@@ -8598,7 +8598,6 @@ static void imsm_set_disk(struct active_array *a, int n, int state)
3c4af5
 				break;
3c4af5
 			}
3c4af5
 			end_migration(dev, super, map_state);
3c4af5
-			map = get_imsm_map(dev, MAP_0);
3c4af5
 			map->failed_disk_num = ~0;
3c4af5
 			super->updates_pending++;
3c4af5
 			a->last_checkpoint = 0;
3c4af5
@@ -8610,7 +8609,6 @@ static void imsm_set_disk(struct active_array *a, int n, int state)
3c4af5
 				end_migration(dev, super, map_state);
3c4af5
 			else
3c4af5
 				map->map_state = map_state;
3c4af5
-			map = get_imsm_map(dev, MAP_0);
3c4af5
 			map->failed_disk_num = ~0;
3c4af5
 			super->updates_pending++;
3c4af5
 			break;
3c4af5
-- 
3c4af5
2.7.5
3c4af5