add iscsi_force_reconnect()

If a connection attempt is hung, then iscsi_reconnect() won't do anything. This
makes sense if we'd just re-try to connect to the same target, but if (for
example) login redirect might point us to a different, healthy, target, it
should be possible to restart the full connection process on request.

Signed-off-by: John Levon <john.levon@nutanix.com>
This commit is contained in:
John Levon
2022-01-17 11:21:56 +00:00
committed by Bart Van Assche
parent 314aa26576
commit 30dd7c6429
5 changed files with 60 additions and 3 deletions

View File

@@ -13,6 +13,8 @@ iscsi_discovery_sync
iscsi_extended_copy_sync
iscsi_extended_copy_task
iscsi_free_discovery_data
iscsi_force_reconnect
iscsi_force_reconnect_sync
iscsi_full_connect_async
iscsi_full_connect_sync
iscsi_get_error