connect: make the reconnect async

Signed-off-by: Peter Lieven <pl@kamp.de>
This commit is contained in:
Peter Lieven
2015-03-31 16:20:19 +02:00
parent 2c1b88e9e7
commit b152d26eb9
7 changed files with 158 additions and 98 deletions

View File

@@ -154,8 +154,10 @@ struct iscsi_context {
int smalloc_free;
size_t smalloc_size;
time_t last_reconnect;
time_t next_reconnect;
int scsi_timeout;
struct iscsi_context *old_iscsi;
int retry_cnt;
};
#define ISCSI_PDU_IMMEDIATE 0x40