aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r--drivers/md/raid5.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index a02f35f1a796..dd0d00108a31 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -281,7 +281,8 @@ static struct stripe_head *get_active_stripe(raid5_conf_t *conf, sector_t sector
281 } else { 281 } else {
282 if (!test_bit(STRIPE_HANDLE, &sh->state)) 282 if (!test_bit(STRIPE_HANDLE, &sh->state))
283 atomic_inc(&conf->active_stripes); 283 atomic_inc(&conf->active_stripes);
284 if (list_empty(&sh->lru)) 284 if (list_empty(&sh->lru) &&
285 !test_bit(STRIPE_EXPANDING, &sh->state))
285 BUG(); 286 BUG();
286 list_del_init(&sh->lru); 287 list_del_init(&sh->lru);
287 } 288 }