linux/drivers/scsi/libfc
Ross Lagerwall d8f6382a7d Revert "scsi: libfc: Add WARN_ON() when deleting rports"
This reverts commit bbc0f8bd88.

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>
2019-02-04 22:17:33 -05:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fc_disc.c scsi: libfc: hold disc_mutex in fc_disc_stop_rports() 2018-07-12 23:01:16 -04:00
fc_elsct.c scsi: libfc: Replace ->exch_seq_send callback with function call 2016-11-08 17:29:55 -05:00
fc_exch.c scsi: libfc: Don't have fc_exch_find log errors on a new exchange 2016-11-08 17:29:58 -05:00
fc_fcp.c scsi: libfc: remove set but not used variable 'rpriv' 2018-09-11 20:59:11 -04:00
fc_frame.c [SCSI] libfc, fcoe, bnx2fc: cleanup fcoe_dev_stats 2012-07-20 08:31:47 +01:00
fc_libfc.c networking: convert many more places to skb_put_zero() 2017-06-16 11:48:35 -04:00
fc_libfc.h libfc, libfcoe, fcoe: Convert debug_logging macros to pr_info 2012-12-14 10:38:55 -08:00
fc_lport.c scsi: libfc: free skb when receiving invalid flogi resp 2019-01-29 01:19:25 -05:00
fc_npiv.c libfc: Use the correct function name in kernel-doc comment. 2015-11-09 17:15:52 -08:00
fc_rport.c Revert "scsi: libfc: Add WARN_ON() when deleting rports" 2019-02-04 22:17:33 -05:00