Today
Further cleanup of unionfs_unlock()
Ignore me
Disclaimer: I am not familiar with the memory management subsystem.
From my understanding, vm_object_reference(obj) is called to account for the reference that we add by calling vm_map_find on the kernel map, since the comment on the latter function explicitly requires the caller to increment the object reference counter.
But I could not find evidence that vm_map_remove will actually remove the reference above.. is that the case? I tried to look in the code, but I could not find the spot nor comments or documentation about that. Also, I would think that vm_map_remove (which undoes what vmap_map_find does, I guess) does not drop the object reference since its counterpart also does not do it.
- Rebase with new nomenclature
- Fixup commit message
I think they are useful.
I think this would be useful for driver developers, but we'd need to document is suitably so people know to look for it.
Indeed this functionality is now embodied in ffs_search.
Fix is correct. Clearly a cut & paste blunder when I wrote it.
LGTM
I think it's ok but we need to document it in the FDP
It would be more idiot-proof to say that the user should run pkg upgrade perhaps.
Address @kib's feedback further. I didn't reproduce the problem we solved with mfence, so removed that.
Коллеги,
in https://reviews.freebsd.org/D52774 better solution is proposed
it is already updated in other patch
kp feedback: just initialize the copies to 0
I'll defer to you and kib as maintainers whether this is a good direction. Personally I do like the flattening of the structure that results from moving line 561/563 and following out of the loop, but I'm less sure about the initial loop unrolling. FWIW my preference for the warning would still be to just NULL initialize child.
Changes due to the latest comments.
Panel Used By
Dashboard | lffpires_ruabrasil.org's Dashboard |