public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* SCSI partial completions?
@ 2003-05-08 23:57 Jeff Garzik
  2003-05-09  5:11 ` Patrick Mansfield
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Garzik @ 2003-05-08 23:57 UTC (permalink / raw)
  To: linux-scsi

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: SCSI partial completions?
  2003-05-08 23:57 SCSI partial completions? Jeff Garzik
@ 2003-05-09  5:11 ` Patrick Mansfield
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick Mansfield @ 2003-05-09  5:11 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: linux-scsi

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-09  5:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-08 23:57 SCSI partial completions? Jeff Garzik
2003-05-09  5:11 ` Patrick Mansfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox