Skip to content

Commit

Permalink
Revert "media: v4l: Use interruptible waits"
Browse files Browse the repository at this point in the history
This reverts commit a20b14a.

Signed-off-by: TogoFire <togofire@mailfence.com>
Change-Id: Ib4dfa6b9bd8c66a816ef7b128947692337fcade2
  • Loading branch information
balgxmr authored and TogoFire committed May 24, 2023
1 parent 12a6eb3 commit 2550d0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/media/v4l2-core/v4l2-mem2mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ static void v4l2_m2m_cancel_job(struct v4l2_m2m_ctx *m2m_ctx)
if (m2m_dev->m2m_ops->job_abort)
m2m_dev->m2m_ops->job_abort(m2m_ctx->priv);
dprintk("m2m_ctx %p running, will wait to complete", m2m_ctx);
wait_event_interruptible(m2m_ctx->finished,
wait_event(m2m_ctx->finished,
!(m2m_ctx->job_flags & TRANS_RUNNING));
} else if (m2m_ctx->job_flags & TRANS_QUEUED) {
list_del(&m2m_ctx->queue);
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/v4l2-core/videobuf2-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ int vb2_wait_for_all_buffers(struct vb2_queue *q)
}

if (q->start_streaming_called)
wait_event_interruptible(q->done_wq, !atomic_read(&q->owned_by_drv_count));
wait_event(q->done_wq, !atomic_read(&q->owned_by_drv_count));
return 0;
}
EXPORT_SYMBOL_GPL(vb2_wait_for_all_buffers);
Expand Down

0 comments on commit 2550d0b

Please sign in to comment.