CVSROOT: /cvs Module name: src Changes by: o...@cvs.openbsd.org 2011/05/10 15:48:17
Modified files: sys/uvm : uvm_aobj.c uvm_aobj.h uvm_km.c Log message: Don't leak swapslots when doing a uvm_km_pgremove and a page is in swap only. Before we were only calling uao_dropswap() if there was a page, maning that if the buffer was swapped out then we would leak the slot. Quite rare because only pipebuffers should swap from the kernel object, but i've seen panics that implied this had happened (alpha.p for example). ok thib@ after a lot of discussion and checking the semantics.