From: Adam Jackson <a...@redhat.com> Now that it's static we know it can't ever be called when poll_in_progress is true.
Signed-off-by: Adam Jackson <a...@redhat.com> --- usr/actor.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/usr/actor.c b/usr/actor.c index 880bf81..fb90924 100644 --- a/usr/actor.c +++ b/usr/actor.c @@ -221,17 +221,10 @@ actor_check(uint64_t current_time) (long)thread, thread->scheduled_at, thread->ttschedule, current_time, pend_list.next, &pend_list); - if (poll_in_progress) { - thread->state = ACTOR_POLL_WAITING; - list_add_tail(&thread->list, &poll_list); - log_debug(7, "thread %08lx now in poll_list", - (long)thread); - } else { - thread->state = ACTOR_SCHEDULED; - list_add_tail(&thread->list, &actor_list); - log_debug(7, "thread %08lx now in actor_list", - (long)thread); - } + thread->state = ACTOR_SCHEDULED; + list_add_tail(&thread->list, &actor_list); + log_debug(7, "thread %08lx now in actor_list", + (long)thread); } } -- 1.8.1.4 -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscr...@googlegroups.com. To post to this group, send email to open-iscsi@googlegroups.com. Visit this group at http://groups.google.com/group/open-iscsi?hl=en. For more options, visit https://groups.google.com/groups/opt_out.