Re: [PATCH] usb: serial: replacing mutex_lock to guard(mutex)

From: Greg Kroah-Hartman

Date: Sun Jun 14 2026 - 22:30:33 EST


On Sun, Jun 14, 2026 at 10:23:37PM +0300, Leonid Konontsov wrote:
> Moving from manual mutex_lock's and mutex_unlock's to guard(mutex) in
> ark3116.c file.

That says what you are doing, but not why.

Please don't change code to use guard() unless you are fixing a bug.
Otherwise the churn in the kernel would not be worth it. Just use it in
new code please.

thanks,

greg k-h