]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Revert "scsi: libfc: Add WARN_ON() when deleting rports"
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Fri, 1 Feb 2019 14:42:28 +0000 (14:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:04:16 +0000 (14:04 -0700)
commit64f948e818661348585e7dea7142a594877df403
treeda9105ddb258e17a4053a66aa0ed9dc957d0c226
parentd2463c612302f1e191a010daf640aef5760eab74
Revert "scsi: libfc: Add WARN_ON() when deleting rports"

[ Upstream commit d8f6382a7d026989029e2e50c515df954488459b ]

This reverts commit bbc0f8bd88abefb0f27998f40a073634a3a2db89.

It added a warning whose intent was to check whether the rport was still
linked into the peer list. It doesn't work as intended and gives false
positive warnings for two reasons:

1) If the rport is never linked into the peer list it will not be
considered empty since the list_head is never initialized.

2) If the rport is deleted from the peer list using list_del_rcu(), then
the list_head is in an undefined state and it is not considered empty.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/libfc/fc_rport.c