summaryrefslogtreecommitdiff
path: root/drivers/scsi/hosts.c
diff options
context:
space:
mode:
authorXiang Chen <chenxiang66@hisilicon.com>2021-05-10 14:35:26 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2021-05-15 05:54:37 +0300
commit2dde5c8d912efea43be94d6a83ac9cb74879fa12 (patch)
tree3104b4b24e0cda9daea9edcb970a2ba65b8ad265 /drivers/scsi/hosts.c
parent09c65383970e79db0322962efc9e56a0785580f3 (diff)
downloadlinux-2dde5c8d912efea43be94d6a83ac9cb74879fa12.tar.xz
scsi: core: Fix a comment in function scsi_host_dev_release()
Commit 3be8828fc507 ("scsi: core: Avoid that ATA error handling can trigger a kernel hang or oops") moved rcu to scsi_cmnd instead of shost. Modify "shost->rcu" to "scmd->rcu" in a comment. Link: https://lore.kernel.org/r/1620646526-193154-1-git-send-email-chenxiang66@hisilicon.com Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/hosts.c')
-rw-r--r--drivers/scsi/hosts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
index 697c09ef259b..ba72bd4202a2 100644
--- a/drivers/scsi/hosts.c
+++ b/drivers/scsi/hosts.c
@@ -317,7 +317,7 @@ static void scsi_host_dev_release(struct device *dev)
scsi_proc_hostdir_rm(shost->hostt);
- /* Wait for functions invoked through call_rcu(&shost->rcu, ...) */
+ /* Wait for functions invoked through call_rcu(&scmd->rcu, ...) */
rcu_barrier();
if (shost->tmf_work_q)