]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
iscsi: Use ICL_NOCOPY for SCSI command immediate data and R2T.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 10 Mar 2022 23:48:20 +0000 (15:48 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 11 May 2022 20:50:26 +0000 (13:50 -0700)
commit94b27fc812d1e6c635a50a757f6c35533ae37a74
tree53a50ac29d7940cf18300e5b18abffd5e278bf8b
parentc1ccbc7f518e4e3c54ea4acd2d217c0ce5f6a13c
iscsi: Use ICL_NOCOPY for SCSI command immediate data and R2T.

The associated csio ccb will not be completed via xpt_done() until
after the associated PDUs are transmitted to the other side and either
the original PDU is acked with a SCSI response, or a response is
received for a subsequent abort CCB (which means the earlier PDU has
also been sent since it would have been sent before the abort PDU).

This does assume that once an I/O request has been aborted, no further
PDUs with data payload are queued for that I/O request.

Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D34405

(cherry picked from commit 9c7a4875bce9d0f8308f92a816abf36af8551914)
sys/dev/iscsi/iscsi.c