iscsi: Emulate commands in iscsi_aio_ioctl as iscsi_ioctl
commit4bb17ab51a78c6daaaa9d6c86d1c890d24c091c4
authorFam Zheng <famz@redhat.com>
Mon, 9 Nov 2015 10:16:49 +0000 (9 18:16 +0800)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 Nov 2015 15:22:42 +0000 (12 16:22 +0100)
treeeb66992ce3f086e84a52905f1d264f9042e8350c
parentb1066c875597649be1d1d6db4712bc504b4c4c81
iscsi: Emulate commands in iscsi_aio_ioctl as iscsi_ioctl

iscsi_ioctl emulates SG_GET_VERSION_NUM and SG_GET_SCSI_ID. Now that
bdrv_ioctl() will be emulated with .bdrv_aio_ioctl, replicate the logic
into iscsi_aio_ioctl to make them consistent.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 1447064214-29930-5-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/iscsi.c