]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
vchiq_arm: Avoid use of mutex in add_completion
authorPhil Elwell <phil@raspberrypi.org>
Mon, 20 Jun 2016 12:51:44 +0000 (13:51 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 11 Aug 2017 10:57:52 +0000 (12:57 +0200)
commitb3dfed6686706fbcc930c65ad893a21f455bda4e
tree909dc17a85a7b240d7adda3d310d7e7c98de69a7
parent1b36b0196a15cbc349337fd8ef8fb9d48bfe9eb8
vchiq_arm: Avoid use of mutex in add_completion

Claiming the completion_mutex within add_completion did prevent some
messages appearing twice, but provokes a deadlock caused by vcsm using
vchiq within a page fault handler.

Revert the use of completion_mutex, and instead fix the original
problem using more memory barriers.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c