Dynamic I/O queue management
- Queue allocation is now separated from starting cache. - Queue can be created and destroyed in runtime. - All queue ops accept queue handle instead of queue id. - Cache stores queues as list instead of array. Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com> Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:

committed by
Robert Baldyga

parent
1771228a46
commit
e53944d472
@@ -120,7 +120,7 @@ struct ocf_request {
|
||||
env_atomic master_remaining;
|
||||
/*!< Atomic counter for core device */
|
||||
|
||||
struct ocf_cache *cache;
|
||||
ocf_cache_t cache;
|
||||
/*!< Handle to cache instance */
|
||||
|
||||
const struct ocf_io_if *io_if;
|
||||
@@ -165,8 +165,8 @@ struct ocf_request {
|
||||
uint32_t alloc_core_line_count;
|
||||
/*! Core line count for which request was initially allocated */
|
||||
|
||||
uint32_t io_queue;
|
||||
/*!< I/O queue id for which request should be submitted */
|
||||
ocf_queue_t io_queue;
|
||||
/*!< I/O queue handle for which request should be submitted */
|
||||
|
||||
int error;
|
||||
/*!< This filed indicates an error for OCF request */
|
||||
|
Reference in New Issue
Block a user