[SCSI] libfc: do not log off rports before or after discovery
authorJoe Eykholt <jeykholt@cisco.com>
Tue, 25 Aug 2009 21:02:11 +0000 (14:02 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 10 Sep 2009 17:07:48 +0000 (12:07 -0500)
commit0f6c6149870e03c722af6eae406758b28cb71320
tree7dca629255539d73bd44fea4fb50a9c0a9ddd079
parent8025b5db7e10cd90cadec940cc766be3bbda65e8
[SCSI] libfc: do not log off rports before or after discovery

When receiving an RSCN, do not log off all rports.  This is
extremely disruptive.  If, after the GPN_FT response, some
rports haven't been listed, delete them.

Add field disc_id to structs fc_rport_priv and fc_disc.
disc_id is an arbitrary serial number used to identify the
rports found by the latest discovery.  This eliminates the need
to go through the rport list when restarting discovery.

Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_disc.c
include/scsi/libfc.h