From cb6667a5dcaebca1574824b30c7e56230a0488df Mon Sep 17 00:00:00 2001 From: Peter Lieven Date: Thu, 26 Mar 2015 17:00:20 +0100 Subject: [PATCH] drop ISCSI_PDU_URGENT_DELIVERY its not needed anymore Signed-off-by: Peter Lieven --- include/iscsi-private.h | 5 ----- lib/socket.c | 3 +-- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/include/iscsi-private.h b/include/iscsi-private.h index e9e419c..4304168 100644 --- a/include/iscsi-private.h +++ b/include/iscsi-private.h @@ -229,11 +229,6 @@ struct iscsi_pdu { #define ISCSI_PDU_DROP_ON_RECONNECT 0x00000004 /* stop sending after this PDU has been sent */ #define ISCSI_PDU_CORK_WHEN_SENT 0x00000008 -/* put this immediate delivery PDU in front of outqueue. - * This is currently only used for immediate logout requests - * as answer to an async logout event. */ -#define ISCSI_PDU_URGENT_DELIVERY 0x00000010 - uint32_t flags; diff --git a/lib/socket.c b/lib/socket.c index a5fbae0..1ca2bfe 100644 --- a/lib/socket.c +++ b/lib/socket.c @@ -102,8 +102,7 @@ iscsi_add_to_outqueue(struct iscsi_context *iscsi, struct iscsi_pdu *pdu) do { if (iscsi_serial32_compare(pdu->cmdsn, current->cmdsn) < 0 || - (pdu->outdata.data[0] & ISCSI_PDU_IMMEDIATE && !(current->outdata.data[0] & ISCSI_PDU_IMMEDIATE)) || - pdu->flags & ISCSI_PDU_URGENT_DELIVERY) { + (pdu->outdata.data[0] & ISCSI_PDU_IMMEDIATE && !(current->outdata.data[0] & ISCSI_PDU_IMMEDIATE))) { /* insert PDU before the current */ if (last != NULL) { last->next=pdu;