]> 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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 19 Sep 2017 10:07:47 +0000 (12:07 +0200)
commitb8f6d9a17c51b92d4e2644070f6b5ddc4f23890f
tree471332f1eb3f511ce120dd057b0960bcc4f95a70
parent29744c5bc134c12e035ab8a776bc225f026c42f1
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