Skip to content
Snippets Groups Projects
  • Hannes Reinecke's avatar
    a108557b
    scsi: inline sg_io_sense_from_errno() into the callers. · a108557b
    Hannes Reinecke authored
    
    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: default avatarHannes Reinecke <hare@suse.de>
    Message-Id: <20201116184041.60465-7-hare@suse.de>
    [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: default avatarPaolo Bonzini <pbonzini@redhat.com>
    a108557b
    History
    scsi: inline sg_io_sense_from_errno() into the callers.
    Hannes Reinecke authored
    
    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: default avatarHannes Reinecke <hare@suse.de>
    Message-Id: <20201116184041.60465-7-hare@suse.de>
    [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: default avatarPaolo Bonzini <pbonzini@redhat.com>