summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2011-04-28 18:32:02 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2011-04-28 18:32:02 +0000
commit171b1ed4176289d8147413980464f34bba957824 (patch)
treef76bc1d420f4259d645b39e9865da2991f7ea00d /usr.sbin
parent05a477ae8a5d348961172968f6d7f0c848b9e352 (diff)
Try to schedule a new task for the connection in conn_task_cleanup()
this removes the session_schedule() in the task_pdu_cb().
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/iscsid/connection.c4
-rw-r--r--usr.sbin/iscsid/task.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/iscsid/connection.c b/usr.sbin/iscsid/connection.c
index 8701d43d610..cb76c158090 100644
--- a/usr.sbin/iscsid/connection.c
+++ b/usr.sbin/iscsid/connection.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: connection.c,v 1.10 2011/04/27 19:02:07 claudio Exp $ */
+/* $OpenBSD: connection.c,v 1.11 2011/04/28 18:32:01 claudio Exp $ */
/*
* Copyright (c) 2009 Claudio Jeker <claudio@openbsd.org>
@@ -252,6 +252,8 @@ conn_task_cleanup(struct connection *c, struct task *t)
TAILQ_REMOVE(&c->tasks, t, entry);
if (!TAILQ_EMPTY(&c->tasks))
conn_task_schedule(c);
+ else
+ session_schedule(c->session);
}
}
diff --git a/usr.sbin/iscsid/task.c b/usr.sbin/iscsid/task.c
index 16c41001dc5..221cabd5ff1 100644
--- a/usr.sbin/iscsid/task.c
+++ b/usr.sbin/iscsid/task.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: task.c,v 1.8 2011/04/27 19:02:07 claudio Exp $ */
+/* $OpenBSD: task.c,v 1.9 2011/04/28 18:32:01 claudio Exp $ */
/*
* Copyright (c) 2009 Claudio Jeker <claudio@openbsd.org>
@@ -141,5 +141,4 @@ task_pdu_cb(struct connection *c, struct pdu *p)
log_pdu(p, 1);
pdu_free(p);
}
- session_schedule(c->session);
}