Commit Graph

2196 Commits

Author SHA1 Message Date
Kamil Gierszewski
d48e9fc80d
test-api: update cas api
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-10 10:24:38 +02:00
Robert Baldyga
5dccbc3978
Merge pull request #1507 from rafalste/cache_detach
Implement cache detach/attach
2024-09-09 16:38:20 +02:00
Michal Mielewczyk
16690e1eab Enable cache detach
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
Signed-off-by: Jan Musial <jan.musial@huawei.com>
2024-09-09 16:30:05 +02:00
Michal Mielewczyk
af8c75b20a Enable cache attach
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@huawei.com>
2024-09-09 16:29:21 +02:00
Michal Mielewczyk
b480bbaf47 casadm: cache start refactor
Cache start and cache attach will share the same code in casadm; the following
refactor is supposed to facilitate reusing the existing code in next commits

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@huawei.com>
2024-09-09 16:27:20 +02:00
Michal Mielewczyk
12e7c8339a casadm: code cleanup and cache_stop() refactor
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@huawei.com>
2024-09-09 16:27:08 +02:00
Michal Mielewczyk
9f5a9f0d62 casadm: '-' instead of dev path for detached cache
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-09-09 15:57:35 +02:00
Michal Mielewczyk
6a1187a8b3 casadm: list cores of detached cache
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-09-09 15:57:35 +02:00
Michal Mielewczyk
fc35684910 casadm: skip printing strings of len 0
An attempt to print a string of zero length was crashing casadm.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-09-09 15:57:35 +02:00
Michal Mielewczyk
8724c29413 Disable changing cache params for detached cache
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-09-09 15:57:35 +02:00
Michal Mielewczyk
bb8fc64ed5 Enable adding core to detached cache instance
Instead of trying to access properties of potenially unavaliable cache device
use properties saved in cache priv

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-09-09 15:57:35 +02:00
Michal Mielewczyk
cef13315d0 Compare properties of a new cache device during cache attach
New cache device must have all the same properties then the previously
attached one.
Keeping cache properties in cache priv also allows to add new cores to
detached cache instance.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@huawei.com>
2024-09-09 15:57:35 +02:00
Michal Mielewczyk
e0ef8c1b8d New error codes
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-09-09 15:57:35 +02:00
Michal Mielewczyk
853e8f9357 configure: refactor cas_copy_queue_limits()
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-09-09 15:57:35 +02:00
Michal Mielewczyk
33721e7c92 Set NOMERGES flag for cache volume
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@huawei.com>
2024-09-09 15:57:30 +02:00
Robert Baldyga
20276bd9c1
Merge pull request #1509 from robertbaldyga/remove-ocf_queue_get_cache
Remove ocf_queue_get_cache()
2024-09-09 14:56:29 +02:00
Robert Baldyga
08e9f1a323 Remove ocf_queue_get_cache()
Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
2024-09-09 14:48:44 +02:00
Robert Baldyga
f9af5c2e56
Merge pull request #1508 from Kamoppl/kamilg/fix_ti_actions
github-actions: update checkout version
2024-09-09 12:39:07 +02:00
Kamil Gierszewski
202a9124c7
github-actions: update checkout version
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-09 12:28:48 +02:00
Robert Baldyga
9fa902496e
Merge pull request #1458 from Open-CAS/dependabot/github_actions/dot-github/workflows/tj-actions/changed-files-41
Bump tj-actions/changed-files from 18.2 to 41 in /.github/workflows
2024-09-09 11:18:23 +02:00
Robert Baldyga
f0727cce62
Merge pull request #1503 from mmichal10/block-standy
Block standby
2024-09-09 11:16:42 +02:00
Robert Baldyga
3de21a5b65
Merge pull request #1504 from robertbaldyga/ram-calculation-update
Update needed RAM calculation method
2024-09-06 16:34:20 +02:00
Michal Prager
f1ffd7af80 Update needed RAM calculation method
Signed-off-by: Michal Prager <michal.prager@huawei.com>
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
2024-09-06 15:47:26 +02:00
Michal Mielewczyk
0f0ef79b89 Disable standby mode
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-09-06 13:23:07 +02:00
Michal Mielewczyk
5ef09fb1a2 casadm: A generic mechanism to disable commands
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-09-06 12:24:15 +02:00
Robert Baldyga
ec0e03fb39
Merge pull request #1502 from robertbaldyga/update-mngt-queue-creation
Update mngt queue creation API
2024-09-05 16:15:16 +02:00
Robert Baldyga
d605ab48c8 Update mngt queue creation API
Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
2024-09-05 16:07:37 +02:00
Robert Baldyga
45a43e146f
Merge pull request #1500 from katlapinka/kasiat/remove-duplicate
Remove test trim duplicate and update the original one
2024-09-04 15:59:18 +02:00
Katarzyna Treder
e711dc981d Remove test trim duplicate and update the original one
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-04 13:47:18 +02:00
Robert Baldyga
5ca92d422d
Merge pull request #1402 from robertbaldyga/tests-fix-invalid-mark
tests: Fix invalid mark
2024-09-04 13:41:45 +02:00
Robert Baldyga
63244e6943
Merge pull request #1499 from katlapinka/kasiat/perf-test
Add write performance test
2024-09-04 11:32:43 +02:00
Katarzyna Treder
9e0d7df3a2 Add write performance test
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-04 11:29:36 +02:00
Robert Baldyga
dd040386c5
Merge pull request #1498 from robertbaldyga/fix-kmemleak
rpool: Mark an entry for kmemleak outside of atomic context
2024-09-02 13:53:56 +02:00
Robert Baldyga
20ad0478c8 rpool: Mark an entry for kmemleak outside of atomic context
The kmemleak_alloc() function can sleep, thus should not be called
under spinlock. This patch fixes bug occurring on debug kernel with
kmemleak enabled.

Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
2024-09-02 12:16:59 +02:00
Robert Baldyga
80f22e99f4
Merge pull request #1495 from robertbaldyga/version-v24.9
Update version to v24.9
2024-08-28 23:37:35 +02:00
Robert Baldyga
623f32f33c Update version to v24.9
Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
2024-08-28 18:50:41 +02:00
Robert Baldyga
b1f3cc1520
Merge pull request #1494 from robertbaldyga/update-ocf-20240828
Update OCF submodule and API changes
2024-08-28 09:51:42 +02:00
Michal Mielewczyk
c9644baf42 Rename "initializing" cache state to "detached"
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
2024-08-28 09:50:27 +02:00
Robert Baldyga
91590ce96f Update OCF submodule
Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
2024-08-28 08:17:17 +02:00
Michał Mielewczyk
020b6e2b99
Merge pull request #1492 from Open-CAS/mmichal10-patch-1
github: Improve bug template
2024-08-21 11:15:54 +02:00
Michał Mielewczyk
348b39ba69
github: Improve bug template
Ask reporter to include configuration files for fio, vbdench or any other
benchmarking tool

