lkml.org 
[lkml]   [2008]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] call sysrq_timer_list_show from a workqueue

* Rusty Russell <rusty@rustcorp.com.au> wrote:

> +/* FIXME: Risky: returns a pointer into a module w/o lock */

stupid question: since module unloads are so rare, why isnt this via the
same mechanism that CPU hotplug uses to securely unregister CPUs? I.e.
quiet all CPUs, disable irqs on all of them, then unlink the module.
This would make module unload fundamentally safe, and symbols could be
looked up lockless. (with the exception of crashing within NMIs, but
that is not lock safe anyway.)

Or is this a rathole for some reason?

Ingo


\
 
 \ /
  Last update: 2008-01-08 12:37    [W:0.049 / U:24.752 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site