From: Jan Kara Date: Tue, 17 Mar 2015 11:56:31 +0000 (-0300) Subject: [media] vb2: Push mmap_sem down to memops X-Git-Tag: omap-for-v4.2/fixes-rc1^2~111^2~450 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48b25a3a713b90988b6882d318f7c0a6bed9aabc;p=pandora-kernel.git [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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed