Merge pull request #467 from robertbaldyga/seq-cutoff-fix-promotion-fastpath

seq_cutoff: Fix stream promotion fastpath
This commit is contained in:
Robert Baldyga 2021-03-12 10:08:31 +01:00 committed by GitHub
commit c6bf894f46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
promote = true;
if (promotion_count == 0)
if (promotion_count == 1)
promote = true;
if (req->seq_cutoff_core || promote) {