nuttx/libs/libc/netdb
zhanghongyu db4840564d dns: Reduce the dns_lock granularity
When a7 curl calls dns_query via usrsock, it will wait a usrsock
response with the dns lock held. If a7 rptun recv a dns_addnameserver
event from another core at this time, rptun waits the lock held by
curl in callback. Then curl will never get its usrsock response with
rptun blocked, so the deadlock occurs.

This change will break lock when do usrsock request.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-11-11 20:07:05 +08:00
..
Kconfig
lib_dn.c
lib_dns.h dns: Reduce the dns_lock granularity 2022-11-11 20:07:05 +08:00
lib_dnsaddserver.c lib/netdb: Rename dns_sem[take|give] with dns_[lock|unlock] 2022-11-09 21:38:10 +01:00
lib_dnsbind.c
lib_dnscache.c lib/netdb: Rename dns_sem[take|give] with dns_[lock|unlock] 2022-11-09 21:38:10 +01:00
lib_dnsdefaultserver.c lib/netdb: Rename dns_sem[take|give] with dns_[lock|unlock] 2022-11-09 21:38:10 +01:00
lib_dnsforeach.c dns: Reduce the dns_lock granularity 2022-11-11 20:07:05 +08:00
lib_dnsinit.c dns: Reduce the dns_lock granularity 2022-11-11 20:07:05 +08:00
lib_dnsnotify.c lib/netdb: Rename dns_sem[take|give] with dns_[lock|unlock] 2022-11-09 21:38:10 +01:00
lib_dnsquery.c
lib_freeaddrinfo.c
lib_gaistrerror.c
lib_getaddrinfo.c
lib_gethostbyaddr.c
lib_gethostbyaddrr.c
lib_gethostbyname2.c
lib_gethostbyname2r.c
lib_gethostbyname.c
lib_gethostbynamer.c
lib_gethostentbynamer.c
lib_getnameinfo.c
lib_getservbyname.c
lib_getservbynamer.c
lib_getservbyport.c
lib_getservbyportr.c
lib_netdb.c
lib_netdb.h
lib_parsehostfile.c
lib_rexec.c
Make.defs