diff options
-rw-r--r-- | kern/sref.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kern/sref.c b/kern/sref.c index 2e234b9a..dc5f446e 100644 --- a/kern/sref.c +++ b/kern/sref.c @@ -37,6 +37,8 @@ * infrequent in practice, keeping the impact on contention low. * * Locking protocol : cache -> counter -> global data + * + * TODO Reconsider whether it's possible to bring back local review queues. */ #include <stdbool.h> @@ -633,6 +635,7 @@ sref_cache_flush(struct sref_cache *cache, struct sref_queue *queue) mutex_lock(&cache->lock); + /* TODO Consider a list of valid deltas to speed things up */ for (i = 0; i < ARRAY_SIZE(cache->deltas); i++) { delta = sref_cache_delta(cache, i); |