lkml.org 
[lkml]   [1999]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Running schedule() in set_multicast_list
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.024 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site