summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/tm6000
diff options
context:
space:
mode:
authorHans Verkuil2018-05-21 10:54:34 +0200
committerMauro Carvalho Chehab2018-08-31 17:07:51 +0200
commitcc6eddcd37ce6be403b5820ffd84cb84b33b653f (patch)
treeeb462214042304f56bbea9cb34127618b051b5d4 /drivers/media/usb/tm6000
parentmedia: v4l2-device.h: add v4l2_device_supports_requests() helper (diff)
downloadkernel-qcow2-linux-cc6eddcd37ce6be403b5820ffd84cb84b33b653f.tar.gz
kernel-qcow2-linux-cc6eddcd37ce6be403b5820ffd84cb84b33b653f.tar.xz
kernel-qcow2-linux-cc6eddcd37ce6be403b5820ffd84cb84b33b653f.zip
media: v4l2-dev: lock req_queue_mutex
We need to serialize streamon/off with queueing new requests. These ioctls may trigger the cancellation of a streaming operation, and that should not be mixed with queuing a new request at the same time. Finally close() needs this lock since that too can trigger the cancellation of a streaming operation. We take the req_queue_mutex here before any other locks since it is a very high-level lock. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/usb/tm6000')
0 files changed, 0 insertions, 0 deletions