File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2409,6 +2409,10 @@ static int resize_stripes(struct r5conf *conf, int newsize)
2409
2409
err = - ENOMEM ;
2410
2410
2411
2411
mutex_unlock (& conf -> cache_size_mutex );
2412
+
2413
+ conf -> slab_cache = sc ;
2414
+ conf -> active_name = 1 - conf -> active_name ;
2415
+
2412
2416
/* Step 4, return new stripes to service */
2413
2417
while (!list_empty (& newstripes )) {
2414
2418
nsh = list_entry (newstripes .next , struct stripe_head , lru );
@@ -2426,8 +2430,6 @@ static int resize_stripes(struct r5conf *conf, int newsize)
2426
2430
}
2427
2431
/* critical section pass, GFP_NOIO no longer needed */
2428
2432
2429
- conf -> slab_cache = sc ;
2430
- conf -> active_name = 1 - conf -> active_name ;
2431
2433
if (!err )
2432
2434
conf -> pool_size = newsize ;
2433
2435
return err ;
You can’t perform that action at this time.
0 commit comments