Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110636
b: refs/heads/master
c: 4e59409
h: refs/heads/master
v: v3
  • Loading branch information
Milan Broz authored and Alasdair G Kergon committed Oct 10, 2008
1 parent 3a2d4bd commit b48f9de
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 6c031f41db15b6cb0cd33545cec28ca706cd3c7e
refs/heads/master: 4e59409891c9cc30cb4d5d73250b0c968af8e39b
5 changes: 2 additions & 3 deletions trunk/drivers/md/dm-crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -719,16 +719,15 @@ static void kcryptd_crypt_write_convert(struct dm_crypt_io *io)

remaining -= clone->bi_size;

crypt_inc_pending(io);
r = crypt_convert(cc, &io->ctx);

if (atomic_dec_and_test(&io->ctx.pending)) {
/* processed, no running async crypto */
crypt_inc_pending(io);
kcryptd_crypt_write_io_submit(io, r, 0);
if (unlikely(r < 0))
break;
} else
crypt_inc_pending(io);
}

/* out of memory -> run queues */
if (unlikely(remaining)) {
Expand Down

0 comments on commit b48f9de

Please sign in to comment.