Re: [PATCH v2] x86/microcode: Remove microcode_mutex.

From: Sohil Mehta
Date: Fri Aug 04 2023 - 12:24:08 EST


> struct cpu_info_ctx {
> @@ -488,10 +485,7 @@ static ssize_t reload_store(struct device *dev,
> if (tmp_ret != UCODE_NEW)
> goto put;
>
> - mutex_lock(&microcode_mutex);
> ret = microcode_reload_late();
> - mutex_unlock(&microcode_mutex);
> -

Maybe leave the new line in there before the put:? Makes it slightly
easier to read the code.

> put:
> cpus_read_unlock();
>

Anyway,
Reviewed-by: Sohil Mehta <sohil.mehta@xxxxxxxxx>