Re: uvm_mapanon() & trylock

2019-12-01 Thread Ted Unangst
Martin Pieuchot wrote: > On 08/11/19(Fri) 17:54, Martin Pieuchot wrote: > > uvm_mapanon() is called in two occasions: mmap(2) and sigaltstack(2). > > Both code paths are obviously in process context an can sleep. That > > explains why none of them set the UVM_FLAG_TRYLOCK when calling such > > fun

Re: uvm_mapanon() & trylock

2019-12-01 Thread Martin Pieuchot
On 08/11/19(Fri) 17:54, Martin Pieuchot wrote: > uvm_mapanon() is called in two occasions: mmap(2) and sigaltstack(2). > Both code paths are obviously in process context an can sleep. That > explains why none of them set the UVM_FLAG_TRYLOCK when calling such > function. > > The diff below remove

uvm_mapanon() & trylock

2019-11-08 Thread Martin Pieuchot
uvm_mapanon() is called in two occasions: mmap(2) and sigaltstack(2). Both code paths are obviously in process context an can sleep. That explains why none of them set the UVM_FLAG_TRYLOCK when calling such function. The diff below removes support for this flag. This introduces a difference with