OSDN Git Service

rpmsg: glink: Fix idr_lock from mutex to spinlock
authorSricharan R <sricharan@codeaurora.org>
Thu, 24 Aug 2017 07:21:33 +0000 (12:51 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 30 Aug 2017 03:34:12 +0000 (20:34 -0700)
commit44f6df922a260f1906abca8c0771e1811fff8443
treeb06a94e2b9cb28c6fcdade3f1f9d250771d89bc1
parentd31ad615f6fb809b534f6091cd06a7e88c44393e
rpmsg: glink: Fix idr_lock from mutex to spinlock

The channel members lcids, rcids synchronised using the idr_lock is
accessed in both atomic/non-atomic contexts. The readers are not
currently synchronised.  That no correct, so add the readers as well
under the lock and use a spinlock.

Acked-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Signed-off-by: Sricharan R <sricharan@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/qcom_glink_native.c