dsp-kernel: Handle the spinlock recursion
Currently, in print_debug_data, kref_put is being called inside the global lock, and the same lock is taken in the release callback of kref_put, leading to spinlock recursion. There is no need to get and put the reference for the fastrpce file inside this function because we have already taken the reference inside the update_ramdump_status while adding the init memory entry to the chan->initmems list. Moreover, the same list will be used in print_debug_data. Signed-off-by: Abhishek Singh <quic_abhishes@quicinc.com> Change-Id: Ifdc8b3e0c2bbc5cc4237eedaa24c8cd766262dfe
This commit is contained in:
@@ -898,8 +898,6 @@ struct fastrpc_file {
|
||||
uint32_t ws_timeout;
|
||||
bool untrusted_process;
|
||||
struct fastrpc_device *device;
|
||||
/* Process kill will wait on work when ram dump collection in progress */
|
||||
struct completion work;
|
||||
/* Process kill will wait on bus driver invoke thread to complete its process */
|
||||
struct completion dma_invoke;
|
||||
/* Flag to indicate invoke pending */
|
||||
|
Reference in New Issue
Block a user