Re: pmap & buffer cache dummy pagers

2021-09-03 Thread Mark Kettenis
> Date: Thu, 2 Sep 2021 22:16:52 +0200 > From: Martin Pieuchot > > Diff below introduces two dummy pagers for subsystem that manipulate UVM > objects that are 'special'. Those pagers will be used to enforce checks > in functions that expect a lock to be held, like: > > KASSERT(obj ==

pmap & buffer cache dummy pagers

2021-09-02 Thread Martin Pieuchot
Diff below introduces two dummy pagers for subsystem that manipulate UVM objects that are 'special'. Those pagers will be used to enforce checks in functions that expect a lock to be held, like: KASSERT(obj == NULL || UVM_OBJ_IS_PMAP(obj) || rw_write_held(obj->vmobjlock));