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

Markus Elfring
2024-09-06T19:06:22Z

…
> +++ 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