From b25ea7c8ec77ec6e9811aa362491ae4e3158f78a Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Thu, 11 Mar 2021 14:41:13 +0100 Subject: [PATCH] seq_cutoff: Fix stream promotion fastpath Now req_count starts from 1. Signed-off-by: Robert Baldyga --- src/ocf_seq_cutoff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ocf_seq_cutoff.c b/src/ocf_seq_cutoff.c index bd6b348..d7bd8fd 100644 --- a/src/ocf_seq_cutoff.c +++ b/src/ocf_seq_cutoff.c @@ -305,7 +305,7 @@ void ocf_core_seq_cutoff_update(ocf_core_t core, struct ocf_request *req) if (req->byte_length >= threshold) promote = true; - if (promotion_count == 0) + if (promotion_count == 1) promote = true; if (req->seq_cutoff_core || promote) {