[Open-FCoE] Few persistent errors/crashes on Initiator duringinitialization and Data IO

Dev, Vasu vasu.dev at intel.com
Fri Sep 26 21:11:42 UTC 2008


>-----Original Message-----
>From: devel-bounces at open-fcoe.org [mailto:devel-bounces at open-fcoe.org]
On
>Behalf Of Vandana Salve
>Sent: Thursday, September 25, 2008 10:36 PM
>To: devel at open-fcoe.org
>Subject: [Open-FCoE] Few persistent errors/crashes on Initiator
>duringinitialization and Data IO
>
>Hi,
>
>We are persistently getting few crashes and errors on initiator
(re-arch
>code base kernel-2.6.27-rc5) such as
>
>1. LUN Reset command failing
>2. ABORT command failing
>3. fc_fcp_rec_error/ fc_fcp_lock_pkt Invalid scsi cmd pointer on fcp
packet

The rec handling still needs some bug fixes followed by messed up abort
and srr handling once rec bug occurred. If you need an urgent fix, then
you can work around these errors by skipping rec handling by apply below
patch.

diff --git a/drivers/scsi/libfc/fc_rport.c
b/drivers/scsi/libfc/fc_rport.c
index f9ede2c..c6895d2 100644
--- a/drivers/scsi/libfc/fc_rport.c
+++ b/drivers/scsi/libfc/fc_rport.c
@@ -107,7 +107,7 @@ static struct fc_rport *fc_remote_port_create(struct
fc_lport *lp,
        rp->local_port = lp;
        rp->e_d_tov = lp->e_d_tov;
        rp->r_a_tov = lp->r_a_tov;
-       rp->flags = FC_RP_FLAGS_REC_SUPPORTED;
+       rp->flags = 0;
        INIT_DELAYED_WORK(&rp->retry_work, fc_rport_timeout);


If you still see abort issues after rec is disabled then let the mail
list know with more details on abort errors (series of frames in
wireshark) with current rearch tip having recent bug fixes in abort
handling.

<snip>

>Sep 25 11:01:44 localhost kernel: fc_lun_reset lun reset failed
>Sep 25 11:01:44 localhost kernel: ------------[ cut here ]------------
>Sep 25 11:01:44 localhost kernel: WARNING: at
>include/scsi/libfc/libfc.h:489

It appears you are not using latest tip since lport lock warn on is
supposed to be on line #495. This warning should get fixed by pending
lport locking patches. However likely this warning won't cause crash
after skiping rec or you won't hit to lun reset frequently.



More information about the devel mailing list