diff options
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r-- | drivers/md/raid5.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index cce6057b9aca..f34ad2be66a1 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -2253,6 +2253,10 @@ static int resize_stripes(struct r5conf *conf, int newsize) | |||
2253 | err = -ENOMEM; | 2253 | err = -ENOMEM; |
2254 | 2254 | ||
2255 | mutex_unlock(&conf->cache_size_mutex); | 2255 | mutex_unlock(&conf->cache_size_mutex); |
2256 | |||
2257 | conf->slab_cache = sc; | ||
2258 | conf->active_name = 1-conf->active_name; | ||
2259 | |||
2256 | /* Step 4, return new stripes to service */ | 2260 | /* Step 4, return new stripes to service */ |
2257 | while(!list_empty(&newstripes)) { | 2261 | while(!list_empty(&newstripes)) { |
2258 | nsh = list_entry(newstripes.next, struct stripe_head, lru); | 2262 | nsh = list_entry(newstripes.next, struct stripe_head, lru); |
@@ -2270,8 +2274,6 @@ static int resize_stripes(struct r5conf *conf, int newsize) | |||
2270 | } | 2274 | } |
2271 | /* critical section pass, GFP_NOIO no longer needed */ | 2275 | /* critical section pass, GFP_NOIO no longer needed */ |
2272 | 2276 | ||
2273 | conf->slab_cache = sc; | ||
2274 | conf->active_name = 1-conf->active_name; | ||
2275 | if (!err) | 2277 | if (!err) |
2276 | conf->pool_size = newsize; | 2278 | conf->pool_size = newsize; |
2277 | return err; | 2279 | return err; |