Commit Graph

2185 Commits

Author SHA1 Message Date
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
Katarzyna Treder
221bc61769 Add TF submodule
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-07-12 13:13:52 +02:00
Katarzyna Treder
675c37b640 Remove TF files
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-07-12 13:11:55 +02:00
Robert Baldyga
eb97598e48
Merge pull request #1476 from robertbaldyga/fix-compilation-on-older-rhel
Fix compilation on RHEL <9.x
2024-07-12 11:54:35 +02:00
Robert Baldyga
4b693a5ecd Fix compilation on RHEL <9.x
Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
2024-07-11 15:19:11 +02:00
Robert Baldyga
0cf71d4842
Merge pull request #1473 from robertbaldyga/kernel-6.9
Add support for kernel v6.9
2024-07-08 14:17:34 +02:00
Robert Baldyga
d3a1ce8987 Add support for kernel v6.9
Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
2024-07-08 14:16:14 +02:00
Robert Baldyga
4ad71a55b6
Merge pull request #1470 from MJAsadi72/master
Fix compile on Rockylinux 9
2024-06-27 18:16:54 +02:00
Robert Baldyga
8d59d86d7a
Merge pull request #1471 from mmichal10/fix-missing-header
configure: add missing include
2024-06-27 18:15:19 +02:00
MohammadJavad Asadi
b4a1e9aac3 Fix compile on Rockylinux 9
Signed-off-by: MohammadJavad Asadi <mj.asadi72@gmail.com>
2024-06-22 13:37:54 +03:30
Michael Lyulko
7e7a93132d configure: add missing include
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-06-21 09:42:02 +02:00
Robert Baldyga
ba5bdf4796
Merge pull request #1468 from robertbaldyga/kernel-6.8
Add support for kernel up to 6.8
2024-05-14 09:13:06 +02:00