Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280501
b: refs/heads/master
c: 995c427
h: refs/heads/master
i:
  280499: c160e1d
v: v3
  • Loading branch information
NeilBrown committed Dec 22, 2011
1 parent ebb27ed commit 22b922a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 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: ede7ee8b4d007f308aa033be676b1a048f99e9db
refs/heads/master: 995c4275a7e14b8752f301e4570831a108ae4303
9 changes: 1 addition & 8 deletions trunk/drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,10 +574,7 @@ static void ops_run_io(struct stripe_head *sh, struct stripe_head_state *s)
atomic_inc(&sh->count);
bi->bi_sector = sh->sector + rdev->data_offset;
bi->bi_flags = 1 << BIO_UPTODATE;
bi->bi_vcnt = 1;
bi->bi_max_vecs = 1;
bi->bi_idx = 0;
bi->bi_io_vec = &sh->dev[i].vec;
bi->bi_io_vec[0].bv_len = STRIPE_SIZE;
bi->bi_io_vec[0].bv_offset = 0;
bi->bi_size = STRIPE_SIZE;
Expand Down Expand Up @@ -1720,12 +1717,8 @@ static void raid5_build_block(struct stripe_head *sh, int i, int previous)
dev->req.bi_io_vec = &dev->vec;
dev->req.bi_vcnt++;
dev->req.bi_max_vecs++;
dev->vec.bv_page = dev->page;
dev->vec.bv_len = STRIPE_SIZE;
dev->vec.bv_offset = 0;

dev->req.bi_sector = sh->sector;
dev->req.bi_private = sh;
dev->vec.bv_page = dev->page;

dev->flags = 0;
dev->sector = compute_blocknr(sh, i, previous);
Expand Down

0 comments on commit 22b922a

Please sign in to comment.