Page MenuHomeFreeBSD

Move OBJT_VNODE specific code from vm_object_terminate() to vnode_destroy_vobject().
ClosedPublic

Authored by kib on Aug 21 2019, 9:29 PM.
Tags
None
Referenced Files
F137281007: D21357.id.diff
Sat, Nov 22, 12:47 AM
F137280965: D21357.id61091.diff
Sat, Nov 22, 12:47 AM
F137280894: D21357.id61095.diff
Sat, Nov 22, 12:47 AM
F137280670: D21357.id61260.diff
Sat, Nov 22, 12:45 AM
F137280628: D21357.id61094.diff
Sat, Nov 22, 12:44 AM
F137279711: D21357.diff
Sat, Nov 22, 12:39 AM
Unknown Object (File)
Thu, Nov 20, 11:56 PM
Unknown Object (File)
Thu, Nov 20, 8:14 PM
Subscribers

Details

Summary

Peter, could you, please, check this change ?

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 25998

Event Timeline

In general I like this but the double setting of OBJ_DEAD does make it harder to detect things like double frees.

Untangle multiple OBJ_DEAD sets.

This revision is now accepted and ready to land.Aug 21 2019, 9:49 PM

Redo the patch back to the initial variant. Note that there is only one place that calls vm_object_terminate_dead(), so it costs nothing to set OBJ_DEAD flag there and make vm_object_terminate() to expect OBJ_DEAD is already set.

This is cleaner IMO, since both terminate_dead and terminate really not needed.

This revision now requires review to proceed.Aug 21 2019, 9:51 PM
This revision is now accepted and ready to land.Aug 21 2019, 10:14 PM
kib added a subscriber: pho.

I ran all of the stress2 tests with D21357.61095.diff on amd64. LGTM.