Commit Graph

1632 Commits

Author SHA1 Message Date
Rafal Stefanowski
b14bf05ff8 Add missing license info
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-03-28 11:31:15 +02:00
Robert Baldyga
59f2a86db0
Merge pull request #1085 from hammerg/bio_max_vecs
configure/bio_max_vecs: adapt to kernel 5.12
2022-03-25 22:21:45 +01:00
Robert Baldyga
f98a2862b0
Merge pull request #1133 from kmajzero/master
Manpage update to include standby mode
2022-03-24 11:17:24 +01:00
Robert Baldyga
f30cfc660e
Merge pull request #1132 from mmichal10/standby-log
Standby log
2022-03-24 11:16:45 +01:00
Krzysztof Majzerowicz-Jaszcz
3988447c4e Manpage update to include standby mode
Updated manpage troff source with standby mode options

Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com>
2022-03-24 10:49:25 +01:00
Michal Mielewczyk
c11e80d085 casadm: more informative logging on standby detach
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-24 10:46:30 +01:00
Michal Mielewczyk
5c8f9a0d8f casadm: more informative logging on activate
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-24 10:46:30 +01:00
Robert Baldyga
3c2fd8059c
Merge pull request #1131 from mmichal10/remain-standby
Remain standby
2022-03-24 09:33:25 +01:00
Michal Mielewczyk
3f525179e4 Put module in case of failing to finalize activate
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-24 09:16:50 +01:00
Michal Mielewczyk
387e22eaaa Remain in standby in case of minor activate error
Instead of stopping passive instance in case of every possible error, allow it
to remain in standby mode if the error was handleable

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-24 09:16:50 +01:00
Michal Mielewczyk
d9d8062f7c Mark cache priv as inited during activate
Cache priv is being allocated on starting cache instance and is freed only when
stopping cache. This cachnge allows to properly handle rollback if activate has
failed. Without setting this flag managment queue is not being stopped despite
its cache doesn't exist.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-24 09:16:50 +01:00
Robert Baldyga
14b973ba11
Merge pull request #1116 from mmichal10/fix-ram-msg
Fix error message about not enough amount of RAM
2022-03-23 15:34:57 +01:00
Karolina Rogowska
f0c994934b
Merge pull request #1106 from mmichal10/test-discard-start
tests: fix test_trim_start_discard
2022-03-23 13:55:54 +01:00
Karolina Rogowska
8413d32197
Merge pull request #1124 from mmichal10/fix-io-class-dir-test
tests: refactor ioclass directory based test
2022-03-23 13:54:45 +01:00
Michal Mielewczyk
7abae88298 tests: refactor ioclass directory based test
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-23 08:08:46 +01:00
Michal Mielewczyk
8a8420be2a Fix error message about not enough amount of RAM
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-22 09:22:55 +01:00
Michal Mielewczyk
e526345ef7 tests: fix test_trim_start_discard
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-22 07:45:47 +01:00
Robert Baldyga
fdd50e61bd
Merge pull request #1105 from mmichal10/test-discard-on-cache
tests: test for progagating discard reqs to cache
2022-03-21 14:04:40 +01:00
Michal Mielewczyk
e46b732b28 tests: test for propagating discard reqs to cache
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-21 11:48:45 +01:00
Robert Baldyga
30eff21e65
Merge pull request #1104 from mmichal10/init-var
Initialize uninitialized variable
2022-03-21 08:34:06 +01:00
Michal Mielewczyk
e86b14a1e7 Update README.md
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-21 07:31:30 +01:00
Michal Mielewczyk
637484f88f casadm: initialize variable
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-21 07:26:03 +01:00
Robert Baldyga
e4c642d256
Merge pull request #1102 from robertbaldyga/flush-write-flag
Propagate io->dir flags when submitting flush bio in bottom volume
2022-03-18 11:30:01 +01:00
Robert Baldyga
a185a6e595 Propagate io->dir flags when submitting flush bio in bottom volume
When dir is ignored, and 0 is passed instead, each flush request will
appear as READ request, which is not supported by some block device
drivers.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-17 20:43:15 +01:00
Robert Baldyga
e7b6d4ce6f
Merge pull request #1097 from robertbaldyga/dont-propagate-discard-flags
Don't propagate bio flags to OCF for discard I/O
2022-03-16 15:49:49 +01:00
Robert Baldyga
e4d4750f96 Don't propagate bio flags to OCF for discard I/O
One of the steps of discarding data in cache is invalidating OCF metadata.
If a cache line which is supposed to be discarded is dirty, invalidating
it will require flushing metadata. Unfortunately, OCF allocates flushing
requests with the exactly the same flags as the original IO (in this case
discard flag is set) so the page on the disk is discarded instead of being
flushed. In case of power failure occurring before the metadata is flushed
to the disk, the data may be corrupted even if recovery will succeed.

