public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Mike Christie <michaelc@cs.wisc.edu>
To: Andrew Vasquez <andrew.vasquez@qlogic.com>
Cc: Linux SCSI Mailing List <linux-scsi@vger.kernel.org>,
	James Bottomley <James.Bottomley@HansenPartnership.com>,
	Seokmann Ju <seokmann.ju@qlogic.com>,
	James Smart <James.Smart@Emulex.Com>
Subject: Re: [RESEND PATCH 02/18] qla2xxx: Add	dev_loss_tmo_callbk/terminate_rport_io callback support.
Date: Fri, 11 Jul 2008 13:21:55 -0500	[thread overview]
Message-ID: <4877A4C3.6010903@cs.wisc.edu> (raw)
In-Reply-To: <20080711180437.GB55164@plap4-2.local>

Andrew Vasquez wrote:
> From: Seokmann Ju <seokmann.ju@qlogic.com>
> 
> Signed-off-by: Seokmann Ju <seokmann.ju@qlogic.com>
> Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
> ---
> 
> 	On Fri, 11 Jul 2008, Mike Christie wrote:
> 
> 	> 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);
> 	>> +	scsi_target_unblock(&rport->dev);
> 	>
> 	> I sent a patch so the unblock is always done by the fc class.
> 	> http://marc.info/?l=linux-scsi&m=121263015008613&w=2
> 	>
> 	> Could we do that instead so qlogic and emulex and all other drivers behave 
> 	> the same?
> 
> 	Sure.  Here's a recut of the patch without the explicit
> 	scsi_target_unblock().


Thanks, I think maybe your first patch should go in with this patchset 
now. Later when my patch goes in I will cleanup the unblock for you.

Well, actually I guess it is buggy either way :) I think you guys need 
it right now for when the terminate callback is called when we remove 
the port. But if the terminate callback is called for just when the fast 
io fail tmo fires, we would unblock the queue and then IO in there will 
just bounce around because when it hits the queuecommand the rport 
chkready function will just queue it back up. My patches allow us to 
fail the IO instead of having it bounce around.

JamesB and JamesS, what do you guys think of my patches? I can just do 
this one
http://marc.info/?l=linux-scsi&m=121263015008613&w=2
(but not use the DID_TRANSPORT_ values)

so that we do not hit the problem above. I will also add some 
scsi_target_unblock calls when the terminate call back is called for 
rport removal so the drivers do not have to handle in those cases too.

  reply	other threads:[~2008-07-11 18:22 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-10 23:54 [PATCH 0/18] qla2xxx: updates for 2.6.27 [8.02.01-k5] Andrew Vasquez
2008-07-10 23:55 ` [PATCH 01/18] qla2xxx: Correct locking during NVRAM manipulation Andrew Vasquez
2008-07-10 23:55 ` [PATCH 02/18] qla2xxx: Add dev_loss_tmo_callbk/terminate_rport_io callback support Andrew Vasquez
2008-07-11 17:32   ` Mike Christie
2008-07-11 18:04     ` [RESEND PATCH " Andrew Vasquez
2008-07-11 18:21       ` Mike Christie [this message]
2008-07-11 19:16         ` Andrew Vasquez
2008-07-11 18:17     ` [PATCH] fc_transport: remove explicit calls to scsi_target_unblock() from terminate_rport_io() callbacks Andrew Vasquez
2008-07-11 17:37   ` [PATCH 02/18] qla2xxx: Add dev_loss_tmo_callbk/terminate_rport_io callback support Mike Christie
2008-07-11 17:49     ` Andrew Vasquez
2008-07-10 23:55 ` [PATCH 03/18] qla2xxx: Set an rport's dev_loss_tmo value in a consistent manner Andrew Vasquez
2008-07-10 23:55 ` [PATCH 04/18] qla2xxx: Track total number of ISP aborts Andrew Vasquez
2008-07-10 23:55 ` [PATCH 05/18] qla2xxx: Add LIP count to FC-transport statistics Andrew Vasquez
2008-07-10 23:55 ` [PATCH 06/18] qla2xxx: Cleanup NPIV related functions Andrew Vasquez
2008-07-10 23:55 ` [PATCH 07/18] qla2xxx: Allow the user the option of disabling iIDMA Andrew Vasquez
2008-07-10 23:55 ` [PATCH 08/18] qla2xxx: Retrieve board serial-number and description from VPD Andrew Vasquez
2008-07-10 23:55 ` [PATCH 09/18] qla2xxx: Swap enablement order of EFT and FCE Andrew Vasquez
2008-07-10 23:55 ` [PATCH 10/18] qla2xxx: Always aquire the parent's hardware_lock Andrew Vasquez
2008-07-10 23:55 ` [PATCH 11/18] qla2xxx: Correct fcport state-management during loss Andrew Vasquez
2008-07-10 23:55 ` [PATCH 12/18] qla2xxx: Correct vport management of MBA_PORT_UPDATE Andrew Vasquez
2008-07-10 23:55 ` [PATCH 13/18] qla2xxx: Correct rport/fcport visibility-state handling during loop-resync Andrew Vasquez
2008-07-10 23:55 ` [PATCH 14/18] qla2xxx: Skip FDMI registration on ISP21xx/22xx parts Andrew Vasquez
2008-07-10 23:56 ` [PATCH 15/18] qla2xxx: Correct overflow during dump-processing on large-memory ISP23xx parts Andrew Vasquez
2008-07-10 23:56 ` [PATCH 16/18] qla2xxx: Verify the RISC is not in ROM code if firmware-load is disabled Andrew Vasquez
2008-07-10 23:56 ` [PATCH 17/18] qla2xxx: Don't hardcode fw_transfer_size for ISP2[45]xx parts Andrew Vasquez
2008-07-10 23:56 ` [PATCH 18/18] qla2xxx: Update version number to 8.02.01-k5 Andrew Vasquez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4877A4C3.6010903@cs.wisc.edu \
    --to=michaelc@cs.wisc.edu \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=James.Smart@Emulex.Com \
    --cc=andrew.vasquez@qlogic.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=seokmann.ju@qlogic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox