Re: [PATCH 2/3 gnumach] vm_map_lookup: Add parameter for exiting with map locked

2024-02-21 Thread Samuel Thibault
(sorry my mail server kept the first mails for itself for some time...) Damien Zammit, le mer. 21 févr. 2024 13:46:05 +, a ecrit: > diff --git a/vm/vm_map.c b/vm/vm_map.c > index e4672260..090a5c9c 100644 > --- a/vm/vm_map.c > +++ b/vm/vm_map.c > @@ -4627,7 +4627,8 @@ vm_map_t vm_map_fork(vm_m

[PATCH 2/3 gnumach] vm_map_lookup: Add parameter for exiting with map locked

2024-02-21 Thread Damien Zammit
This adds a parameter called exit_map_locked to vm_map_lookup() that allows the function to return with the map locked. This is to prepare for fixing a bug with gsync where the map is locked twice by mistake. Co-Authored-By: Sergey Bugaev --- i386/intel/read_fault.c | 4 ++-- kern/gsync.c