Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104248
b: refs/heads/master
c: c4e5ac0
h: refs/heads/master
v: v3
  • Loading branch information
Dan Williams authored and Neil Brown committed Jun 27, 2008
1 parent f56ce5b commit d50b7b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: 2b7497f0e0a0b9cf21d822e427d5399b2056501a
refs/heads/master: c4e5ac0a22e664eecf29249553cf16c2433f5f25
9 changes: 3 additions & 6 deletions trunk/drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ raid5_end_read_request(struct bio *bi, int error);
static void
raid5_end_write_request(struct bio *bi, int error);

static void ops_run_io(struct stripe_head *sh)
static void ops_run_io(struct stripe_head *sh, struct stripe_head_state *s)
{
raid5_conf_t *conf = sh->raid_conf;
int i, disks = sh->disks;
Expand Down Expand Up @@ -425,9 +425,7 @@ static void ops_run_io(struct stripe_head *sh)
rcu_read_unlock();

if (rdev) {
if (test_bit(STRIPE_SYNCING, &sh->state) ||
test_bit(STRIPE_EXPAND_SOURCE, &sh->state) ||
test_bit(STRIPE_EXPAND_READY, &sh->state))
if (s->syncing || s->expanding || s->expanded)
md_sync_acct(rdev->bdev, STRIPE_SECTORS);

set_bit(STRIPE_IO_STARTED, &sh->state);
Expand Down Expand Up @@ -2902,10 +2900,9 @@ static void handle_stripe5(struct stripe_head *sh)
if (pending)
raid5_run_ops(sh, pending);

ops_run_io(sh);
ops_run_io(sh, &s);

return_io(return_bi);

}

static void handle_stripe6(struct stripe_head *sh, struct page *tmp_page)
Expand Down

0 comments on commit d50b7b2

Please sign in to comment.