Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305933
b: refs/heads/master
c: 5fdd2cf
h: refs/heads/master
i:
  305931: 2fa380a
v: v3
  • Loading branch information
majianpeng authored and NeilBrown committed May 22, 2012
1 parent 7943e93 commit aba8c39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: da8840a747c0dbf49506ec906757a6b87b9741e9
refs/heads/master: 5fdd2cf8265c6de0f190dea80cc4c50da8f31293
7 changes: 4 additions & 3 deletions trunk/drivers/md/raid10.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,11 @@ static void * r10buf_pool_alloc(gfp_t gfp_flags, void *data)
while (j--)
for (i = 0; i < RESYNC_PAGES ; i++)
safe_put_page(r10_bio->devs[j].bio->bi_io_vec[i].bv_page);
j = -1;
j = 0;
out_free_bio:
while (++j < nalloc) {
bio_put(r10_bio->devs[j].bio);
for ( ; j < nalloc; j++) {
if (r10_bio->devs[j].bio)
bio_put(r10_bio->devs[j].bio);
if (r10_bio->devs[j].repl_bio)
bio_put(r10_bio->devs[j].repl_bio);
}
Expand Down

0 comments on commit aba8c39

Please sign in to comment.