soc: qcom: glink: add read/write reference lock
Some internal data structures can be freed in several different code
paths depending upon their state. To reduce the likelihood of memory
leaks, these structures are reference counted. In addition, some code
paths will read from the objects and others will write to them. To
minimize the amount of time in atomic context, the reference counts can
be classified as either reader or writer which allows multiple readers
to hold the lock at a single time.
Combine a reference lock with read/write lock to handle this use case.
Change-Id: Icaf5d0dd639422582dcdd80acb54a342fc0f1c3c
Signed-off-by:
Eric Holmberg <eholmber@codeaurora.org>
Loading
Please register or sign in to comment