When iscsid(8) is running in ICL proxy mode, don't try to send Logout PDUs.
The kernel already does this for us when we ask it to terminate the session. MFC after: 1 month Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
d66a906bc2
commit
b7af91d012
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300212
@ -206,6 +206,18 @@ discovery(struct connection *conn)
|
||||
log_debugx("removing temporary discovery session");
|
||||
kernel_remove(conn);
|
||||
|
||||
#ifdef ICL_KERNEL_PROXY
|
||||
if (conn->conn_conf.isc_iser == 1) {
|
||||
/*
|
||||
* If we're going through the proxy, the kernel already
|
||||
* sent Logout PDU for us and destroyed the session,
|
||||
* so we can't send anything anymore.
|
||||
*/
|
||||
log_debugx("discovery session done");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
log_debugx("discovery done; logging out");
|
||||
request = logout_new_request(conn);
|
||||
pdu_send(request);
|
||||
|
Loading…
Reference in New Issue
Block a user