diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2021-02-09 20:59:02 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2021-02-09 20:59:02 +0000 |
| commit | d60fa10fd872db7e3d8cb1e161cfdae026c43b14 (patch) | |
| tree | e19b79c68276ce72fabece9595abbdd5e6378eb0 /util/storage/lruhash.c | |
| parent | 072fbfa38b24d202f4eac875ad2f93531dad7f7e (diff) | |
Diffstat (limited to 'util/storage/lruhash.c')
| -rw-r--r-- | util/storage/lruhash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/storage/lruhash.c b/util/storage/lruhash.c index 0003ff491e46..3500a4ef0fe8 100644 --- a/util/storage/lruhash.c +++ b/util/storage/lruhash.c @@ -398,13 +398,13 @@ lruhash_remove(struct lruhash* table, hashvalue_type hash, void* key) return; } table->num--; - table->space_used -= (*table->sizefunc)(entry->key, entry->data); - lock_quick_unlock(&table->lock); + table->space_used -= (*table->sizefunc)(entry->key, entry->data); lock_rw_wrlock(&entry->lock); if(table->markdelfunc) (*table->markdelfunc)(entry->key); lock_rw_unlock(&entry->lock); lock_quick_unlock(&bin->lock); + lock_quick_unlock(&table->lock); /* finish removal */ d = entry->data; (*table->delkeyfunc)(entry->key, table->cb_arg); |
