On Fri, 2007-09-21 at 09:37 -0400, Mathieu Desnoyers wrote:
> > Good points. Well I'd say hiding it all behind a friendly
> > "immediate_set()" interface is the best option then.
>
> Then we can't benefit of the __init section to have the code removed
> after boot. I don't see the point in doing so.
Because having a magic early version is a bad burden to place on
programmers. It's an admission of failure that we cannot create a
simpler interface.
AFAICT it's a handful of bytes which would be freed.
> > Is this really worth worrying about? Isn't there already a problem with
> > printk() in nmi?
>
> printk() is just an example taken from my current instrumentation. Let's
> say I plan to instrument kmalloc() (which will happen someday): it's
> used in every context, including NMI.
Again, I don't think calling kmalloc in NMI is valid. Unless I'm
missing something, any code which uses locks is susceptible to deadlock
if used from an NMI handler. So you really can't do much.
It's nice that you have the perfect solution. But I'd really rather see
a sufficient solution which is 1/4 of the code and 1/10 the complexity.
Rusty.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]