mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
[BLKTAP] fix race between ufe_ring and blk_ring in blktap.c
Signed-off-by: Jake Wires <jwires@xensource.com>
This commit is contained in:
1 parent
edd64e7966
commit
e92b61a44e
1 file changed
+1
-1
@@ -1059,9 +1059,9 @@ static int blktap_read_ufe_ring(tap_blkif_t *info)
|
||||
map[offset] = NULL;
|
||||
}
|
||||
fast_flush_area(pending_req, pending_idx, usr_idx, info->minor);
|
||||
info->idx_map[usr_idx] = INVALID_REQ;
|
||||
make_response(blkif, pending_req->id, res.operation,
|
||||
res.status);
|
||||
info->idx_map[usr_idx] = INVALID_REQ;
|
||||
blkif_put(pending_req->blkif);
|
||||
free_req(pending_req);
|
||||
}
|
||||
|
||||