Queue alignment
Metadata reshuffling Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com>
This commit is contained in:
parent
fdd6b88cc4
commit
e391fc2c13
@ -56,12 +56,12 @@ struct ocf_metadata_lock
|
||||
struct ocf_metadata_global_lock global[OCF_NUM_GLOBAL_META_LOCKS];
|
||||
/*!< global metadata lock (GML) */
|
||||
env_rwlock eviction[OCF_NUM_EVICTION_LISTS]; /*!< Fast lock for eviction policy */
|
||||
env_spinlock partition[OCF_IO_CLASS_MAX]; /* partition lock */
|
||||
env_rwsem *hash; /*!< Hash bucket locks */
|
||||
env_rwsem *collision_pages; /*!< Collision table page locks */
|
||||
env_spinlock partition[OCF_IO_CLASS_MAX]; /* partition lock */
|
||||
ocf_cache_t cache; /*!< Parent cache object */
|
||||
uint32_t num_hash_entries; /*!< Hash bucket count */
|
||||
uint32_t num_collision_pages; /*!< Collision table page count */
|
||||
ocf_cache_t cache; /*!< Parent cache object */
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -36,7 +36,7 @@ struct ocf_queue {
|
||||
|
||||
env_atomic ref_count;
|
||||
env_spinlock io_list_lock;
|
||||
};
|
||||
} __attribute__((__aligned__(64)));
|
||||
|
||||
static inline void ocf_queue_kick(ocf_queue_t queue, bool allow_sync)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user