This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 12079a213dc6e4cd6a6b027269eb108e70410013 Author: dongjiuzhu1 <[email protected]> AuthorDate: Sat Dec 21 18:26:25 2024 +0800 fs/eventfd/timerfd: update sem next to avoid busy loop fix bug about busy loop Signed-off-by: dongjiuzhu1 <[email protected]> --- fs/vfs/fs_eventfd.c | 2 ++ fs/vfs/fs_timerfd.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/fs/vfs/fs_eventfd.c b/fs/vfs/fs_eventfd.c index 0f63df25dce..dd85f4eb20b 100644 --- a/fs/vfs/fs_eventfd.c +++ b/fs/vfs/fs_eventfd.c @@ -255,6 +255,8 @@ static int eventfd_blocking_io(FAR struct eventfd_priv_s *dev, cur_sem->next = sem->next; break; } + + cur_sem = cur_sem->next; } } diff --git a/fs/vfs/fs_timerfd.c b/fs/vfs/fs_timerfd.c index 5720b4f79fd..c3abb832dce 100644 --- a/fs/vfs/fs_timerfd.c +++ b/fs/vfs/fs_timerfd.c @@ -259,6 +259,8 @@ static int timerfd_blocking_io(FAR struct timerfd_priv_s *dev, cur_sem->next = sem->next; break; } + + cur_sem = cur_sem->next; } } }
