staging: bcm2835-camera: Convert spinlock to mutex in handle mapping code
authorMichael Zoran <mzoran@crowfest.net>
Fri, 10 Mar 2017 05:08:56 +0000 (21:08 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2017 09:12:10 +0000 (10:12 +0100)
commit74369b5f22b72a4b4fd38a12f36251d38c022831
tree4bf45ec944747039caba303cb66becd2534b64b0
parent68aeab51063a8e7fd4c0b05dc9eeef085fa01fa0
staging: bcm2835-camera: Convert spinlock to mutex in handle mapping code

The handle mapping code that converts context pointers to handles uses
a spinlock.  Since the btree implementation can sleep while allocating
memory, turning on several kernel debugging options will result in
errors in the log.

Since this code path is never called in atomic context, perhaps it's
better to just use a mutex.

Signed-off-by: Michael Zoran <mzoran@crowfest.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c