Signed-off-by: Michał Mielewczyk <michal.mielewczyk@huawei.com>
2024-08-21 10:47:07 +02:00
Robert Baldyga
6c0829d5ea
Merge pull request #1481 from mmichal10/fput-sync
Close block devices in a synchronous manner
2024-07-31 08:45:33 +02:00
Michal Mielewczyk
0836101b85 configure: refactor bdev_{close|open}() API
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-07-31 07:13:12 +02:00
Michal Mielewczyk
cc7ac0f551 Close block devices in a synchronous manner
fput() doesn't wait for all references on the disk to be unclaimed but instead
it only schedules a worker that is supposed to cleanup resources once the device
is released.

During cache initialization we open device at least twice - to check its
properties and then to actually use it as cache. But since we use the async
fput() after the probe, the device might still be in use once we try to open it
for the second time (the second open returns -EBUSY).

Using synchronous __fput_sync() to close the device fixes the issue

__fput_sync() exists in the kernel API longer than bdev_file_open_by_path() and
the presence of the latter is the condition to use the synchronous put so it is
perfectly safe to get rid of fput() from the configure framework

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-07-31 07:12:01 +02:00
Robert Baldyga
b3afde9b98
Merge pull request #1484 from katlapinka/kasiat/fix-tf-submodule
Fix TF submodule
2024-07-25 13:14:53 +02:00
Katarzyna Treder
ba559a2b67 Fix TF submodule
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-07-25 12:18:42 +02:00
Katarzyna Treder
f03ce559a0
Merge pull request #1477 from katlapinka/kasiat/ft-submodule
Remove TF files and add TF as a submodule
2024-07-25 10:47:09 +02:00
Robert Baldyga
518dd6776e
Merge pull request #1480 from robertbaldyga/fix-redefined
Fix redefined macro error
2024-07-23 22:06:24 +02:00
Robert Baldyga
2bcb220a03 Fix redefined macro error
Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
2024-07-22 15:53:10 +02:00
Katarzyna Treder
80a74a11f4 Update to work with TF submodule
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-07-16 15:07:04 +02:00