public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mike Anderson <andmike@linux.vnet.ibm.com>
To: James Bottomley <James.Bottomley@suse.de>
Cc: "Nicholas A. Bellinger" <nab@linux-iscsi.org>,
	linux-scsi <linux-scsi@vger.kernel.org>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	Jeff Garzik <jeff@garzik.org>, Christoph Hellwig <hch@lst.de>
Subject: Re: [PATCH] scsi: Convert scsi_host->cmd_serial_number to odd numbered atomic_t counter
Date: Thu, 11 Nov 2010 14:36:50 -0800	[thread overview]
Message-ID: <20101111223650.GA10257@linux.vnet.ibm.com> (raw)
In-Reply-To: <1289512549.2982.44.camel@mulgrave.site>

James Bottomley <James.Bottomley@suse.de> wrote:
> On Thu, 2010-11-11 at 13:37 -0800, Nicholas A. Bellinger wrote:
> >
> >  ..snip..
> >
> > Sounds good to me, but you will recall the last attempt to make
> > scsi_cmd_get_serial() optional for the special case LLDs, that we
> > started running quickly in the legacy usage of cmd->serial_number in
> > scsi_softirq_done() and the side effects in scsi_try_to_abort_cmd(), who
> > use is complex enough that we have not found a proper resolution
> > sufficent to andmike discussed here:
> 
> Yes, that's what I meant by "eliminate the overloading of the serial
> number zero value" above.  This needs fixing before the serial number
> can be dumped for fast hba drivers.
> 

In the last email referenced below I believed that since
scsi_softirq_done is calling scsi_eh_scmd_add without the
SCSI_EH_CANCEL_CMD flag set this will stop scsi_try_to_abort_cmd from
being called. Since scsi_softirq_done is the one setting serial_number
to 0 I do not believe we can hit the serial number == 0 check in
scsi_try_to_abort_cmd anymore.

> > http://marc.info/?l=linux-scsi&m=128820726325009&w=2

-andmike
--
Michael Anderson
andmike@linux.vnet.ibm.com

  parent reply	other threads:[~2010-11-11 22:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-11 10:46 [PATCH] scsi: Convert scsi_host->cmd_serial_number to odd numbered atomic_t counter Nicholas A. Bellinger
2010-11-11 15:53 ` James Bottomley
2010-11-11 21:37   ` Nicholas A. Bellinger
2010-11-11 21:55     ` James Bottomley
2010-11-11 22:08       ` Nicholas A. Bellinger
2010-11-11 22:36       ` Mike Anderson [this message]
2010-11-17 16:10         ` James Bottomley

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=20101111223650.GA10257@linux.vnet.ibm.com \
    --to=andmike@linux.vnet.ibm.com \
    --cc=James.Bottomley@suse.de \
    --cc=hch@lst.de \
    --cc=jeff@garzik.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=nab@linux-iscsi.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox