Messages in this thread | | | From | kuznet@ms2 ... | Subject | Re: Running schedule() in set_multicast_list | Date | Tue, 4 May 1999 23:27:01 +0400 (MSK DST) |
| |
Hello!
> Now, I should really wait for the card to interrupt me and > tell me that everything is ok with my command, but calling > any type of scheduling panics the kernel (i.e. interruptible_sleep_on_timeout, schedule etc.)
You are not allowed to sleep there, exactly as you are not allowed to sleep during hard_start_xmit. Essentially, set_multicast_list status is equal to hard_start_xmit.
If the operation cannot be complete without delay, you must defer it to timer. If you need make some post-processing after IRQ from card, you can start task queue in irq handler.
Alexey
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |