Skip to contentSkip to conversation

: Kill bogus fast_flush_area

BLKTAP Herbert Xu 1 participant 1 message Oct 20, 2006

lore
Share & tools
lore

Herbert Xu

author
#0 lore raw

Hi Keir:

[BLKTAP]: Kill bogus fast_flush_area

The function dispatch_rw_block_io may call fast_flush_area even before a pending request has been initialised. This patch deletes that call.

Cheers,

Signature · 18 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
diff -r 4c40bed66ade linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c
--- a/linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c	Thu Oct 19 22:05:07 2006 +0100
+++ b/linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c	Fri Oct 20 14:34:40 2006 +1000
@@ -1129,7 +1129,8 @@ static void dispatch_rw_block_io(blkif_t
 	uint16_t mmap_idx = pending_req->mem_idx;
 
 	/*Check we have space on user ring - should never fail*/
-	if(usr_idx == INVALID_REQ) goto fail_flush;
+	if (usr_idx == INVALID_REQ)
+		goto fail_response;
 	
 	/* Check that number of segments is sane. */
 	nseg = req->nr_segments;