Eliminate queue -> cache mapping
Eliminate need to resolve cache based on the queue. This allows to share the queue between cache instances. The queue still holds pointer to a cache that owns the queue, but no management or io path relies on the queue -> cache mapping. Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com> Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
committed by
Michal Mielewczyk
parent
460cd461d3
commit
8b93b699c3
@@ -153,12 +153,12 @@ void *ocf_queue_get_priv(ocf_queue_t q);
|
||||
uint32_t ocf_queue_pending_io(ocf_queue_t q);
|
||||
|
||||
/**
|
||||
* @brief Get cache instance to which I/O queue belongs
|
||||
* @brief Return if queue is management queue
|
||||
*
|
||||
* @param[in] q I/O queue
|
||||
* @param[in] queue - queue object
|
||||
*
|
||||
* @retval Cache instance
|
||||
* @retval true - if management queue, otherwise false
|
||||
*/
|
||||
ocf_cache_t ocf_queue_get_cache(ocf_queue_t q);
|
||||
bool ocf_queue_is_mngt(ocf_queue_t queue);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user