diff options
author | Richard Braun <rbraun@sceen.net> | 2017-01-25 21:52:43 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-01-25 21:52:43 +0100 |
commit | 84d7dd397993500e199dd2f06ef1e14f95b5fb56 (patch) | |
tree | 10908225441189410b56b65954b35768ec71c74a /kern/sref.c | |
parent | 1f98019b426cbbff414bfb42973287c8ab58486f (diff) |
kern/sref: add a couple of TODOs
Diffstat (limited to 'kern/sref.c')
-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 2e234b9..dc5f446 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); |