Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b4f5e34 authored by Xiang Chen's avatar Xiang Chen Committed by Greg Kroah-Hartman
Browse files

scsi: core: Fix a comment in function scsi_host_dev_release()

[ Upstream commit 2dde5c8d912efea43be94d6a83ac9cb74879fa12 ]

Commit 3be8828f ("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: default avatarXiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Stable-dep-of: be03df3d4bfe ("scsi: core: Fix a procfs host directory removal regression")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 0d59732f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -322,7 +322,7 @@ static void scsi_host_dev_release(struct device *dev)
	/* In case scsi_remove_host() has not been called. */
	/* In case scsi_remove_host() has not been called. */
	scsi_proc_hostdir_rm(shost->hostt);
	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();
	rcu_barrier();


	if (shost->tmf_work_q)
	if (shost->tmf_work_q)