Allocate requests for management path separately
Management path does not benefit much from mpools, as number of requests allocated is very small. It's less restrictive (mngt_queue does not have single-CPU affinity) thus avoiding mpool usage in management path allows to introduce additional restrictions on mpool, leading to I/O performance improvement. 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
6cd5a27ea9
commit
460cd461d3
@@ -493,7 +493,7 @@ void raw_dynamic_load_all(ocf_cache_t cache, struct ocf_metadata_raw *raw,
|
||||
goto err_zpage;
|
||||
}
|
||||
|
||||
context->req = ocf_req_new(cache->mngt_queue, NULL, 0, 0, 0);
|
||||
context->req = ocf_req_new_mngt(cache->mngt_queue);
|
||||
if (!context->req) {
|
||||
result = -OCF_ERR_NO_MEM;
|
||||
goto err_req;
|
||||
|
Reference in New Issue
Block a user