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 Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux