mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 21:26:31 +00:00
Minor cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3354 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -583,13 +583,13 @@ static void login_start(struct connection *conn)
|
||||
if (rc < 0)
|
||||
return;
|
||||
else if (rc == ISCSI_SESS_REINSTATEMENT) {
|
||||
target->sessions_count++;
|
||||
conn->sessions_count_incremented = 1;
|
||||
target->sessions_count++;
|
||||
conn->sessions_count_incremented = 1;
|
||||
} else if (rc != ISCSI_CONN_REINSTATEMENT) {
|
||||
if ((target->target_params[key_max_sessions] == 0) ||
|
||||
(target->sessions_count < target->target_params[key_max_sessions])) {
|
||||
target->sessions_count++;
|
||||
conn->sessions_count_incremented = 1;
|
||||
target->sessions_count++;
|
||||
conn->sessions_count_incremented = 1;
|
||||
} else {
|
||||
log_warning("Initiator %s not allowed to connect to "
|
||||
"target %s - max sessions limit "
|
||||
|
||||
Reference in New Issue
Block a user