Re: nsh_fileapps and usage of sched_lock()

2023-10-25 Thread Ville Juven
Hi, Thanks for the responses, they are very much appreciated. I suspected that the scheduler lock can be removed without too severe side effects (I made a PR of it already). I made a PR of removing it from nsh_fileapps already since I think that is potentially a more critical place to fix due to

Re: nsh_fileapps and usage of sched_lock()

2023-10-25 Thread Gregory Nutt
On 10/25/2023 8:48 AM, Gregory Nutt wrote: On 10/25/2023 8:18 AM, Alan C. Assis wrote: On 10/25/23, Nathan Hartman wrote: On Wed, Oct 25, 2023 at 5:16 AM Ville Juven wrote: Hi all, I noticed that when spawning a new task/process from a file in nsh_fileapps, the scheduler is locked prior to

Re: nsh_fileapps and usage of sched_lock()

2023-10-25 Thread Gregory Nutt
On 10/25/2023 8:18 AM, Alan C. Assis wrote: On 10/25/23, Nathan Hartman wrote: On Wed, Oct 25, 2023 at 5:16 AM Ville Juven wrote: Hi all, I noticed that when spawning a new task/process from a file in nsh_fileapps, the scheduler is locked prior to calling posix_spawn(), which does the file

Re: nsh_fileapps and usage of sched_lock()

2023-10-25 Thread Alan C. Assis
On 10/25/23, Nathan Hartman wrote: > On Wed, Oct 25, 2023 at 5:16 AM Ville Juven wrote: > >> Hi all, >> >> I noticed that when spawning a new task/process from a file in >> nsh_fileapps, the scheduler is locked prior to calling posix_spawn(), >> which >> does the file loading into memory etc. >>

Re: nsh_fileapps and usage of sched_lock()

2023-10-25 Thread Nathan Hartman
On Wed, Oct 25, 2023 at 5:16 AM Ville Juven wrote: > Hi all, > > I noticed that when spawning a new task/process from a file in > nsh_fileapps, the scheduler is locked prior to calling posix_spawn(), which > does the file loading into memory etc. > > I noticed one issue with this; when the file s