:Is there a good reason for not having the vm_object_clear_flag() in
:vm_object_reference()?

    Well, yes...  vm_object's are referenced for all sorts of things
    temporarily.  Everything from a process looking one up temporarily
    to the swap code issuing I/O.  None of these references have anything
    to do with OBJ_ONEMAPPING.

:A reference count leak did occur, ref_count was bumped without other
:sanity flags being cleared, the code makes it easy to shoot yourself
:in the foot.

    This is not necessarily a leak.  If you have discontinuous vm_map_entry
    structures pointing to the same vm_object, then the vm_object will have
    a big reference count and can still be set OBJ_ONEMAPPING.

                                        -Matt



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to