diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2011-01-06 15:40:05 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2011-01-06 15:40:05 +0000 |
commit | ddeab854dbcbea589bf5b5ae8cd7ba05a24673b2 (patch) | |
tree | 6da58ba6f6dc8936892afa26206774f03fc1b120 /usr.sbin/iscsid | |
parent | c58e3158b8a46fbb09dd5d386ad0648b5ab858f1 (diff) |
Ugly hack, call session_schedule in the task pdu callback handler.
Without this accessing both LU on my iscsi target will lock up
because tasks a queued but no longer scheduled.
We need a better task scheduler but this allows me to run iogen on both
partitions without locking up.
Diffstat (limited to 'usr.sbin/iscsid')
-rw-r--r-- | usr.sbin/iscsid/task.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/iscsid/task.c b/usr.sbin/iscsid/task.c index 6150625fa74..ace16ca11fd 100644 --- a/usr.sbin/iscsid/task.c +++ b/usr.sbin/iscsid/task.c @@ -1,4 +1,4 @@ -/* $OpenBSD: task.c,v 1.5 2011/01/04 13:19:55 claudio Exp $ */ +/* $OpenBSD: task.c,v 1.6 2011/01/06 15:40:04 claudio Exp $ */ /* * Copyright (c) 2009 Claudio Jeker <claudio@openbsd.org> @@ -130,4 +130,5 @@ task_pdu_cb(struct connection *c, struct pdu *p) log_pdu(p, 1); pdu_free(p); } + session_schedule(c->session); } |