Re: Reaper & amaps

2021-06-15 Thread Jonathan Matthew
On Mon, Jun 14, 2021 at 05:35:07PM +0200, Mark Kettenis wrote: > > Date: Mon, 14 Jun 2021 11:50:24 +0200 > > From: Martin Pieuchot > > > > Now that operations on amaps are serialized using a per-map rwlock > > the KERNEL_LOCK() shouldn't be necessary to call amap_unref(). The > > diff below

Re: Reaper & amaps

2021-06-14 Thread Mark Kettenis
> Date: Mon, 14 Jun 2021 11:50:24 +0200 > From: Martin Pieuchot > > Now that operations on amaps are serialized using a per-map rwlock > the KERNEL_LOCK() shouldn't be necessary to call amap_unref(). The > diff below allows the reaper to do this operation before grabbing it. > > I haven't seen

Reaper & amaps

2021-06-14 Thread Martin Pieuchot
Now that operations on amaps are serialized using a per-map rwlock the KERNEL_LOCK() shouldn't be necessary to call amap_unref(). The diff below allows the reaper to do this operation before grabbing it. I haven't seen any relevant contention on the reaper in my profilings, so I don't expect any