vhost scsi: add lun parser helper
authorMike Christie <michael.christie@oracle.com>
Tue, 10 Nov 2020 05:33:22 +0000 (23:33 -0600)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 15 Nov 2020 22:30:55 +0000 (17:30 -0500)
commit18f1becb6948cd411fd01968a0a54af63732e73c
treeb9e20c7a7de06c97f2f6c2946748d9ddd1ce8015
parent47a3565e8bb14ec48a75b48daf57aa830e2691f8
vhost scsi: add lun parser helper

Move code to parse lun from req's lun_buf to helper, so tmf code
can use it in the next patch.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/1604986403-4931-5-git-send-email-michael.christie@oracle.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
drivers/vhost/scsi.c