From: Patrick Mansfield <patmans@us.ibm.com>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: SCSI partial completions?
Date: Thu, 8 May 2003 22:11:35 -0700 [thread overview]
Message-ID: <20030508221135.B28525@beaverton.ibm.com> (raw)
In-Reply-To: <3EBAEEE8.6070201@pobox.com>; from jgarzik@pobox.com on Thu, May 08, 2003 at 07:57:28PM -0400
On Thu, May 08, 2003 at 07:57:28PM -0400, Jeff Garzik wrote:
> I could have sworn I saw some code in drivers/scsi/scsi*.c that implied
> partial completions were supported.
>
> Let's imagine that I receive a Scsi_Cmnd that wants to write N sectors.
> Time passes, my error handler kicks in, and I realize that I was only
> able to write N/2 sectors.
>
> How do I tell the SCSI layer that N/2 sectors were written successfully?
>
> Thanks,
>
> Jeff
Like the sd.c code for handling MEDIUM_ERROR? And corresponding code in
scsi_io_completion, where we call scsi_end_request() with requeue (the last
argument) set to 1.
-- Patrick Mansfield
prev parent reply other threads:[~2003-05-09 5:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-08 23:57 SCSI partial completions? Jeff Garzik
2003-05-09 5:11 ` Patrick Mansfield [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=20030508221135.B28525@beaverton.ibm.com \
--to=patmans@us.ibm.com \
--cc=jgarzik@pobox.com \
--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