iscsi: partly avoid iovec linearization in iscsi_aio_writev
commit4cc841b57c1dc91d71bafc25b53ffab4eff7959b
authorPeter Lieven <pl@dlhnet.de>
Mon, 19 Nov 2012 14:58:31 +0000 (19 15:58 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Jan 2013 14:07:03 +0000 (22 15:07 +0100)
treeb70c91057c520fce8aba483f7b794706ff37a96b
parentde8864e5ae645fc22aa4ecf1999705c2dd5cf93c
iscsi: partly avoid iovec linearization in iscsi_aio_writev

libiscsi expects all write16 data in a linear buffer. If the
iovec only contains one buffer we can skip the linearization
step as well as the additional malloc/free and pass the
buffer directly.

Reported-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/iscsi.c