From: Hans Verkuil Date: Mon, 20 Sep 2010 20:24:30 +0000 (-0300) Subject: V4L/DVB: videobuf: prepare to make locking optional in videobuf X-Git-Tag: v2.6.37-rc1~64^2~344 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97397687886aa8ecd4ec603fab9e70e970c11597;p=pandora-kernel.git V4L/DVB: videobuf: prepare to make locking optional in videobuf Currently videobuf uses the vb_lock mutex to lock its data structures. But this locking will (optionally) move into the v4l2 core, which means that in that case vb_lock shouldn't be used since the external lock is already held. Prepare for this by adding a pointer to such an external mutex and don't lock if that pointer is set. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed