xiaoxiang781216 commented on PR #20583: URL: https://github.com/apache/nuttx/pull/20583#issuecomment-6111519514
@casaroli why not continue cherry-pick https://github.com/open-vela/nuttx/commit/2c27af036bc927617fad72b85607bccad3c2564d: ``` commit 2c27af036bc927617fad72b85607bccad3c2564d Author: guoshichao <[email protected]> Date: Mon Nov 10 17:25:55 2025 +0800 environ: move the environ from sched/environ to libc/environ change the environ implementation from sched/environ to libc/environ, thus we can access the environ related API can vai libc directl, which could improve the access speed in kernel build. And in order to support this modification, we change the struct task_info_s's ta_lock from nxmutex_t to nxrmutex_t, this is because the env_*-related APIs require the ta_lock to be reentrant. If recursive locks are not supported, it may lead to deadlocks in certain scenarios. For example, during initialization on the qemu-miwear platform, it is necessary to call getenv while already holding the ta_lock. To support such cases, we need to change the ta_lock from nxmutex_t to nxrmutex_t. Signed-off-by: guoshichao <[email protected]> ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
