This avoids reacquiring the object lock after fault is complete because we can now unbusy and pip wakeup without it.
It also releases the lock earlier in CoW and avoids an expensive copy while the object lock is held.
This avoids reacquiring the object lock after fault is complete because we can now unbusy and pip wakeup without it.
It also releases the lock earlier in CoW and avoids an expensive copy while the object lock is held.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
I find the names fault_deallocate() and unlock_and_deallocate() confusing. I don't have a good alternative at the moment though.
sys/vm/vm_fault.c | ||
---|---|---|
193 ↗ | (On Diff #63284) | Presumably this unlock can also be moved up? |
sys/vm/vm_fault.c | ||
---|---|---|
185 ↗ | (On Diff #63284) | I would suggest faultstate_deallocate. |