Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 651455

Summary: scsi_transport_fc: fc_user_scan can loop forever, needs mutex with rport list changes [rhel-5.3.z]
Product: Red Hat Enterprise Linux 5 Reporter: RHEL Program Management <pm-rhel>
Component: kernelAssignee: Jiri Pirko <jpirko>
Status: CLOSED ERRATA QA Contact: Gris Ge <fge>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.3CC: bdonahue, coughlan, cward, dhoward, dmilburn, dswegen, dzickus, fge, jpirko, jtluka, kzhang, mgoodwin, moshiro, pbenas, pm-eus, rkhan, tao
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel-2.6.18-128.28.1.el5 Doc Type: Bug Fix
Doc Text:
Due to an error in the scsi_transport_fc module, an SCSI scan could get stuck in an infinite loop. With this update, an upstream patch has been applied to resolve this issue, and SCSI scans are now finished as expected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-13 08:19:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 515176    
Bug Blocks:    

Description RHEL Program Management 2010-11-09 15:57:35 UTC
This bug has been copied from bug #515176 and has been proposed
to be backported to 5.3 z-stream (EUS).

Comment 3 Jiri Pirko 2010-12-01 23:16:02 UTC
in kernel-2.6.18-128.28.1.el5

linux-2.6-scsi-scsi_transport_fc-fc_user_scan-correction.patch

Comment 9 Gris Ge 2011-01-05 04:33:04 UTC
Still cannot reproduce this issue.

I changed the zoning configure which present 3 rports (path) to host.
Then performing continuous rescan with 1s interval:
echo "- - -" >/sys/class/scsi_host/host4/scan
echo "- - -" >/sys/class/scsi_host/host5/scan

During the rescan, I add a zone into a zoneset which present a new rport to host.
Host successfully found the new path and add the new scsi device.

I have performed 2435 times rescan, but none of them went loop forever.

I will keep this one as Sanity Only until we got detailed and practicable reproduce step.

Comment 10 Jaromir Hradilek 2011-01-12 14:43:54 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Due to an error in the scsi_transport_fc module, an SCSI scan could get stuck in an infinite loop. With this update, an upstream patch has been applied to resolve this issue, and SCSI scans are now finished as expected.

Comment 12 errata-xmlrpc 2011-01-13 08:19:14 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0140.html