This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new cd537f64dad fs/aio: Guard lpwork_restorepriority() with 
CONFIG_SCHED_LPWORK.
cd537f64dad is described below

commit cd537f64dada51d2a4549d7d1c77608ade89879a
Author: tengshuangshuang <[email protected]>
AuthorDate: Thu Nov 12 20:02:53 2026 +0800

    fs/aio: Guard lpwork_restorepriority() with CONFIG_SCHED_LPWORK.
    
    include/nuttx/wqueue.h declares lpwork_restorepriority() only when both
    CONFIG_SCHED_LPWORK and CONFIG_PRIORITY_INHERITANCE are defined, but
    aio_fsync_worker() calls it whenever CONFIG_PRIORITY_INHERITANCE is
    defined.  Use the condition of the declaration for the call as well.
    
    Signed-off-by: tengshuangshuang <[email protected]>
---
 fs/aio/aio_fsync.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/aio/aio_fsync.c b/fs/aio/aio_fsync.c
index bc27beb0ce4..766c7b08f76 100644
--- a/fs/aio/aio_fsync.c
+++ b/fs/aio/aio_fsync.c
@@ -99,7 +99,7 @@ static void aio_fsync_worker(FAR void *arg)
   aio_signal(pid, aiocbp);
   aioc_decant(aioc);
 
-#ifdef CONFIG_PRIORITY_INHERITANCE
+#if defined(CONFIG_PRIORITY_INHERITANCE) && defined(CONFIG_SCHED_LPWORK)
   /* Restore the low priority worker thread default priority */
 
   lpwork_restorepriority(prio);

Reply via email to