Module Name: src Committed By: manu Date: Fri Nov 16 02:39:02 UTC 2018
Modified Files: src/lib/libperfuse: debug.c ops.c perfuse.c perfuse_priv.h Log Message: Use reclaim2 to fix reclaim/lookup race conditions The PUFFS reclaim operation had a race condition with lookups: we could be asked to lookup a node, then to reclaim it before lookup completion. At lookup completion, we would then create a leaked node. Enter the PUFFS reclaim2 operation, which features a nlookup argument. That let us count how many lookups are pending and avoid the above described scenario. It also makes the codes simplier. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/lib/libperfuse/debug.c cvs rdiff -u -r1.84 -r1.85 src/lib/libperfuse/ops.c cvs rdiff -u -r1.40 -r1.41 src/lib/libperfuse/perfuse.c cvs rdiff -u -r1.36 -r1.37 src/lib/libperfuse/perfuse_priv.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.