OSDN Git Service

vhost/scsi: Change vhost_scsi_map_to_sgl to accept iov ptr + len
authorNicholas Bellinger <nab@linux-iscsi.org>
Wed, 28 Jan 2015 21:10:51 +0000 (13:10 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 4 Feb 2015 18:55:36 +0000 (10:55 -0800)
commitb4078b5face3c1e79ef6e2dd254af04a470ed2bc
tree55692e7ced0d180fd202c2c03f740a68d69d68f3
parentde1419e42088e99f8f839710c42aec759e45de77
vhost/scsi: Change vhost_scsi_map_to_sgl to accept iov ptr + len

This patch changes vhost_scsi_map_to_sgl() parameters to accept virtio
iovec ptr + len when determing pages_nr.

This is currently done with iov_num_pages() -> PAGE_ALIGN, so allow
the same parameters as well.

Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/vhost/scsi.c