ia64/xen-unstable

changeset 11909:bb76521fdcb3

[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.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
author kfraser@localhost.localdomain
date Fri Oct 20 09:24:26 2006 +0100 (2006-10-20)
parents 1467ae662228
children 068aed15496d
files linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c	Fri Oct 20 09:22:58 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c	Fri Oct 20 09:24:26 2006 +0100
     1.3 @@ -1128,9 +1128,10 @@ static void dispatch_rw_block_io(blkif_t
     1.4  	int usr_idx = GET_NEXT_REQ(info->idx_map);
     1.5  	uint16_t mmap_idx = pending_req->mem_idx;
     1.6  
     1.7 -	/*Check we have space on user ring - should never fail*/
     1.8 -	if(usr_idx == INVALID_REQ) goto fail_flush;
     1.9 -	
    1.10 +	/* Check we have space on user ring - should never fail. */
    1.11 +	if (usr_idx == INVALID_REQ)
    1.12 +		goto fail_response;
    1.13 +
    1.14  	/* Check that number of segments is sane. */
    1.15  	nseg = req->nr_segments;
    1.16  	if ( unlikely(nseg == 0) ||