Introduce d2c request

This avoids unnecessary map allocation and initialization of unused fields of
request structure. It also allows to track thier number separately from
the regular requests

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 22:38:01 +02:00
committed by Michal Mielewczyk
parent 8b93b699c3
commit dc58eeae9b
3 changed files with 41 additions and 7 deletions

View File

@@ -85,6 +85,8 @@ struct ocf_cache {
/* # of requests accessing attached metadata, excluding
* management reqs */
struct ocf_refcnt metadata __attribute__((aligned(64)));
/* # of requests in d2c mode */
struct ocf_refcnt d2c;
} refcnt;
struct {