public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Douglas Gilbert <dougg@torque.net>
To: Andreas Herrmann <aherrman@de.ibm.com>
Cc: Linux SCSI <linux-scsi@vger.kernel.org>
Subject: Re: evaluation of scsi_cmnd->resid
Date: Wed, 13 Apr 2005 07:38:47 +1000	[thread overview]
Message-ID: <425C3FE7.4040308@torque.net> (raw)
In-Reply-To: <20050412180443.GA7395@lion28.boeblingen.de.ibm.com>

Andreas Herrmann wrote:
> Hi,
> 
> Am I right in the assumption that scsi_cmnd->resid is just of use for
> requests initiated by sg?
> 
> How does the SCSI-stack handle normal (non-sg) requests for SCSI disks
> for which a scsi_cmnd->resid is set?  AFAIK, resid is ignored by
> sd. So, such requests are returned to the block layer although the
> amount of data transferred is less the amount of data that should have
> been transferred.  For FCP-drivers this means that some error situations
> cannot be handled by just using scsi_cmnd->resid.
> 
> What am I missing here?

Andreas,
sd, sr, st, ch and osst (and the mid level when it issues
SCSI commands) need to be modified to use resid.

resid is initialized to zero (by the mid level). So older
LLDs that do not set resid will not change the current
situation for the ULDs mentioned above :-)

Doug Gilbert


      reply	other threads:[~2005-04-12 21:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-12 18:04 evaluation of scsi_cmnd->resid Andreas Herrmann
2005-04-12 21:38 ` Douglas Gilbert [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=425C3FE7.4040308@torque.net \
    --to=dougg@torque.net \
    --cc=aherrman@de.ibm.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