summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2015-03-17 08:56:31 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-05-01 07:17:27 -0300
commit48b25a3a713b90988b6882d318f7c0a6bed9aabc (patch)
tree818fab949bd94cbafbef001ca307d4756dd9df1c /lib
parent9c3f205252f8ae2af9794d68bcbfc49fb0812ccf (diff)
[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 'lib')
0 files changed, 0 insertions, 0 deletions