Loading drivers/scsi/ufs/ufshcd.c +9 −7 Original line number Diff line number Diff line Loading @@ -2769,6 +2769,9 @@ static int ufshcd_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd) hba = shost_priv(host); if (!cmd || !cmd->request || !hba) return -EINVAL; tag = cmd->request->tag; if (!ufshcd_valid_tag(hba, tag)) { dev_err(hba->dev, Loading Loading @@ -2854,12 +2857,11 @@ static int ufshcd_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd) ufshcd_vops_pm_qos_req_start(hba, cmd->request); /* IO svc time latency histogram */ if (hba != NULL && cmd->request != NULL) { if (hba->latency_hist_enabled && (cmd->request->cmd_type == REQ_TYPE_FS)) { cmd->request->lat_hist_io_start = ktime_get(); cmd->request->lat_hist_enabled = 1; } else } else { cmd->request->lat_hist_enabled = 0; } Loading Loading
drivers/scsi/ufs/ufshcd.c +9 −7 Original line number Diff line number Diff line Loading @@ -2769,6 +2769,9 @@ static int ufshcd_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd) hba = shost_priv(host); if (!cmd || !cmd->request || !hba) return -EINVAL; tag = cmd->request->tag; if (!ufshcd_valid_tag(hba, tag)) { dev_err(hba->dev, Loading Loading @@ -2854,12 +2857,11 @@ static int ufshcd_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd) ufshcd_vops_pm_qos_req_start(hba, cmd->request); /* IO svc time latency histogram */ if (hba != NULL && cmd->request != NULL) { if (hba->latency_hist_enabled && (cmd->request->cmd_type == REQ_TYPE_FS)) { cmd->request->lat_hist_io_start = ktime_get(); cmd->request->lat_hist_enabled = 1; } else } else { cmd->request->lat_hist_enabled = 0; } Loading