Re: [PATCH v3 05/29] media: iris: implement iris v4l2 file ops

From: Markus Elfring
Date: Fri Sep 06 2024 - 15:06:35 EST



> +++ b/drivers/media/platform/qcom/iris/iris_vidc.c
> @@ -0,0 +1,174 @@

> ++int iris_close(struct file *filp)
> +{

> + mutex_lock(&inst->lock);
> + iris_v4l2_fh_deinit(inst);
> + mutex_unlock(&inst->lock);


Under which circumstances would you become interested to apply a statement
like “guard(mutex)(&inst->lock);”?
https://elixir.bootlin.com/linux/v6.11-rc6/source/include/linux/mutex.h#L196

Regards,
Markus