WSL2-Linux-Kernel/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
fc_disc.c scsi: libfc: hold disc_mutex in fc_disc_stop_rports() 2018-07-12 23:01:16 -04:00
fc_elsct.c
fc_exch.c
fc_fcp.c scsi: libfc: remove set but not used variable 'rpriv' 2018-09-11 20:59:11 -04:00
fc_frame.c
fc_libfc.c
fc_libfc.h
fc_lport.c scsi: libfc: free skb when receiving invalid flogi resp 2019-01-29 01:19:25 -05:00
fc_npiv.c
fc_rport.c Revert "scsi: libfc: Add WARN_ON() when deleting rports" 2019-02-04 22:17:33 -05:00