Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110634
b: refs/heads/master
c: 1e37bb8
h: refs/heads/master
v: v3
  • Loading branch information
Alasdair G Kergon committed Oct 10, 2008
1 parent dec0327 commit ffdb216
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: fc5a5e9aa878f86642c962b309f793fb2db0727e
refs/heads/master: 1e37bb8e557a186d327eb4d1387953880ffc2cdd
9 changes: 5 additions & 4 deletions trunk/drivers/md/dm-crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,10 +685,8 @@ static void kcryptd_crypt_write_io_submit(struct dm_crypt_io *io,

if (async)
kcryptd_queue_io(io);
else {
crypt_inc_pending(io);
else
generic_make_request(clone);
}
}

static void kcryptd_crypt_write_convert(struct dm_crypt_io *io)
Expand Down Expand Up @@ -724,9 +722,12 @@ static void kcryptd_crypt_write_convert(struct dm_crypt_io *io)

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))
if (unlikely(r < 0)) {
crypt_dec_pending(io);
break;
}
} else
crypt_inc_pending(io);

Expand Down

0 comments on commit ffdb216

Please sign in to comment.