diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2022-03-10 23:48:20 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2022-03-10 23:48:20 +0000 |
| commit | 9c7a4875bce9d0f8308f92a816abf36af8551914 (patch) | |
| tree | 6765fbbe81d1082657486409d9b580cf58da99a9 /sys/dev | |
| parent | 4965ac059da1ff7f3dac8f9556dd82c619063105 (diff) | |
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/iscsi/iscsi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/iscsi/iscsi.c b/sys/dev/iscsi/iscsi.c index c97bfaf0e6c5..7ac600efdddc 100644 --- a/sys/dev/iscsi/iscsi.c +++ b/sys/dev/iscsi/iscsi.c @@ -1309,7 +1309,7 @@ iscsi_pdu_handle_r2t(struct icl_pdu *response) bhsdo->bhsdo_datasn = htonl(datasn); bhsdo->bhsdo_buffer_offset = htonl(off); error = icl_pdu_append_data(request, csio->data_ptr + off, len, - M_NOWAIT); + M_NOWAIT | ICL_NOCOPY); if (error != 0) { ISCSI_SESSION_WARN(is, "failed to allocate memory; " "reconnecting"); @@ -2427,7 +2427,8 @@ iscsi_action_scsiio(struct iscsi_session *is, union ccb *ccb) len = is->is_conn->ic_max_send_data_segment_length; } - error = icl_pdu_append_data(request, csio->data_ptr, len, M_NOWAIT); + error = icl_pdu_append_data(request, csio->data_ptr, len, + M_NOWAIT | ICL_NOCOPY); if (error != 0) { iscsi_outstanding_remove(is, io); icl_pdu_free(request); |
