From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Christie Subject: Re: [PATCH 02/18] qla2xxx: Add dev_loss_tmo_callbk/terminate_rport_io callback support. Date: Fri, 11 Jul 2008 12:37:21 -0500 Message-ID: <48779A51.5070403@cs.wisc.edu> References: <20080710235458.GQ29099@plap4-2.local> <1215734163-40825-2-git-send-email-andrew.vasquez@qlogic.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from sabe.cs.wisc.edu ([128.105.6.20]:48742 "EHLO sabe.cs.wisc.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753638AbYGKRha (ORCPT ); Fri, 11 Jul 2008 13:37:30 -0400 In-Reply-To: <1215734163-40825-2-git-send-email-andrew.vasquez@qlogic.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Andrew Vasquez Cc: Linux SCSI Mailing List , James Bottomley , Seokmann Ju Andrew Vasquez wrote: > +static void > +qla2x00_terminate_rport_io(struct fc_rport *rport) > +{ > + fc_port_t *fcport = *(fc_port_t **)rport->dd_data; > + > + qla2x00_abort_fcport_cmds(fcport); Hey, I was also wondering how we get commands still in the driver at this point? I was doing some testing on my patches and could not hit it. Does it only occur with things like tape commands or what type of errors would block/remove the rport but not end up failing the commands at the time the error is detected? Like with the CS_TIMEOUT case I hit here http://marc.info/?l=linux-scsi&m=121263015108620&w=2 the IO is failed right away, so when I got to where the terminate callback is called there was no IO in the driver. Thanks.