diff mbox series

scsi: Fix a comment in function scsi_host_dev_release()

Message ID 1620646526-193154-1-git-send-email-chenxiang66@hisilicon.com
State New
Headers show
Series scsi: Fix a comment in function scsi_host_dev_release() | expand

Commit Message

chenxiang May 10, 2021, 11:35 a.m. UTC
From: Xiang Chen <chenxiang66@hisilicon.com>

After the patch (3be8828fc507 ("scsi: core: Avoid that ATA error handling 
can trigger a kernel hang or oops")), it uses rcu to scsi_cmnd instead 
of shost, so modify "shost->rcu" to "scmd->rcu" in a comment.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
---
 drivers/scsi/hosts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Martin K. Petersen May 15, 2021, 2:50 a.m. UTC | #1
chenxiang,

> After the patch (3be8828fc507 ("scsi: core: Avoid that ATA error

> handling can trigger a kernel hang or oops")), it uses rcu to

> scsi_cmnd instead of shost, so modify "shost->rcu" to "scmd->rcu" in a

> comment.


Applied to 5.14/scsi-staging, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering
diff mbox series

Patch

diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
index 697c09e..ba72bd4 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)