Rename cleaner attribute cache_line_lock to lock_cacheline
.. to make it clean that true means cleaner must lock cachelines rather than the lock is already being held. Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
parent
c40e36456b
commit
056217d103
@ -496,7 +496,7 @@ static void _acp_flush(struct acp_context *acp)
|
||||
struct ocf_cleaner_attribs attribs = {
|
||||
.cmpl_context = acp,
|
||||
.cmpl_fn = _acp_flush_end,
|
||||
.cache_line_lock = false,
|
||||
.lock_cacheline = false,
|
||||
.do_sort = false,
|
||||
.io_queue = cache->cleaner.io_queue,
|
||||
};
|
||||
|
@ -816,7 +816,7 @@ void cleaning_alru_perform_cleaning(ocf_cache_t cache, ocf_cleaner_end_t cmpl)
|
||||
|
||||
fctx->attribs.cmpl_context = fctx;
|
||||
fctx->attribs.cmpl_fn = alru_clean_complete;
|
||||
fctx->attribs.cache_line_lock = true;
|
||||
fctx->attribs.lock_cacheline = true;
|
||||
fctx->attribs.do_sort = true;
|
||||
fctx->attribs.io_queue = cache->cleaner.io_queue;
|
||||
|
||||
|
@ -564,7 +564,7 @@ void ocf_engine_clean(struct ocf_request *req)
|
||||
{
|
||||
/* Initialize attributes for cleaner */
|
||||
struct ocf_cleaner_attribs attribs = {
|
||||
.cache_line_lock = false,
|
||||
.lock_cacheline = false,
|
||||
|
||||
.cmpl_context = req,
|
||||
.cmpl_fn = _ocf_engine_clean_end,
|
||||
|
@ -377,7 +377,7 @@ static void evp_lru_clean(ocf_cache_t cache, ocf_queue_t io_queue,
|
||||
{
|
||||
struct ocf_refcnt *counter = &part->cleaning;
|
||||
struct ocf_cleaner_attribs attribs = {
|
||||
.cache_line_lock = true,
|
||||
.lock_cacheline = true,
|
||||
.do_sort = true,
|
||||
|
||||
.cmpl_context = &part->eviction_clean_iter,
|
||||
|
@ -438,7 +438,7 @@ static void _ocf_mngt_flush_container(
|
||||
req->priv = fc;
|
||||
|
||||
fc->req = req;
|
||||
fc->attribs.cache_line_lock = true;
|
||||
fc->attribs.lock_cacheline = true;
|
||||
fc->attribs.cmpl_context = fc;
|
||||
fc->attribs.cmpl_fn = _ocf_mngt_flush_portion_end;
|
||||
fc->attribs.io_queue = cache->mngt_queue;
|
||||
|
@ -46,7 +46,7 @@ static struct ocf_request *_ocf_cleaner_alloc_req(struct ocf_cache *cache,
|
||||
return NULL;
|
||||
|
||||
req->info.internal = true;
|
||||
req->info.cleaner_cache_line_lock = attribs->cache_line_lock;
|
||||
req->info.cleaner_cache_line_lock = attribs->lock_cacheline;
|
||||
|
||||
/* Allocate pages for cleaning IO */
|
||||
req->data = ctx_data_alloc(cache->owner,
|
||||
|
@ -26,7 +26,7 @@ typedef int (*ocf_cleaner_get_item)(struct ocf_cache *cache,
|
||||
* @brief Cleaning attributes for clean request
|
||||
*/
|
||||
struct ocf_cleaner_attribs {
|
||||
uint8_t cache_line_lock : 1; /*!< Clean under cache line lock */
|
||||
uint8_t lock_cacheline : 1; /*!< Cleaner to lock cachelines on its own */
|
||||
|
||||
uint8_t do_sort : 1; /*!< Sort cache lines which will be cleaned */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user