Thread (11 messages) 11 messages, 4 authors, 2012-04-13

[RFC]Something wrong with my module

From: Kristof Provost <hidden>
Date: 2012-04-12 14:45:38

On 2012-04-12 22:08:08 (+0800), harryxiyou [off-list ref] wrote:
On Thu, Apr 12, 2012 at 10:04 PM, harryxiyou [off-list ref] wrote:
quoted
On Thu, Apr 12, 2012 at 9:59 PM, Frank Ch. Eigler [off-list ref] wrote:
quoted
kristof wrote:
quoted
[...]
You're iterating over the tasks list without locking it.
[...]
Try to take the tasklist_lock.
Unfortunately, tasklist_lock is not SYMBOL_EXPORT*'d to modules.
What about other ones? Do you have any other suggestions?
What about task_lock() ?
task_lock() locks a single task, not the list of tasks.

I'd be included to take the fact that tasklist_lock is not exported as a
hint that you're not supposed to be messing with the list of tasks from
kernel modules.

Regards,
Kristof
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help