Commit 01c681d4 authored by Konrad Rzeszutek Wilk's avatar Konrad Rzeszutek Wilk
Browse files

xen/blkback: Don't trust the handle from the frontend.

The 'handle' is the device that the request is from. For the life-time
of the ring we copy it from a request to a response so that the frontend
is not surprised by it. But we do not need it - when we start processing
I/Os we have our own 'struct phys_req' which has only most essential
information about the request. In fact the 'vbd_translate' ends up
over-writing the with a value from the backend.

This assignment of with the 'handle' value is superfluous
so lets not do it.

Acked-by: default avatarJan Beulich <>
Acked-by: default avatarIan Campbell <>
Signed-off-by: default avatarKonrad Rzeszutek Wilk <>
parent 9d092603
......@@ -879,7 +879,6 @@ static int dispatch_rw_block_io(struct xen_blkif *blkif,
goto fail_response;
} = req->;
preq.sector_number = req->;
preq.nr_sects = 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment