Fix seq_cutoff respecting in pt read
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
This commit is contained in:
parent
2edd05c812
commit
6f4d02f251
@ -245,6 +245,7 @@ void ocf_resolve_effective_cache_mode(ocf_cache_t cache,
|
|||||||
if (ocf_seq_cutoff_check(core, req->rw, req->byte_position,
|
if (ocf_seq_cutoff_check(core, req->rw, req->byte_position,
|
||||||
req->byte_length)) {
|
req->byte_length)) {
|
||||||
req->cache_mode = ocf_req_cache_mode_pt;
|
req->cache_mode = ocf_req_cache_mode_pt;
|
||||||
|
req->seq_cutoff = 1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@ int ocf_read_pt(struct ocf_request *req)
|
|||||||
/* Traverse request to check if there are mapped cache lines */
|
/* Traverse request to check if there are mapped cache lines */
|
||||||
ocf_engine_traverse(req);
|
ocf_engine_traverse(req);
|
||||||
|
|
||||||
if (req->info.seq_cutoff && ocf_engine_is_dirty_all(req)) {
|
if (req->seq_cutoff && ocf_engine_is_dirty_all(req)) {
|
||||||
use_cache = true;
|
use_cache = true;
|
||||||
} else {
|
} else {
|
||||||
if (ocf_engine_mapped_count(req)) {
|
if (ocf_engine_mapped_count(req)) {
|
||||||
|
@ -26,9 +26,6 @@ struct ocf_req_info {
|
|||||||
uint32_t seq_req : 1;
|
uint32_t seq_req : 1;
|
||||||
/*!< Sequential cache request flag. */
|
/*!< Sequential cache request flag. */
|
||||||
|
|
||||||
uint32_t seq_cutoff : 1;
|
|
||||||
/*!< Sequential cut off set for this request */
|
|
||||||
|
|
||||||
uint32_t flush_metadata : 1;
|
uint32_t flush_metadata : 1;
|
||||||
/*!< This bit tells if metadata flushing is required */
|
/*!< This bit tells if metadata flushing is required */
|
||||||
|
|
||||||
@ -188,6 +185,9 @@ struct ocf_request {
|
|||||||
uint8_t master_io_req_type : 2;
|
uint8_t master_io_req_type : 2;
|
||||||
/*!< Core device request context type */
|
/*!< Core device request context type */
|
||||||
|
|
||||||
|
uint8_t seq_cutoff : 1;
|
||||||
|
/*!< Sequential cut off set for this request */
|
||||||
|
|
||||||
log_sid_t sid;
|
log_sid_t sid;
|
||||||
/*!< Tracing sequence ID */
|
/*!< Tracing sequence ID */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user