Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305934
b: refs/heads/master
c: cceeca4
h: refs/heads/master
v: v3
  • Loading branch information
Shaohua Li authored and NeilBrown committed May 22, 2012
1 parent aba8c39 commit 09d01d9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5fdd2cf8265c6de0f190dea80cc4c50da8f31293
refs/heads/master: cceeca43b5ad96766098144a3fd757e03de9f6f8
4 changes: 0 additions & 4 deletions trunk/drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -3985,12 +3985,10 @@ static void make_request(struct mddev *mddev, struct bio * bi)
plugged = mddev_check_plugged(mddev);
for (;logical_sector < last_sector; logical_sector += STRIPE_SECTORS) {
DEFINE_WAIT(w);
int disks, data_disks;
int previous;

retry:
previous = 0;
disks = conf->raid_disks;
prepare_to_wait(&conf->wait_for_overlap, &w, TASK_UNINTERRUPTIBLE);
if (unlikely(conf->reshape_progress != MaxSector)) {
/* spinlock is needed as reshape_progress may be
Expand All @@ -4005,7 +4003,6 @@ static void make_request(struct mddev *mddev, struct bio * bi)
if (mddev->reshape_backwards
? logical_sector < conf->reshape_progress
: logical_sector >= conf->reshape_progress) {
disks = conf->previous_raid_disks;
previous = 1;
} else {
if (mddev->reshape_backwards
Expand All @@ -4018,7 +4015,6 @@ static void make_request(struct mddev *mddev, struct bio * bi)
}
spin_unlock_irq(&conf->device_lock);
}
data_disks = disks - conf->max_degraded;

new_sector = raid5_compute_sector(conf, logical_sector,
previous,
Expand Down

0 comments on commit 09d01d9

Please sign in to comment.