staging: mmal-vchiq: Replace spinlock protecting context_map with mutex
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Wed, 1 May 2019 14:17:00 +0000 (15:17 +0100)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:33 +0000 (00:08 +0100)
commitd5f6ac9ec315560a4097af0801dd79b5ee00cb4b
tree1d5380b5fb41f120ad26d618bafe374d32acab44
parent06e48eb965dff55f5c2c3b55095704690f9cebe8
staging: mmal-vchiq: Replace spinlock protecting context_map with mutex

950fd86 staging: bcm2835-camera: Replace open-coded idr with a struct idr.
replaced an internal implementation of an idr with the standard functions
and a spinlock.
idr_alloc(GFP_KERNEL) can sleep whilst calling kmem_cache_alloc to allocate
the new node, but this is not valid whilst in an atomic context due to the
spinlock.

There is no need for this to be a spinlock as a standard mutex is
sufficient.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c