diff options
author | Jan Kara <jack@suse.cz> | 2015-03-17 14:56:31 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-05-01 13:17:27 +0300 |
commit | 48b25a3a713b90988b6882d318f7c0a6bed9aabc (patch) | |
tree | 818fab949bd94cbafbef001ca307d4756dd9df1c /drivers/media/pci | |
parent | 9c3f205252f8ae2af9794d68bcbfc49fb0812ccf (diff) | |
download | linux-48b25a3a713b90988b6882d318f7c0a6bed9aabc.tar.xz |
[media] vb2: Push mmap_sem down to memops
Currently vb2 core acquires mmap_sem just around call to
__qbuf_userptr(). However since commit f035eb4e976ef5 (videobuf2: fix
lockdep warning) it isn't necessary to acquire it so early as we no
longer have to drop queue mutex before acquiring mmap_sem. So push
acquisition of mmap_sem down into .get_userptr and .put_userptr memops
so that the semaphore is acquired for a shorter time and it is clearer
what it is needed for.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci')
0 files changed, 0 insertions, 0 deletions