Re: evaluation of scsi_cmnd->resid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux