On 11/26/09 15:27, Hannes Reinecke wrote:
Gerd Hoffmann wrote:
sd_done() tries to figure how many sectors it actually got for serious
errors.  I don't feel signaling "medium error" for the first sector
behind our limit just because we'd like to have smaller requests.

scsi_end_request is being called with the number of bytes _actually processed_,
which might be less than the number of bytes requested.
And the remainder will be retried by the upper layers.

The "number of bytes _actually processed_" must come from somewhere. And that somewhere is sd_done() in case of scsi-disks. See my point now?

cheers,
  Gerd


Reply via email to