]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xen-blkback: fix dispatch_rw_block_io() error path
authorJan Beulich <JBeulich@suse.com>
Mon, 11 Mar 2013 09:39:55 +0000 (09:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 17:04:18 +0000 (10:04 -0700)
commit2f21ae28ec704aa79dbbb912f20dd687ca0c001c
treeee8b60e8b1d33942e8446145c1bcd3aeae6d8b51
parent119016c59b6a83cf168f0f1202f2251122f0d5b3
xen-blkback: fix dispatch_rw_block_io() error path

commit 0e5e098ac22dae38f957e951b70d3cf73beff0f7 upstream.

Commit 7708992 ("xen/blkback: Seperate the bio allocation and the bio
submission") consolidated the pendcnt updates to just a single write,
neglecting the fact that the error path relied on it getting set to 1
up front (such that the decrement in __end_block_io_op() would actually
drop the count to zero, triggering the necessary cleanup actions).

Also remove a misleading and a stale (after said commit) comment.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/xen-blkback/blkback.c