All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH 0/2] media: fix polling not to wait if a buffer is available
@ 2013-04-01  6:40 Seung-Woo Kim
  2013-04-01  6:40 ` [RFC][PATCH 1/2] media: vb2: return for polling " Seung-Woo Kim
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Seung-Woo Kim @ 2013-04-01  6:40 UTC (permalink / raw)
  To: linux-media
  Cc: mchehab, m.szyprowski, hans.verkuil, pawel, kyungmin.park, sw0312.kim

As poll behavior described in following link, polling needs to just return if
already some buffer is in done list.
Link: http://www.spinics.net/lists/linux-media/msg34759.html

But in current vb2 and v4l2_m2m, poll function always calls poll_wait(), so it
needs to wait until next vb2_buffer_done() or queue is cancelled.

So I add check routine for done_list before calling poll_wait().
But I'm not sure that locking for done_lock of queue is also needed in this
case or not because done_list of queue is checked without locking in some
other parts of vb2.

Seung-Woo Kim (2):
  media: vb2: return for polling if a buffer is available
  media: v4l2-mem2mem: return for polling if a buffer is available

 drivers/media/v4l2-core/v4l2-mem2mem.c   |    6 ++++--
 drivers/media/v4l2-core/videobuf2-core.c |    3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)

-- 
1.7.4.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-05-07 13:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-01  6:40 [RFC][PATCH 0/2] media: fix polling not to wait if a buffer is available Seung-Woo Kim
2013-04-01  6:40 ` [RFC][PATCH 1/2] media: vb2: return for polling " Seung-Woo Kim
2013-04-11 11:15   ` Marek Szyprowski
2013-04-01  6:40 ` [RFC][PATCH 2/2] media: v4l2-mem2mem: " Seung-Woo Kim
2013-05-07 13:43   ` Marek Szyprowski
2013-05-07  5:28 ` [RFC][PATCH 0/2] media: fix polling not to wait " 김승우

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.