diff options
| author | Simon Rettberg | 2025-11-06 20:09:45 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2025-12-09 15:33:20 +0100 |
| commit | 1dd80ab2cae549be1cefa955d9ab55647979c8ea (patch) | |
| tree | b4eee5ebeb6118cb2996cfae4e66fd0de850718c /src/server/iscsi.h | |
| parent | [SERVER] iscsi: Overhaul sending of SCSI response, and DATA-In loop (diff) | |
| download | dnbd3-1dd80ab2cae549be1cefa955d9ab55647979c8ea.tar.gz dnbd3-1dd80ab2cae549be1cefa955d9ab55647979c8ea.tar.xz dnbd3-1dd80ab2cae549be1cefa955d9ab55647979c8ea.zip | |
[SERVER] iscsi: Make iscsi_task stack-allocated
Saves another round of malloc/free calls on every request.
Diffstat (limited to 'src/server/iscsi.h')
| -rw-r--r-- | src/server/iscsi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/iscsi.h b/src/server/iscsi.h index 4e4f485..809c141 100644 --- a/src/server/iscsi.h +++ b/src/server/iscsi.h @@ -5759,10 +5759,10 @@ typedef struct iscsi_scsi_task { /// SCSI Command Descriptor Block (CDB). iscsi_scsi_cdb *cdb; - /// SCSI sense data. + /// SCSI sense data. If set, owned by this struct. iscsi_scsi_sense_data_packet *sense_data; - /// Output buffer. + /// Output buffer. If set, owned by this struct. uint8_t *buf; /// Offset in bytes in image for DATA-in command. |