Disabling propagation of original I/O flags for discard requests solves
this problem.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-16 13:44:44 +01:00
Robert Baldyga
f9a2846224
Merge pull request #1091 from mmichal10/fix-cli-test
tests: fix expected error message
2022-03-15 11:11:54 +01:00
Michal Mielewczyk
5a003cd599 tests: fix expected error message
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-15 08:29:55 +01:00
Karolina Rogowska
2df8ee0694
Merge pull request #1090 from mmichal10/fix-capabilities-test
tests: fix capabilities test
2022-03-11 17:02:29 +01:00
Michal Mielewczyk
5550dbaf09 tests: fix capabilities test
Adjust manner of calculating some of the traits to the newer kernel version.

New way of calculating them have been introduced in kernel with commit
97f433c3601a24d3513d06f575a389a2ca4e11e4.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-11 12:47:18 +01:00
Robert Baldyga
430d971bb9
Merge pull request #1088 from robertbaldyga/activate-ignore-part-check
Ignore partitions check on standby activate
2022-03-10 21:32:44 +01:00
Robert Baldyga
4317c917d0
Merge pull request #1089 from robertbaldyga/remove-error-code
Remove unnecessary error code
2022-03-09 16:31:59 +01:00
Robert Baldyga
be328691af Remove extra whitespace
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-09 15:52:47 +01:00
Robert Baldyga
91508af014 Remove unused error code
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-09 15:52:47 +01:00
Robert Baldyga
8cd28d13ae Ignore partitions check on standby activate
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-09 12:02:06 +01:00
Robert Baldyga
7ba87f767d
Merge pull request #1082 from pdebski21/complete_reinit_fix
initializing completion twice replaced with reinit
2022-03-08 16:49:04 +01:00
Gal Hammer
4ed8a59402 configure/bio_max_vecs: adapt to kernel 5.12
The bio_alloc_bioset() function now BUG() if trying to allocate a bio
with more than BIO_MAX_VECS vectors.

A no-limit value (-1) is defined in order not to change old kernels'
behaviour.

Signed-off-by: Gal Hammer <gal.hammer@huawei.com>
Signed-off-by: Shai Fultheim <shai.fultheim@huawei.com>
2022-03-08 16:06:03 +02:00
Robert Baldyga
3a8e3cf37c
Merge pull request #1083 from robertbaldyga/remove-metadata-layout
Remove "metadata_layout" module parameter
2022-03-08 10:08:06 +01:00
Robert Baldyga
759338e742 Remove "metadata_layout" module parameter
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-08 08:53:47 +01:00
Robert Baldyga
45b87ca549
Merge pull request #1075 from pdebski21/975_casadm_commands
casadm standby cache commands for tests
2022-03-08 08:26:37 +01:00
Robert Baldyga
1f15724b88
Merge pull request #1053 from hammerg/fix_kernel_5.12_v2
Add a support for kernel 5.12
2022-03-08 08:25:58 +01:00
Robert Baldyga
562834f4f8
Merge pull request #1081 from robertbaldyga/update-ocf-20220307
Update OCF - tests and minor fixes
2022-03-07 13:56:01 +01:00
Robert Baldyga
79b18b1010 Update OCF - tests and minor fixes
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-07 11:57:41 +01:00
Robert Baldyga
b533a40cff
Merge pull request #1071 from pdebski21/1022
When core exported object name exists activation fails and cache is stopped
2022-03-07 10:56:57 +01:00
Gal Hammer
1d64bc5294 configure/bd_first_part: adapt to kernel 5.12
The disk's partitions table was changed to xarray.

Signed-off-by: Gal Hammer <gal.hammer@huawei.com>
Signed-off-by: Shai Fultheim <shai.fultheim@huawei.com>
2022-03-07 09:44:35 +01:00
Gal Hammer
3c3cb6bdf1 configure/bio_dev: adapt to kernel 5.12
Signed-off-by: Gal Hammer <gal.hammer@huawei.com>
Signed-off-by: Shai Fultheim <shai.fultheim@huawei.com>
2022-03-07 09:44:35 +01:00
Gal Hammer
4bb435555f configure/bd_part_count: adapt to kernel 5.12
Moved cas_blk_get_part_count function to configure section after the
the disk's partitions table was changed to xarray.

Signed-off-by: Gal Hammer <gal.hammer@huawei.com>
Signed-off-by: Shai Fultheim <shai.fultheim@huawei.com>
2022-03-07 09:44:35 +01:00
Gal Hammer
fea5e72d8c configure/module_mutex: adapt to kernel 5.12
The module_mutex is internal to the module loader since kernel
commit 922f2a7c.

Signed-off-by: Gal Hammer <gal.hammer@huawei.com>
Signed-off-by: Shai Fultheim <shai.fultheim@huawei.com>
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-07 09:41:59 +01:00
Adam Rutkowski
6c2b0ca26b
Merge pull request #1072 from Deixx/di-unplug
Data Integrity test with device unplugged during IO
2022-03-03 15:56:08 +01:00
Robert Baldyga
c9d0b4385a
Merge pull request #1080 from mmichal10/fix-conf-stats
Fix conf stats
2022-03-03 14:37:01 +01:00