]> git.baikalelectronics.ru Git - kernel.git/commit
[media] vb2: fix a regression in poll() behavior for output,streams
authorHans Verkuil <hverkuil@xs4all.nl>
Thu, 29 Oct 2015 05:02:06 +0000 (03:02 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 17 Nov 2015 16:35:39 +0000 (14:35 -0200)
commit96441772c6d67136459d89e0cad1699d7628cb0f
tree11729177d95b4acabb0f37c9c50f05daf4fb7699
parent23b076b7e763c1be78859f9754f8fb7e8e9eb0d2
[media] vb2: fix a regression in poll() behavior for output,streams

In the 3.17 kernel the poll() behavior changed for output streams:
as long as not all buffers were queued up poll() would return that
userspace can write. This is fine for the write() call, but when
using stream I/O this changed the behavior since the expectation
was that it would wait for buffers to become available for dequeuing.

This patch only enables the check whether you can queue buffers
for file I/O only, and skips it for stream I/O.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: <stable@vger.kernel.org> # for v3.17 and up
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/videobuf2-v4l2.c