Keyronex / keyronex-archive

0 stars 0 forks source link

Vnode refcounting #3

Open netbsduser opened 1 year ago

netbsduser commented 1 year ago

This has been disabled for a while because the old pathname lookup code mis-refcounted, so there are probably numerous areas that need it to be handled properly. It might also be wise to implement the VFS name cache (#15) first to delay the need to implement the actual freeing of vnodes.

The actual freeing of vnodes requires some thought to do properly:

netbsduser commented 1 year ago

Keyronex/Keyronex#21 has mostly fixed this. The strategy taken:

Still to be done is to make sure this stuff is compatible with sockets. Those hold state in their vnode and need to preserve the vnode's existence.