pdu: drop ISCSI_PDU_NO_CALLBACK
we use the flag ISCSI_PDU_NO_CALLBACK and pdu->callback simultaneously, but check only for one of them in various places. So drop ISCSI_PDU_NO_CALLBACK and check for pdu->callback != NULL instead. All PDUs that carried this flag have pdu->callback set to NULL. Signed-off-by: Peter Lieven <pl@kamp.de>
This commit is contained in:
@@ -228,8 +228,6 @@ struct iscsi_pdu {
|
||||
|
||||
/* There will not be a response to this pdu, so delete it once it is sent on the wire. Don't put it on the wait-queue */
|
||||
#define ISCSI_PDU_DELETE_WHEN_SENT 0x00000001
|
||||
/* Don't call the CANCEL callback when the context is destroyed */
|
||||
#define ISCSI_PDU_NO_CALLBACK 0x00000002
|
||||
/* When reconnecting, just drop all these PDUs. Don't re-queue them.
|
||||
* This includes any DATA-OUT PDU as well as all NOPs.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user