mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
rptun: add ns_match callback to resolve rptun deadlock
thread A: accept -> net_lock -> socket_rpmsg_accept
-> rpmsg_register_callabck -> rptun_lock
thread B: ns_bind -> rpmsg_socket_ns_bind -> get_tx_payload_buffer
-> rptun_wait_tx -> usrsock_rpmsg_ept_cb -> usrsockdev_write
-> net_lock -> deadlock
fix:
add ns_match callback
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
@@ -450,5 +450,6 @@ int syslog_rpmsg_init(void)
|
||||
return rpmsg_register_callback(&g_syslog_rpmsg,
|
||||
syslog_rpmsg_device_created,
|
||||
syslog_rpmsg_device_destroy,
|
||||
NULL,
|
||||
NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user