Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312107
b: refs/heads/master
c: 650d2a0
h: refs/heads/master
i:
  312105: 0969ca6
  312103: de249c9
v: v3
  • Loading branch information
Mikulas Patocka authored and Alasdair G Kergon committed Jul 20, 2012
1 parent 76469ef commit 5fe38a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 751f188dd5ab95b3f2b5f2f467c38aae5a2877eb
refs/heads/master: 650d2a06b4fe1cc1d218c20e256650f68bf0ca31
6 changes: 5 additions & 1 deletion trunk/drivers/md/dm-thin.c
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,10 @@ static void process_discard(struct thin_c *tc, struct bio *bio)

cell_release_singleton(cell, bio);
cell_release_singleton(cell2, bio);
remap_and_issue(tc, bio, lookup_result.block);
if ((!lookup_result.shared) && pool->pf.discard_passdown)
remap_and_issue(tc, bio, lookup_result.block);
else
bio_endio(bio, 0);
}
break;

Expand Down Expand Up @@ -2628,6 +2631,7 @@ static int thin_ctr(struct dm_target *ti, unsigned argc, char **argv)
if (tc->pool->pf.discard_enabled) {
ti->discards_supported = 1;
ti->num_discard_requests = 1;
ti->discard_zeroes_data_unsupported = 1;
}

dm_put(pool_md);
Expand Down

0 comments on commit 5fe38a5

Please sign in to comment.