seq_cutoff: Fix stream promotion fastpath

Now req_count starts from 1.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga 2021-03-11 14:41:13 +01:00
parent d28451ab4a
commit b25ea7c8ec

View File

@ -305,7 +305,7 @@ void ocf_core_seq_cutoff_update(ocf_core_t core, struct ocf_request *req)
if (req->byte_length >= threshold) if (req->byte_length >= threshold)
promote = true; promote = true;
if (promotion_count == 0) if (promotion_count == 1)
promote = true; promote = true;
if (req->seq_cutoff_core || promote) { if (req->seq_cutoff_core || promote) {