Commit Graph

1114 Commits

Author SHA1 Message Date
Slawomir Jankowski
a057a0082f Handle cache stopping interruption
Ignore the interruption of the stop operation - will finish asynchronously.
Remove redundant `ocf_queue_put`.
Move creating the `finish_thread` during the cache stop
from the `_cache_mngt_cache_stop_sync` to the `cache_mngt_exit_instance`
and give it a proper handling.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2021-01-19 16:25:11 +01:00
Robert Baldyga
9b3fba2f1a
Merge pull request #637 from mmichal10/core-remove-improvements
update ocf: remove core fine locking
2021-01-18 11:33:36 +01:00
Michal Mielewczyk
36c98086e7 update ocf: remove core fine locking
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2021-01-18 03:50:07 -05:00
Robert Baldyga
a4753f3f90
Merge pull request #631 from robertbaldyga/more-conservative-mem-check
Restore more conservative free memory calculation method
2021-01-15 21:07:06 +01:00
Robert Baldyga
493caf2b31 configure: Fix coding style
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-01-15 10:10:41 +01:00
Robert Baldyga
ca3e1a5984 Revert "modules: use si_mem_available() when possible"
This method produced too optimistic free memory value, which in result
led to oom killer activation. This patch restores more conservative
free memory calculation method.

