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:
Robert Baldyga
2023-09-25 15:07:30 +02:00
committed by Michal Mielewczyk
parent 6cd5a27ea9
commit 460cd461d3
9 changed files with 138 additions and 30 deletions

View File

@@ -432,7 +432,7 @@ static void _ocf_mngt_flush_container(
fc->end = end;
fc->context = context;
req = ocf_req_new(cache->mngt_queue, NULL, 0, 0, 0);
req = ocf_req_new_mngt(cache->mngt_queue);
if (!req) {
error = OCF_ERR_NO_MEM;
goto finish;