Ahhah! I know. You just make lock_depth 0 when you exit, without actually
taking the kernel lock. Which fools the logic into accepting a
preempt-disable, since it thinks that the preempt disable is due to
holding the kernel lock.
Add a big comment and you're all done.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/