Adam Rutkowski
48bc6c2f6b
Always use async queue kick in management pipeline
...
Management pipelines tend to consist of multiple asynchronous steps.
Allowing synchronous queue kick results in massive call stacks (e.g.
almost 500 functions deep in case of cache stop). Since async kick
is required anyway, it seems reasonable to switch to async kick
in pipeline implementation.
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2021-09-17 12:39:09 +02:00
Robert Baldyga
8108736c14
Merge pull request #570 from jfckm/fix-example
...
Fix attach with no cache_line_size specified
2021-09-16 19:12:44 +02:00
Jan Musial
010f30eeaf
Validate activate parameters
...
Signed-off-by: Jan Musial <jan.musial@intel.com>
2021-09-14 08:56:41 +02:00
Jan Musial
b9c84e331c
Fix attach with no cache_line_size specified
...
Signed-off-by: Jan Musial <jan.musial@intel.com>
2021-09-13 12:52:33 +02:00
Robert Baldyga
886c8d4e31
Merge pull request #569 from robertbaldyga/fix-clear-valid-if-clean
...
Fix metadata_clear_valid_if_clean()
2021-09-10 08:55:34 +02:00
Robert Baldyga
076b5995ed
Fix metadata_clear_valid_if_clean()
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-10 08:12:11 +02:00
Robert Baldyga
7587bec07c
Merge pull request #567 from robertbaldyga/optimize-out-recovery-sector-loop
...
Optimize out looping over cache line sectors in recovery
2021-09-08 13:57:32 +02:00
Robert Baldyga
d4c2fa6459
Merge pull request #568 from mmichal10/fix-passive-update
...
Fix metadata io detection in passive mode
2021-09-08 13:57:22 +02:00
Michal Mielewczyk
612f68b3c1
Fix metadata io detection in passive mode
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2021-09-08 13:33:04 +02:00
Robert Baldyga
1a3843ba12
Little coding style fix
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-07 22:54:10 +02:00
Robert Baldyga
1892f58aba
Optimize out looping over cache line sectors in recovery
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-07 22:54:10 +02:00
Robert Baldyga
65d3e7a41a
Introduce ocf_metadata_clear_valid_if_clean()
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-07 22:54:10 +02:00
Robert Baldyga
d7c1404f82
Simplify metadata bit function declarations
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-07 22:54:10 +02:00
Robert Baldyga
20741206ed
Merge pull request #566 from robertbaldyga/remove-cache-line-settings
...
Get rid of struct ocf_cache_line_settings
2021-09-07 17:51:22 +02:00
Robert Baldyga
12a82d7fb1
Get rid of struct ocf_cache_line_settings
...
Remove struct that contains redundant data.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-07 14:53:46 +02:00
Robert Baldyga
fd4400476e
Merge pull request #557 from robertbaldyga/cache-passive-state
...
Introduce cache passive state
2021-09-07 14:50:40 +02:00
Robert Baldyga
7d43aae3a0
pyocf: Add new error codes
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-06 20:44:40 +02:00
Robert Baldyga
7b38ad205c
Add cache activation from passive state
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-06 20:44:40 +02:00
Robert Baldyga
cc22c57cb7
Set proper cache pointer in front volumes
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-06 13:49:21 +02:00
Robert Baldyga
f96451a698
Introduce ocf_cache_is_passive()
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-06 13:49:21 +02:00
Robert Baldyga
c662649f31
Increment metadata refcount on cache front volume io
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-06 13:49:21 +02:00
Robert Baldyga
d5bd3fbd78
Free zeroed metadata pages on update in raw_dynamic
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-06 13:49:21 +02:00
Robert Baldyga
e23342cb0e
Update metadata in passive mode
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-06 13:49:21 +02:00
Robert Baldyga
9b3a0c968e
Introduce ocf_metadata_passive_update()
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-06 13:49:21 +02:00
Robert Baldyga
1fd9a448d4
Introduce passive cache state
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-06 13:49:21 +02:00
Robert Baldyga
ee42d9aaaf
Duplicate cache name in struct ocf_cache
...
Cache name is needed for logging in passive mode, when config metadata
is still not accessible.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-03 17:22:22 +02:00
Robert Baldyga
85e8b414c4
Add ocf_metadata_load_unsafe()
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-03 17:22:22 +02:00
Robert Baldyga
ad52a7e2e1
Introduce cache front volume
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-03 17:22:22 +02:00
Robert Baldyga
fa8e7564f0
Move ocf_io_get_internal() to private header
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-03 17:22:22 +02:00
Robert Baldyga
e31e7283d9
Rework volume type management
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-03 17:22:22 +02:00
Robert Baldyga
a2bef43975
Add missing lock in ocf_ctx_get_volume_type_id()
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-03 17:22:22 +02:00
Robert Baldyga
a00ec916e2
Make post metadata load init a separate step in pipeline
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-03 17:22:22 +02:00
Robert Baldyga
c6c6618ad8
Move recovery code from metadata to cache mngt
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-03 17:22:22 +02:00
Robert Baldyga
a2db4d14e8
Move core initialization code from metadata to mngt
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-03 17:22:22 +02:00
Robert Baldyga
24728330fc
Make _ocf_mngt_load_add_cores a separate step in pipeline
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-03 17:22:22 +02:00
Robert Baldyga
20228561c9
Move metadata deinit to separate pipeline step
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-03 17:22:22 +02:00
Robert Baldyga
1f6b83f87d
Decouple cache attached state from metadata refcount state
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-03 17:22:22 +02:00
Robert Baldyga
9ab4c51dfa
Expose superblock operations as part of internal metadata API
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-03 17:22:22 +02:00
Robert Baldyga
ab034ab53d
Fix uuid comparison in core pool
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-03 17:22:22 +02:00
Robert Baldyga
8015a30348
Fix documentation of ocf_cache_is_running()
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-02 22:38:37 +02:00
Robert Baldyga
82abcd11e7
Fix documentation of ocf_metadata_raw_rd_access()
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-02 22:38:37 +02:00
Robert Baldyga
387cf1b9a5
Fix debug tracing in metadata
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-09-02 22:38:37 +02:00
Robert Baldyga
43917e88bc
Merge pull request #560 from KanagiAomori/json
...
Flattened ocf_core_info struct
2021-08-26 09:55:39 +02:00
Piotr Debski
79ebd18d33
Flattened ocf_core_info struct
...
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2021-08-25 16:01:42 +02:00
Robert Baldyga
4d1b086956
Merge pull request #552 from robertbaldyga/remove-trace
...
Remove trace API
2021-08-09 16:11:43 +02:00
Robert Baldyga
c1e9c1fa96
Remove trace API
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-08-09 10:00:01 +02:00
Robert Baldyga
865d29d0cb
Merge pull request #527 from arutk/clc_ut_fix
...
fix debug logs in cacheline concurrency UT tests
2021-07-29 23:18:16 +02:00
Robert Baldyga
b26483fab5
Merge pull request #528 from arutk/remove_persistent_ops
...
Remove accidentaly included ocf_persistent_metadata_ops
2021-07-29 23:17:51 +02:00
Robert Baldyga
82be5fc01d
Merge pull request #544 from mmichal10/fix-security-tests
...
Remove metadata updated from security tests
2021-07-29 13:45:14 +02:00
Michal Mielewczyk
a072e071e2
Remove metadata updated from security tests
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2021-07-29 09:51:29 +02:00