Re: [PATCH 2/2] printk: Make the console flush configurable in hotplug path

From: Sergey Senozhatsky
Date: Thu Sep 24 2020 - 02:39:05 EST


On (20/09/23 17:08), Prasad Sodagudi wrote:
> From: Mohammed Khajapasha <mkhaja@xxxxxxxxxxxxxx>
>
> The thread which initiates the hot plug can get scheduled
> out, while trying to acquire the console lock,
> thus increasing the hot plug latency. This option
> allows to selectively disable the console flush and
> in turn reduce the hot plug latency.

It can schedule out or get preempted pretty much anywhere at any
time. printk->console_lock is not special in this regard. What am
I missing?

-ss