question about dev/md/md.c out of swap?

Kostik Belousov kostikbel at gmail.com
Wed Apr 22 11:25:33 UTC 2009


On Tue, Apr 21, 2009 at 05:32:29PM -0700, Alfred Perlstein wrote:
> Hello, a developer here at work asked me to go over 
> some of the swapper code with him.
> 
> We came across something we both couldn't understand,
> so I was wondering if anyone had looked at this.
> 
> in dev/md/md.c mdstart_swap() there is the following code,
> it seems that in the case of VM_PAGER_ERROR most of the state
> is unwound, however the page is not freed.  Is this a bug or
> are we missing something?  How is the page released?

The page belongs to the object. It will be freed when the object
is deallocated.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20090422/486c0b6d/attachment.pgp


More information about the freebsd-hackers mailing list