]> err.no Git - linux-2.6/commit
[SCSI] scsi_transport_fc: fc_user_scan correction
authorJames Smart <James.Smart@Emulex.Com>
Thu, 24 Apr 2008 16:12:46 +0000 (12:12 -0400)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sun, 27 Apr 2008 17:19:56 +0000 (12:19 -0500)
commitbda232531f0c117921690ee3c060953c8f12e5a1
treed237ba28380ff9d6fccb966463bca2bcfecbc509
parent87c4d7bc2aaa9b782aac6ab0a74cf16f87398bbc
[SCSI] scsi_transport_fc: fc_user_scan correction

Way back when, when the fc_user_scan routine was created, it kept some
of its original logic that walked the rport list and kicked off a scan.
Unfortunately, it didn't keep any of the locking around the rport list,
nor did it consider the synchronous nature of the scan invoked. The result,
there are some scan requests where the rport list changes, thus a subsequent
scan is called on a bogus rport structure and the system NMI's.

Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/scsi_transport_fc.c