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
Robert Baldyga
8b1caf5457
Merge pull request #541 from mmichal10/fix-cleaning
...
Sync cleaning deinit with running new iterations
2021-07-27 16:01:11 +02:00
Michal Mielewczyk
1620c544a1
pyocf: update cleaning policy switching test
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2021-07-27 15:44:33 +02:00
Michal Mielewczyk
a94677f433
Fix cleaning UT
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2021-07-27 15:44:33 +02:00
Michal Mielewczyk
b83da68f85
Cleaner context ref counter
...
To prevent deinitializing cleaner context (i.e. during switching policy) during
processing requests, access to cleaner should be protected with reference
counter
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2021-07-27 15:44:33 +02:00
Michal Mielewczyk
f33a6e5ce0
Make switching cleaning policy asynchronous
...
Making the operation asynchronous will allow to use refcnt utility as an
synchronization mechanism between processing cachelines and deinitializing
cleaning policy.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2021-07-27 15:44:18 +02:00
Michal Mielewczyk
26194fc536
Use cleaning ops wrapper functions
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2021-07-27 15:44:18 +02:00
Michal Mielewczyk
00aa56dd28
Wrapper functions for cleaning ops
...
The change should unify access to cleaning policy resources and facilitate
synchronization when switching cleaning policies
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2021-07-27 15:44:18 +02:00
Michal Mielewczyk
6dc29ee85e
Refactor includes
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2021-07-27 15:44:18 +02:00
Michal Mielewczyk
92f9c3d532
UT framework: fix misspelled variable name
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2021-07-27 15:44:18 +02:00
Robert Baldyga
f04c181039
Merge pull request #543 from mmichal10/fix-memleak
...
Deinit sequential cutoff on core removal
2021-07-27 10:33:09 +02:00
Michal Mielewczyk
c6fe2fc3f9
Deinit sequential cutoff on core removal
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2021-07-26 16:20:17 +02:00
Robert Baldyga
227021b416
Merge pull request #540 from mmkayPL/add-back-fastpath
...
Add back fastpath
2021-07-21 14:58:58 +02:00
Kozlowski Mateusz
bd7a89c819
Single map alloc location
...
Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com>
2021-07-21 08:27:27 +02:00
Kozlowski Mateusz
af1f3d73c2
Add back fastpath
...
Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com>
2021-07-21 08:27:25 +02:00
Kozlowski Mateusz
ec4bea4fc0
Add missing ocf_io_put to error path in ocf_core_volume_submit_io
...
Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com>
2021-07-21 08:26:31 +02:00
Robert Baldyga
3adc94f41f
Merge pull request #539 from robertbaldyga/fix-pending-misses-stack-overflow
...
Avoid stack overflow when pending read misses list is blocked
2021-07-14 15:19:01 +02:00
Robert Baldyga
a2b300d465
Avoid stack overflow when pending read misses list is blocked
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-07-14 13:04:03 +02:00
Robert Baldyga
740bf06c4b
Merge pull request #538 from robertbaldyga/fix-next-inval-getter
...
Fix helper function getting next invalid cache line
2021-07-14 10:17:39 +02:00
Robert Baldyga
be1ac09c17
Fix helper function getting next invalid cache line
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-07-13 18:56:52 +02:00
Robert Baldyga
83e01e8f6e
Merge pull request #537 from mmkayPL/cl-user-partitions-count
...
Fix remap line count for user partitions
2021-07-13 11:07:44 +02:00
Kozlowski Mateusz
8c3ed42fa2
Fix remap line count for user partitions
...
Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com>
2021-07-12 16:49:14 +02:00
Robert Baldyga
7b5084b21e
Merge pull request #536 from robertbaldyga/fix-arg-order
...
Fix argument order in ocf_metadata_set_partition_id() call
2021-07-12 10:02:28 +02:00
Robert Baldyga
f538bbd3ae
Fix argument order in ocf_metadata_set_partition_id() call
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-07-09 21:31:06 +02:00
Robert Baldyga
d79c4b7dc9
Merge pull request #535 from mmkayPL/struct-alignment
...
Align structures to cacheline
2021-07-08 13:26:57 +02:00
Kozlowski Mateusz
f494448f97
Align structures to cacheline
...
Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com>
2021-07-08 12:46:39 +02:00
Robert Baldyga
b5ed58f597
Merge pull request #534 from mmichal10/unlock-remapped
...
Unlock cachelines after failed remap
2021-07-06 16:18:55 +02:00
Michal Mielewczyk
a394dd06a8
Unlock cachelines after failed remap
...
All remapped cachelines are write locked. If the operation fails cachelines has
to be unlocked during rollback
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2021-07-06 15:09:50 +02:00
Robert Baldyga
f863bb627f
Merge pull request #533 from arutk/populate_reschedule
...
restore conditional reschedule during freelist population
2021-07-02 13:07:05 +02:00
Adam Rutkowski
96dfd87572
restore conditional reschedule during freelist population
...
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2021-07-02 11:37:49 +02:00
Robert Baldyga
aa3677da10
Merge pull request #530 from arutk/remove_eviction
...
Remove remaining stale references to "eviction" and "evp"
2021-06-30 09:47:35 +02:00
Robert Baldyga
43a142ccdd
Merge pull request #531 from arutk/fix_remove_dirty
...
fix removing dirty core
2021-06-29 09:36:45 +02:00
Michal Mielewczyk
98d2ce0264
pyocf: test for removing dirty core
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2021-06-28 17:40:49 +02:00
Adam Rutkowski
a1ec40ce10
Fix ocf_lru_repart for freelist partition
...
ocf_lru_get_list() now returs clean list for freelist partition to
provide common interface regardless of partition type.
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2021-06-28 17:39:31 +02:00