Hello! I am facing various issues with networking in NuttX, including a nasty deadlock.
I tried to track down this deadlock, and it seems that it is related to g_netlock. I am not sure yet what is the sequence that leads to this. I have CONFIG_PRIORITY_INHERITANCE enabled. However, I see that SEM_INITIALIZER() does not set the SEM_PRIO_INHERIT flag, and thus g_netlock does not have priority inheritance enabled. I tried to set SEM_PRIO_INHERIT in SEM_INITIALIZER(), and networking is much more stable now. I never saw this deadlock happening again. Shouldn't this flag be enabled for this semaphore?