This reverts commit 1e9b7a4262.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-01-14 15:16:09 +01:00
Robert Baldyga
f967596b47
Merge pull request #625 from robertbaldyga/metadata-probe-error-handle
Handle error in ocf_metadata_probe() complete callback properly
2021-01-13 18:00:52 +01:00
Robert Baldyga
02c3910677 Handle error in ocf_metadata_probe() complete callback properly
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-01-13 15:20:54 +01:00
Robert Baldyga
722767b06f
Merge pull request #624 from mmichal10/remove-free-stat
Remove `Free` entry from ioclass usage stats
2021-01-12 13:02:47 +01:00
Michal Mielewczyk
b4a34fe9c9 tests: update ioclass stats tests
`Free` is no longer a part of the ioclass usage stats

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2021-01-12 05:11:16 -05:00
Michal Mielewczyk
0e1ba12756 test api: class for ioclass usage stats
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2021-01-12 05:11:16 -05:00
Michal Mielewczyk
6cbce57106 casadm: don't print Free entry for ioclass stats
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2021-01-12 05:11:09 -05:00
Robert Baldyga
cbc1de7a37
Merge pull request #614 from Ostrokrzew/message
Move message about by-id path higher
2021-01-08 12:25:36 +01:00
Robert Baldyga
58438c3a5d
Merge pull request #617 from robertbaldyga/update-after-tf-api-changes
tests: Update tests after test-framework API changes
2021-01-08 12:00:55 +01:00
Slawomir Jankowski
fb8fb63f06 Add path sanitizing
to `print_slow_atomic_cache_start_info` after removing check from lower
function `_check_cache_device`.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2021-01-08 11:45:52 +01:00
Robert Baldyga
76aaaef62f
Merge pull request #621 from robertbaldyga/update-ocf-2021
Update OCF - seq cutoff fix
2021-01-08 11:16:57 +01:00
Robert Baldyga
3d1d503fef Update OCF - seq cutoff fix
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-01-08 11:06:35 +01:00
Robert Baldyga
9f23f47c9d
Merge pull request #618 from rafalste/fix_weak_modules_path_resolving
Fix resolving modules path for weak-modules
2021-01-07 14:26:14 +01:00
Rafal Stefanowski
87ea8ced35 Fix resolving modules path for weak-modules
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2021-01-07 10:26:38 +01:00
Robert Baldyga
22b4288f3d tests: Update tests after test-framework API changes
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-01-05 20:35:58 +01:00
Robert Baldyga
5d5b6ae594
Merge pull request #616 from Ostrokrzew/api_fix
Fix recent change in functional tests API
2021-01-05 18:31:46 +01:00
Robert Baldyga
f8687bb53b
Merge pull request #615 from mmichal10/uninitialized_access
casadm: prevent acccess to uninitialized variables
2021-01-05 16:53:00 +01:00
Slawomir Jankowski
e2ea2f1b30 Fix recent change in functional tests API
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2021-01-05 16:44:47 +01:00
Michal Mielewczyk
92ab19999e casadm: prevent acccess to uninitialized variables
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2021-01-05 09:54:17 -05:00
Slawomir Jankowski
be87b59303 Move message about by-id path higher
Not every usage of `set_device_path()` needs to print message.
Sometimes it's internal operation and can contain misleading info.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2021-01-05 14:40:35 +01:00
Robert Baldyga
42c3f3ed8c
Merge pull request #613 from robertbaldyga/start-finalize-sync
Handle cache start finalize synchronously
2020-12-31 21:11:24 +01:00
Robert Baldyga
6bd2681134
Merge pull request #611 from robertbaldyga/shorten-cleaner-thead-name
Shorten cleaner thread name
2020-12-31 21:11:10 +01:00
Robert Baldyga
c9dff585b7
Merge pull request #608 from arutk/fix_by_id_path_msg
More meaningful error messages around by-id path
2020-12-31 21:10:56 +01:00
Robert Baldyga
7e78679400
Merge pull request #607 from robertbaldyga/loader-fix-log
open-cas-loader: Fix error message
2020-12-31 21:10:39 +01:00
Robert Baldyga
1917be71f0
Merge pull request #610 from robertbaldyga/fix-cache-list
Fix listing caches
2020-12-31 19:53:39 +01:00
Robert Baldyga
238b11846b Handle cache start finalize synchronously
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-12-31 19:49:03 +01:00
Adam Rutkowski
6d1af42478 More meaningful error messages around by-id path
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2020-12-31 12:24:03 +01:00
Robert Baldyga
ea581953e1 Shorten cleaner thread name
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-12-30 18:12:21 +01:00
Robert Baldyga
f87e6970a5 Fix listing caches
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-12-30 17:58:16 +01:00
Robert Baldyga
d1a2a5ada2 open-cas-loader: Fix error message
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-12-29 10:50:42 +01:00
Robert Baldyga
e623c44b3b
Merge pull request #606 from arutk/ocf_122320
OCF update
2020-12-23 17:10:43 +01:00
Adam Rutkowski
5440a1bd24 OCF update
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2020-12-23 16:58:22 +01:00
Robert Baldyga
309b674fd8
Merge pull request #535 from Ostrokrzew/by-id
Disallow to use other than by-id path to core or cache device
2020-12-23 14:38:07 +01:00
Robert Baldyga
2753bad018
Merge pull request #568 from mmichal10/occupancy-per-ioclass
Occupancy per ioclass
2020-12-23 14:36:02 +01:00
Michal Mielewczyk
fb1a1ab57f tests: new ioclass config in existing tests
Update existing tests to work with new ioclass config format

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-12-23 08:11:20 -05:00
Michal Mielewczyk
0bcd665818 tests: test ioclass config after metadata load
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-12-23 08:11:20 -05:00
Michal Mielewczyk
80d113bb59 tests: repart with occupancy threshold enabled
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-12-23 08:11:19 -05:00
Michal Mielewczyk
89b4f31806 tests: resize existing ioclass
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-12-23 08:11:19 -05:00
Michal Mielewczyk
f803dff669 tests: verify if parts are evicted in good order
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-12-23 08:11:19 -05:00
Michal Mielewczyk
1ba61535fa tests: basic test for occupancy threshold - read
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-12-23 08:11:19 -05:00
Michal Mielewczyk
48530b2123 tests: verify custom partitions usage stats sum
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-12-23 08:11:19 -05:00
Michal Rakowski
fe226f6fed tests: basic test for occupancy threshold - write
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-12-23 08:11:19 -05:00
Michal Mielewczyk
4270593e7b tests: common helpers for ioclass tests
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-12-23 08:11:19 -05:00
Michal Mielewczyk
7cd37e45a9 tests: update requirements.txt
Add `recordclass` package needed for occupancy-per-ioclass tests

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-12-23 08:11:19 -05:00
Michal Mielewczyk
741db6b7e1 tests: improve ioclass tests helper
Use predefined consts instead of raw values to create default ioclass

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-12-23 08:11:19 -05:00