ia64/xen-unstable

changeset 12513:f0ba459065d3

[BLKTAP] fix race between ufe_ring and blk_ring in blktap.c

Signed-off-by: Jake Wires <jwires@xensource.com>
author Jake Wires <jwires@xensource.com>
date Thu Nov 16 18:47:28 2006 -0800 (2006-11-16)
parents f1d2860c5137
children c5538dc68542 0bbc1e003ef2
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 Nov 17 17:57:49 2006 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c	Thu Nov 16 18:47:28 2006 -0800
     1.3 @@ -1059,9 +1059,9 @@ static int blktap_read_ufe_ring(tap_blki
     1.4  			map[offset] = NULL;
     1.5  		}
     1.6  		fast_flush_area(pending_req, pending_idx, usr_idx, info->minor);
     1.7 +		info->idx_map[usr_idx] = INVALID_REQ;
     1.8  		make_response(blkif, pending_req->id, res.operation,
     1.9  			      res.status);
    1.10 -		info->idx_map[usr_idx] = INVALID_REQ;
    1.11  		blkif_put(pending_req->blkif);
    1.12  		free_req(pending_req);
    1.13  	}