]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: rzv2h-ivc: Replace workqueue with direct function call
authorJacopo Mondi <jacopo.mondi+renesas@ideasonboard.com>
Wed, 11 Mar 2026 13:41:56 +0000 (14:41 +0100)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 24 Mar 2026 15:13:09 +0000 (16:13 +0100)
commitafa4b9befb3e90d34d2b8b41c6f3cc3c49c3d086
treeaf537144f1ada5f784e6b536ecb871b7a211df2a
parentb1de0940a19c1b0001425f8069d6a82369986af7
media: rzv2h-ivc: Replace workqueue with direct function call

Scheduling of work items with an async workqueue opens the door to
potential races between multiple instances of a work item.

While the frame transfer function is now protected against races, using
a workqueue doesn't provide much benefit considering the limited cost of
creating a job transfer.

Replace the usage of the work queue with direct function calls.

Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo.mondi+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc-dev.c
drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc-video.c
drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc.h