From: Xiang Chen Date: Mon, 10 May 2021 11:35:26 +0000 (+0800) Subject: scsi: core: Fix a comment in function scsi_host_dev_release() X-Git-Tag: baikal/mips/sdk5.8.2~150 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=a80eb931a31efe04565edc19909ce31cdd8e5666;p=kernel.git scsi: core: Fix a comment in function scsi_host_dev_release() [ Upstream commit 729170e7be486f6f6db0f72ad710ba7652edbca8 ] Commit f0fc58cf49bb ("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 Signed-off-by: Martin K. Petersen Stable-dep-of: be03df3d4bfe ("scsi: core: Fix a procfs host directory removal regression") Signed-off-by: Sasha Levin --- diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c index b08d963013db6..d3a63961b98a9 100644 --- a/drivers/scsi/hosts.c +++ b/drivers/scsi/hosts.c @@ -322,7 +322,7 @@ static void scsi_host_dev_release(struct device *dev) /* In case scsi_remove_host() has not been called. */ 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)