Commit 053c16ac authored by Jaegeuk Kim's avatar Jaegeuk Kim Committed by Martin K. Petersen
Browse files

scsi: ufs: core: Add missing host_lock in ufshcd_vops_setup_xfer_req()

This patch adds a host_lock which existed before on

Fixes: a45f9371

 ("scsi: ufs: Optimize host lock on transfer requests send/compl paths")
Cc: Stanley Chu <>
Cc: Can Guo <>
Cc: Bean Huo <>
Cc: Bart Van Assche <>
Cc: Asutosh Das <>
Reviewed-by: default avatarBart Van Assche <>
Signed-off-by: default avatarJaegeuk Kim <>
Signed-off-by: default avatarMartin K. Petersen <>
parent aa0dc6a7
......@@ -1229,8 +1229,13 @@ static inline int ufshcd_vops_pwr_change_notify(struct ufs_hba *hba,
static inline void ufshcd_vops_setup_xfer_req(struct ufs_hba *hba, int tag,
bool is_scsi_cmd)
if (hba->vops && hba->vops->setup_xfer_req)
return hba->vops->setup_xfer_req(hba, tag, is_scsi_cmd);
if (hba->vops && hba->vops->setup_xfer_req) {
unsigned long flags;
spin_lock_irqsave(hba->host->host_lock, flags);
hba->vops->setup_xfer_req(hba, tag, is_scsi_cmd);
spin_unlock_irqrestore(hba->host->host_lock, flags);
static inline void ufshcd_vops_setup_task_mgmt(struct ufs_hba *hba,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment