Files
linux/drivers
Hans Verkuil 73a110623e media: v4l2-core: push taking ioctl mutex down to ioctl handler
The ioctl serialization mutex (vdev->lock or q->lock for vb2 queues)
was taken at the highest level in v4l2-dev.c. This prevents more
fine-grained locking since at that level we cannot examine the ioctl
arguments, we can only do that after video_usercopy is called.

So push the locking down to __video_do_ioctl() and subdev_do_ioctl_lock().

This also allows us to make a few functions in v4l2-ioctl.c static and
video_usercopy() is no longer exported.

The locking scheme is not changed by this patch, just pushed down.

Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-05-28 16:31:44 -04:00
..
…
2018-04-19 15:11:50 -07:00
…
…
…
2018-03-27 09:51:22 +02:00
…
2018-04-27 14:12:43 +02:00
…
2018-04-12 21:46:10 -04:00
2018-03-19 14:20:24 -05:00
2018-04-18 23:37:25 -04:00
…
…
…
…
2018-05-02 21:47:35 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-03-29 13:38:10 +03:00
…