diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-01-16 11:36:23 -0500 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-02-19 15:17:03 -0500 |
commit | 01c681d4c70d64cb72142a2823f27c4146a02e63 (patch) | |
tree | 42f55dc2338465760e4199a28ba677d960a09f7c /drivers/block/xen-blkfront.c | |
parent | 9d092603cc306ee6edfe917bf9ab8beb5f32d7bc (diff) | |
download | op-kernel-dev-01c681d4c70d64cb72142a2823f27c4146a02e63.zip op-kernel-dev-01c681d4c70d64cb72142a2823f27c4146a02e63.tar.gz |
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 preq.dev with a value from the backend.
This assignment of preq.dev with the 'handle' value is superfluous
so lets not do it.
Cc: stable@vger.kernel.org
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/block/xen-blkfront.c')
0 files changed, 0 insertions, 0 deletions