qla2x00t: Port to Linux kernel v5.15

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9593 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2021-11-03 14:29:35 +00:00
parent 8a2352239b
commit 193e63d118
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1875,7 +1875,7 @@ static void qla25xx_set_que(srb_t *sp, struct rsp_que **rsp)
{
struct scsi_cmnd *cmd = GET_CMD_SP(sp);
struct qla_hw_data *ha = sp->fcport->vha->hw;
int affinity = scst_blk_rq_cpu(cmd->request);
int affinity = scst_blk_rq_cpu(scsi_cmd_to_rq(cmd));
if (ha->flags.cpu_affinity_enabled && affinity >= 0 &&
affinity < ha->max_rsp_queues - 1)
+1 -1
View File
@@ -1146,7 +1146,7 @@ __qla2xxx_eh_generic_reset(char *name, enum nexus_wait_type type,
}
err = 2;
if (do_reset(fcport, cmd->device->lun,
scst_blk_rq_cpu(cmd->request) + 1)
scst_blk_rq_cpu(scsi_cmd_to_rq(cmd)) + 1)
!= QLA_SUCCESS) {
ql_log(ql_log_warn, vha, 0x800c,
"do_reset failed for cmd=%p.\n", cmd);