Move alock implementation to separate file
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:

committed by
Kozlowski Mateusz

parent
2cb7270f63
commit
9a1646c8a1
File diff suppressed because it is too large
Load Diff
@@ -6,15 +6,12 @@
|
||||
#ifndef OCF_CACHE_CONCURRENCY_H_
|
||||
#define OCF_CACHE_CONCURRENCY_H_
|
||||
|
||||
/**
|
||||
* @file utils_req.h
|
||||
* @brief OCF cache concurrency module
|
||||
*/
|
||||
#include "../utils/utils_alock.h"
|
||||
|
||||
/**
|
||||
* @brief OCF cache concurrency module handle
|
||||
* @file ocf_cache_line_concurrency.h
|
||||
* @brief OCF cache concurrency module
|
||||
*/
|
||||
struct ocf_alock;
|
||||
|
||||
/**
|
||||
* @brief Initialize OCF cache concurrency module
|
||||
@@ -55,9 +52,6 @@ uint32_t ocf_cache_line_concurrency_suspended_no(struct ocf_alock *c);
|
||||
*/
|
||||
size_t ocf_cache_line_concurrency_size_of(ocf_cache_t cache);
|
||||
|
||||
/* async request cacheline lock acquisition callback */
|
||||
typedef void (*ocf_req_async_lock_cb)(struct ocf_request *req);
|
||||
|
||||
/**
|
||||
* @brief Lock OCF request for write access (Lock all cache lines in map info)
|
||||
*
|
||||
|
@@ -13,16 +13,6 @@
|
||||
* @brief OCF concurrency
|
||||
*/
|
||||
|
||||
/**
|
||||
* @brief Lock result - Lock acquired successfully
|
||||
*/
|
||||
#define OCF_LOCK_ACQUIRED 0
|
||||
|
||||
/**
|
||||
* @brief Lock result - Lock not acquired, lock request added into waiting list
|
||||
*/
|
||||
#define OCF_LOCK_NOT_ACQUIRED 1
|
||||
|
||||
/**
|
||||
* @brief Initialize OCF concurrency module
|
||||
*
|
||||
|
Reference in New Issue
Block a user