mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Do not return statuses for aborted iSCSI commands.
This commit is contained in:
parent
f5ffef352f
commit
6c7a99be9f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268392
@ -2698,6 +2698,16 @@ cfiscsi_scsi_command_done(union ctl_io *io)
|
||||
CFISCSI_SESSION_UNLOCK(cs);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Do not return status for aborted commands.
|
||||
* There are exceptions, but none supported by CTL yet.
|
||||
*/
|
||||
if (io->io_hdr.status == CTL_CMD_ABORTED) {
|
||||
ctl_free_io(io);
|
||||
icl_pdu_free(request);
|
||||
return;
|
||||
}
|
||||
|
||||
response = cfiscsi_pdu_new_response(request, M_WAITOK);
|
||||
bhssr = (struct iscsi_bhs_scsi_response *)response->ip_bhs;
|
||||
bhssr->bhssr_opcode = ISCSI_BHS_OPCODE_SCSI_RESPONSE;
|
||||
|
Loading…
Reference in New Issue
Block a user