Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110114
b: refs/heads/master
c: b01cd5a
h: refs/heads/master
v: v3
  • Loading branch information
Mikulas Patocka authored and Alasdair G Kergon committed Oct 1, 2008
1 parent e13153a commit b321de4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5037108acd4dc40c210321cc83b0bf8352eda95a
refs/heads/master: b01cd5ac43b00c49759c126c21e7d22c7e80b245
3 changes: 3 additions & 0 deletions trunk/drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,8 @@ static int dm_merge_bvec(struct request_queue *q,
goto out;

ti = dm_table_find_target(map, bvm->bi_sector);
if (!dm_target_is_valid(ti))
goto out_table;

/*
* Find maximum amount of I/O that won't need splitting
Expand All @@ -861,6 +863,7 @@ static int dm_merge_bvec(struct request_queue *q,
if (max_size && ti->type->merge)
max_size = ti->type->merge(ti, bvm, biovec, max_size);

out_table:
dm_table_put(map);

out:
Expand Down

0 comments on commit b321de4

Please sign in to comment.