All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Christie <michaelc@cs.wisc.edu>
To: James Bottomley <James.Bottomley@suse.de>
Cc: linux-scsi <linux-scsi@vger.kernel.org>,
	Christoph Hellwig <hch@lst.de>,
	Mike Anderson <andmike@linux.vnet.ibm.com>
Subject: Re: [PATCH] Eliminate error handler overload of the SCSI serial number
Date: Thu, 18 Nov 2010 13:36:18 -0600	[thread overview]
Message-ID: <4CE58032.8040304@cs.wisc.edu> (raw)
In-Reply-To: <1290010257.4736.50.camel@mulgrave.site>

On 11/17/2010 10:10 AM, James Bottomley wrote:
> -static int scsi_try_to_abort_cmd(struct scsi_cmnd *scmd)
> -{
> -	/*
> -	 * scsi_done was called just after the command timed out and before
> -	 * we had a chance to process it. (db)
> -	 */
> -	if (scmd->serial_number == 0)
> -		return SUCCESS;
> -	return __scsi_try_to_abort_cmd(scmd);
> -}

Does it matter that with this patch we now call the driver's abort 
handler when the command has been added to the eh list when going 
through scsi_softirq_done-> scsi_decide_disposition returns FAILED -> 
scsi_eh_scmd_add?

It looks like most drivers will not send an abort, because they check 
something like the scsi_cmnd SCp pointer for their internal info and 
when it is not there they assume the command completed and just return 
(do some return FAILED and some return SUCCESS through). I did not check 
all drivers.

It seems like this is a really rare case that we get FAILED from 
scsi_decide_disposition so I thought it might not matter.

  parent reply	other threads:[~2010-11-18 19:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-17 16:10 [PATCH] Eliminate error handler overload of the SCSI serial number James Bottomley
2010-11-17 20:30 ` Nicholas A. Bellinger
2010-11-18 19:36 ` Mike Christie [this message]
2010-11-18 19:40   ` Mike Christie

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=4CE58032.8040304@cs.wisc.edu \
    --to=michaelc@cs.wisc.edu \
    --cc=James.Bottomley@suse.de \
    --cc=andmike@linux.vnet.ibm.com \
    --cc=hch@lst.de \
    --cc=linux-scsi@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.