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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux