summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}