]> git.baikalelectronics.ru Git - kernel.git/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)
commitfc2d74aac24d100c50d26968d55c9a4d79748355
treed237ba28380ff9d6fccb966463bca2bcfecbc509
parent0da89faa6546f8b57ed5df596760e4f7dd1511d3
[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