socket: Make the pdu timeout handling aware of old iscsi context
We should check the pdus in old iscsi context when scanning timeout tasks during reconnecting. Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
This commit is contained in:
@@ -913,7 +913,7 @@ iscsi_tcp_service(struct iscsi_context *iscsi, int revents)
|
||||
return iscsi_reconnect(iscsi);
|
||||
} else {
|
||||
if (iscsi->old_iscsi) {
|
||||
return 0;
|
||||
goto check_timeout;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -999,8 +999,14 @@ iscsi_tcp_service(struct iscsi_context *iscsi, int revents)
|
||||
return iscsi_service_reconnect_if_loggedin(iscsi);
|
||||
}
|
||||
}
|
||||
|
||||
check_timeout:
|
||||
iscsi_timeout_scan(iscsi);
|
||||
|
||||
if (iscsi->old_iscsi) {
|
||||
iscsi_timeout_scan(iscsi->old_iscsi);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user