Comment 11 for bug 45542

Revision history for this message
Philip Axer (phaxer-merged) wrote :

Hi,
in drivers/net/irda/sir_kthread.c line 133:

                 prepare_to_wait(&irda_rq_queue.kick, &wait, TASK_INTERRUPTIBLE);
                 if (list_empty(&irda_rq_queue.request_list))
                        schedule_timeout(HZ/10);
                else
                        __set_task_state(current, TASK_RUNNING);
                finish_wait(&irda_rq_queue.kick, &wait);

I'm not a kernel expert, but what's doing the else branch? Is it still necessary after changing to prepare_to_wait in -23?