nuttx/sched/task
Masayuki Ishikawa 9d370fc363 sched: task: Call nxtask_flushstreams() without critical section
Summary:
- During investigating critical section with semaphores, I noticed
  that nxtask_flushstreams() is called with a critical section.
- The function calls lib_flushall() which handles a semaphore
  in userspace.
- So it should be done without a critical section

Impact:
- SMP only

Testing:
- Tested with ostest the following configs
- esp32-devkitc:smp (QEMU), sabre-6quad:smp (QEMU)
- maix-bit:smp (QEMU), sim:smp
- spresense:smp
- Tested with nxplayer and stress test with spresense:wifi_smp

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-03-02 05:05:29 -08:00
..
exit.c sched: Remove SCHED_EXIT_KILL_CHILDREN option 2020-06-15 07:17:43 -06:00
Make.defs sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
spawn.h Fix typos reported by codespell 2021-02-25 11:31:49 -08:00
task_activate.c sched: Change the return type of nxtask_activate to void 2020-06-04 22:20:45 +01:00
task_atexit.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_cancelpt.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_create.c sched: Change tcb_s to task_tcb_s for nxtask_[un]init 2020-06-30 10:54:42 -06:00
task_delete.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_execv.c Ensure the kernel component don't call userspace API 2021-03-01 09:23:09 +09:00
task_exit.c Fix typos reported by codespell 2021-02-25 11:31:49 -08:00
task_exithook.c sched: task: Call nxtask_flushstreams() without critical section 2021-03-02 05:05:29 -08:00
task_getgroup.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_getpid.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_getppid.c libc: Implement getppid 2020-12-20 16:40:14 -03:00
task_init.c Revert "sched: Call up_[use|create]_stack after nxtask_setup_scheduler" 2020-10-22 18:31:31 +09:00
task_onexit.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_posixspawn.c Kernel module should prefer functions with nx/kmm prefix 2021-01-13 08:57:58 +01:00
task_prctl.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_recover.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_reparent.c sched/: Make more naming consistent 2020-05-16 13:39:03 -03:00
task_restart.c sched/group: Change group_kill_children's argument from task_tcb_s to tcb_s 2020-06-15 07:09:51 -06:00
task_setcancelstate.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_setcanceltype.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_setup.c sched: task: Fix comments and label in nxtask_assign_pid() 2021-01-24 22:07:16 -08:00
task_spawn.c Kernel module should prefer functions with nx/kmm prefix 2021-01-13 08:57:58 +01:00
task_spawnparms.c Kernel module should prefer functions with nx/kmm prefix 2021-01-13 08:57:58 +01:00
task_start.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_starthook.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_terminate.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_testcancel.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_vfork.c Ensure the kernel component don't call userspace API 2021-03-01 09:23:09 +09:00
task.h sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00