Re: [PATCH v2 1/2] Change DEFINE_SEMAPHORE() to take a number argument

From: Sergey Senozhatsky
Date: Sat Apr 08 2023 - 04:23:02 EST


On (23/04/05 13:35), Luis Chamberlain wrote:
> +++ b/kernel/printk/printk.c
> @@ -89,7 +89,7 @@ static DEFINE_MUTEX(console_mutex);
> * console_sem protects updates to console->seq and console_suspended,
> * and also provides serialization for console printing.
> */
> -static DEFINE_SEMAPHORE(console_sem);
> +static DEFINE_SEMAPHORE(console_sem, 1);

FWIW,
Reviewed-by: Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx> # printk