Add single hash bucket lock interface

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
Adam Rutkowski
2019-08-01 16:53:20 -04:00
parent 3a70d68d38
commit 2333d837fb
4 changed files with 59 additions and 3 deletions

View File

@@ -435,6 +435,7 @@ struct ocf_metadata_lock
env_spinlock eviction; /*!< Fast lock for eviction policy */
env_rwsem *hash; /*!< Hash bucket locks */
uint32_t num_hash_entries; /*!< Hash bucket count */
ocf_cache_t cache; /*!< Parent cache object */
};
/**