Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154253
b: refs/heads/master
c: 647c7db
h: refs/heads/master
i:
  154251: d9fb3dd
v: v3
  • Loading branch information
Mikulas Patocka authored and Alasdair G Kergon committed Jun 22, 2009
1 parent 449b409 commit 28ede4f
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 374bf7e7f6cc38b0483351a2029a97910eadde1b
refs/heads/master: 647c7db14ef9cacc4ccb3683e206b61f0de6dc2b
8 changes: 8 additions & 0 deletions trunk/drivers/md/dm-crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1132,6 +1132,7 @@ static int crypt_ctr(struct dm_target *ti, unsigned int argc, char **argv)
goto bad_crypt_queue;
}

ti->num_flush_requests = 1;
ti->private = cc;
return 0;

Expand Down Expand Up @@ -1189,6 +1190,13 @@ static int crypt_map(struct dm_target *ti, struct bio *bio,
union map_info *map_context)
{
struct dm_crypt_io *io;
struct crypt_config *cc;

if (unlikely(bio_empty_barrier(bio))) {
cc = ti->private;
bio->bi_bdev = cc->dev->bdev;
return DM_MAPIO_REMAPPED;
}

io = crypt_io_alloc(ti, bio, bio->bi_sector - ti->begin);

Expand Down

0 comments on commit 28ede4f

Please sign in to comment.