Re: [External] Re: [PATCH 2/2] sched: mark PRINTK_DEFERRED_CONTEXT_MASK in __schedule()

From: Sergey Senozhatsky
Date: Tue Sep 29 2020 - 20:49:04 EST


On (20/09/29 17:09), Peter Zijlstra wrote:
> > 2. The registration and unregistration of consoles should not longer
> > be handled by console_lock (semaphore). It should be possible to
> > call most consoles without a sleeping lock. It should remove all
> > these deadlocks between printk() and scheduler().
>
> I'm confused, who cares about registation? That only happens once at
> boot, right?

You can modprobe or rmmod (register/unregister) netconsole anytime,
for example.

-ss