]> Git Repo - qemu.git/commit - scsi/qemu-pr-helper.c
scsi: inline sg_io_sense_from_errno() into the callers.
authorHannes Reinecke <[email protected]>
Mon, 16 Nov 2020 18:40:40 +0000 (19:40 +0100)
committerPaolo Bonzini <[email protected]>
Sat, 6 Mar 2021 10:42:56 +0000 (11:42 +0100)
commita108557bbff8a3f44233982f015f996426411be8
treefbda3652f6241c5c1992fd0df3ce6e054dcff298
parent9738c657208800298a7d68272b861fb2dc49fee1
scsi: inline sg_io_sense_from_errno() into the callers.

Currently sg_io_sense_from_errno() converts the two input parameters
'errno' and 'io_hdr' into sense code and SCSI status. Having
split the function off into scsi_sense_from_errno() and
scsi_sense_from_host_status(), both of which are available generically,
we now inline the logic in the callers so that scsi-disk and
scsi-generic will be able to pass host_status to the HBA.

Signed-off-by: Hannes Reinecke <[email protected]>
Message-Id: <20201116184041[email protected]>
[Put together from "scsi-disk: Add sg_io callback to evaluate status"
 and what remains of "scsi: split sg_io_sense_from_errno() in two functions",
 with many other fixes. - Paolo]
Signed-off-by: Paolo Bonzini <[email protected]>
hw/scsi/scsi-disk.c
hw/scsi/scsi-generic.c
include/scsi/utils.h
scsi/qemu-pr-helper.c
scsi/utils.c
This page took 0.038559 seconds and 4 git commands to generate.