Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110635
b: refs/heads/master
c: 6c031f4
h: refs/heads/master
i:
  110633: dec0327
  110631: 22d8c0c
v: v3
  • Loading branch information
Milan Broz authored and Alasdair G Kergon committed Oct 10, 2008
1 parent ffdb216 commit 3a2d4bd
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: 1e37bb8e557a186d327eb4d1387953880ffc2cdd
refs/heads/master: 6c031f41db15b6cb0cd33545cec28ca706cd3c7e
5 changes: 2 additions & 3 deletions trunk/drivers/md/dm-crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@ static void kcryptd_crypt_write_io_submit(struct dm_crypt_io *io,
crypt_free_buffer_pages(cc, clone);
bio_put(clone);
io->error = -EIO;
crypt_dec_pending(io);
return;
}

Expand Down Expand Up @@ -724,10 +725,8 @@ static void kcryptd_crypt_write_convert(struct dm_crypt_io *io)
/* processed, no running async crypto */
crypt_inc_pending(io);
kcryptd_crypt_write_io_submit(io, r, 0);
if (unlikely(r < 0)) {
crypt_dec_pending(io);
if (unlikely(r < 0))
break;
}
} else
crypt_inc_pending(io);

Expand Down

0 comments on commit 3a2d4bd

Please sign in to comment.