From: Arnd Bergmann Date: Wed, 26 Feb 2014 11:01:48 +0000 (-0300) Subject: [media] arv: fix sleep_on race X-Git-Tag: v3.15-rc1~85^2~130 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f97881fe500026053c24d2a0ef8aebfd3c2a1ca8;p=pandora-kernel.git [media] arv: fix sleep_on race interruptible_sleep_on is racy and going away. In the arv driver that race has probably never caused problems since it would require a whole video frame to be captured before the read function has a chance to go to sleep, but using wait_event_interruptible lets us kill off the old interface. In order to do this, we have to slightly adapt the meaning of the ar->start_capture field to distinguish between not having started a frame and having completed it. Signed-off-by: Arnd Bergmann Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed