Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] pwc: Fix comment wrt lock ordering

With all the changes to handle the locking in the v4l2-core rather then at
the driver level, the order in which the 2 pwc locks need to be taken has
changed, update the comment in the header file to correctly reflect this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Hans de Goede and committed by
Mauro Carvalho Chehab
cd5de262 df90e225

+1 -1
+1 -1
drivers/media/usb/pwc/pwc.h
··· 226 226 struct list_head queued_bufs; 227 227 spinlock_t queued_bufs_lock; /* Protects queued_bufs */ 228 228 229 - /* Note if taking both locks v4l2_lock must always be locked first! */ 229 + /* If taking both locks vb_queue_lock must always be locked first! */ 230 230 struct mutex v4l2_lock; /* Protects everything else */ 231 231 struct mutex vb_queue_lock; /* Protects vb_queue and capt_file */ 232 232