From: Tejun Heo <tj@kernel.org>
To: Jeff Garzik <jeff@garzik.org>
Cc: linux-ide@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
linux-scsi@vger.kernel.org
Subject: Re: [PATCH] libata: 'done' related SCSI cleanups
Date: Thu, 18 Nov 2010 10:27:20 +0100 [thread overview]
Message-ID: <4CE4F178.8030807@kernel.org> (raw)
In-Reply-To: <20101118040412.GA20168@havoc.gtf.org>
Hello, Jeff.
On 11/18/2010 05:04 AM, Jeff Garzik wrote:
>
> Checked this into #upstream...
>
> We cannot easily remove 'scsidone' pointer from struct ata_queued_cmd,
> because of the following code in __ata_eh_qc_complete():
>
> static void ata_eh_scsidone(struct scsi_cmnd *scmd)
> {
> /* nada */
> }
>
> ...
>
> spin_lock_irqsave(ap->lock, flags);
> qc->scsidone = ata_eh_scsidone;
> __ata_qc_complete(qc);
> spin_unlock_irqrestore(ap->lock, flags);
>
> scsi_eh_finish_cmd(scmd, &ap->eh_done_q);
>
> I guess we're avoiding scsi_eh_done() here, Tejun?
No, we're avoiding the usual scsi_done() as after EH they're done by
scsi_eh_flush_done_q(). We can factor out ata_scsi_qc_complete() and
atapi_qc_complete() and create EH variants which don't call ->scsidone
but I'm not sure that would worth the hassle.
Thank you.
--
tejun
prev parent reply other threads:[~2010-11-18 9:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-18 4:04 [PATCH] libata: 'done' related SCSI cleanups Jeff Garzik
2010-11-18 9:27 ` Tejun Heo [this message]
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=4CE4F178.8030807@kernel.org \
--to=tj@kernel.org \
--cc=jeff@garzik.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).