]> git.baikalelectronics.ru Git - kernel.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)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 18 Mar 2013 20:31:22 +0000 (16:31 -0400)
commite7a348b52b7ebc5c119de2bcc9760c548e1849e9
tree741db5f87eb16bc381bb171f96aac92e55b9c784
parentf00201c3f7f597343394653d9b5d55ffbc6dc60f
xen-blkback: fix dispatch_rw_block_io() error path

Commit 41e995b ("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.

CC: stable@vger.kernel.org
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/blkback.c