]> git.baikalelectronics.ru Git - kernel.git/commit
dm crypt: move dec_pending on error into write_io_submit
authorMilan Broz <mbroz@redhat.com>
Fri, 10 Oct 2008 12:37:06 +0000 (13:37 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 10 Oct 2008 12:37:06 +0000 (13:37 +0100)
commit161882df4eec54fa071366cab50b2be506f77d33
tree85434cd7db8ff2e8dc82f5821a9cd3b31ffeb86c
parent717d9db8838ff39fc97f5d72eab1c3e3ae0b3a9d
dm crypt: move dec_pending on error into write_io_submit

Make kcryptd_crypt_write_io_submit() responsible for decrementing
the pending count after an error.

Also fixes a bug in the async path that forgot to decrement it.

Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-crypt.c