Commit Graph

688 Commits

Author SHA1 Message Date
Ostrokrzew
fc1847cf55 Add reschedule to metadata hash init
Signed-off-by: Ostrokrzew <slawomir.jankowski@intel.com>
2019-12-17 09:56:45 +01:00
Adam Rutkowski
57e6b96791
Merge pull request #323 from arutk/remove_fallthrough
Remove switch/case fallthrough
2019-12-12 11:49:08 +01:00
Adam Rutkowski
867e06ebf1 Remove switch/case fallthrough
This construction breaks compilation on latest kernels.

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-12-12 13:48:47 -05:00
Jan Musiał
1fa73a0a0e
Merge pull request #320 from robertbaldyga/limit-metadata-reqs
Limit number of concurrent io submitted by metadata_io_i_asynch()
2019-12-12 11:20:23 +01:00
Robert Baldyga
c2c9307b9b Limit number of concurrent io submitted by metadata_io_i_asynch()
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-12-11 14:57:20 +01:00
Jan Musiał
1b1bbbe4c5
Merge pull request #322 from robertbaldyga/fix-ut-deprecated-commands-module
ut: Replace deprecated 'commands' module with 'subprocess'
2019-12-11 08:20:39 +00:00
Robert Baldyga
2ca8dcd73e ut: Replace deprecated 'commands' module with 'subprocess'
The 'commands' modules has been removed in python 3.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-12-10 17:39:17 +01:00
Robert Baldyga
e7280eb8f4
Merge pull request #321 from imjfckm/fix-wb-stats
Fix counting occupancy on WB write insert error
2019-12-09 18:20:41 +01:00
Jan Musial
94d27c0f43 Fix counting occupancy on WB write insert error
During error handling in WB write insert we didn't invalidate affected
cache lines. Because of that the cache stopped properly (as it's
supposed to), but cache lines were marked as inserted which caused
occupancy stats to increase even though nothing was succesfully
inserted.

Signed-off-by: Jan Musial <jan.musial@intel.com>
2019-12-09 11:01:28 +01:00
Adam Rutkowski
d8a01e359e
Merge pull request #319 from mmichal10/fix-ioclass-stats-for-cache
Reset initial ioclass stats value when retrieving.
2019-10-29 15:55:02 +01:00
Michal Mielewczyk
b61843d7df Reset initial ioclass stats value when retrieving.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-10-29 09:53:36 -04:00
Michal Rakowski
e6bdc2d247
Merge pull request #316 from mmichal10/update-example-adapter
Update example adapter
2019-10-21 15:46:53 +02:00
Michal Mielewczyk
3fda55867a Pass linker flags as the last part of gcc command.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-10-21 09:27:16 -04:00
Michal Mielewczyk
aef668040b Set core name with strcpy() instead of assignment.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-10-21 09:26:14 -04:00
Jan Musiał
c8e72ad98d
Merge pull request #315 from arutk/alloc_optimizations
Adapt OCF to vmalloc-based memory pools
2019-10-21 09:49:59 +02:00
Adam Rutkowski
6423c48dfe cacheline concurrency: move allocation outside critical section
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-10-18 18:41:01 -04:00
Adam Rutkowski
07b1f0c064 Replace global concurrency rw spinlock with rw semaphore
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-10-18 18:19:05 -04:00
Jan Musiał
9e515e0271
Merge pull request #313 from mmichal10/fix-cache-stats-updating
Fix cache stats updating.
2019-10-08 15:23:58 +02:00
Michal Mielewczyk
db06783d56 Fix cache stats updating.
When single request to cache was issued, stats updating function was called with
0 bytes as value to update. In case of many request issued to cache, stats were
updated only in case of error.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-10-08 08:49:24 -04:00
Robert Bałdyga
17ec78d88f
Merge pull request #312 from robertbaldyga/rand-generator-improvements
Rand generator improvements
2019-10-04 09:25:11 +02:00
Robert Baldyga
1525e85805 Add global random seed config
This is needed to make fuzzy tests work with xdist as each
xdist gateway expects to receive the same set of parameter
values, which for random generators may be achieved only by
providing globally shared seed.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-03 16:31:05 +02:00
Robert Baldyga
b9b39fdb46 Add more fine-grained fixtures for fuzzy tests
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-03 16:31:05 +02:00
Robert Baldyga
ab1df71476 Make random generator API fluent
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-03 14:36:31 +02:00
Michal Rakowski
a61664ddd8
Merge pull request #311 from katlapinka/unaligned-tests
Add new negative io tests and raising error when failed to create io
2019-10-02 20:50:40 +02:00
Katarzyna Lapinska
219ccf360c Add new negative io tests and raising error when failed to create io
Signed-off-by: Katarzyna Lapinska <katarzyna.lapinska@intel.com>
2019-10-02 20:35:25 +02:00
Katarzyna Łapińska
2c56f6eb37
Merge pull request #310 from robertbaldyga/test-sector-alignment
Test with io aligned to sector size
2019-10-02 19:53:34 +02:00
Robert Baldyga
58403f2cd4 Test with io aligned to sector size
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-02 19:46:28 +02:00
Katarzyna Łapińska
58d33a24e6
Merge pull request #309 from robertbaldyga/update-stats-before-completion
Update stats before calling completion callback
2019-10-02 19:46:24 +02:00
Robert Baldyga
f51f7f7e1e Update stats before calling completion callback
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-02 18:49:59 +02:00
Michal Rakowski
74954667a2
Merge pull request #308 from arutk/fix_hash_bucket_lock_iter
Fix hash bucket lock iter
2019-10-02 17:22:12 +02:00
Adam Rutkowski
94a0b5392b Fix hash bucket iterator
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-10-02 19:03:52 -04:00
Adam Rutkowski
a3f3a79f75 unit test: extend hash bucket locking test
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-10-02 18:43:46 -04:00
Michał Mielewczyk
1ef67ec4b2
Merge pull request #305 from KamilLepek/remove_sec_test
Remove redundant security test (id has been removed for cache in ocf)
2019-10-02 14:58:17 +02:00
Michal Rakowski
ece75d56a7
Merge pull request #307 from Ostrokrzew/err_h
Add missing include
2019-10-02 14:54:54 +02:00
Slawomir_Jankowski
d77c35bfd0 Add missing include
Add missing '#include ocf_err.h' to 'ocf_volume.h'.

Signed-off-by: Slawomir_Jankowski <slawomir.jankowski@intel.com>
2019-10-02 14:43:29 +02:00
Kamil Lepek
fe0d663c25 Remove redundant security test (id has been removed for cache in ocf)
Signed-off-by: Kamil Lepek <kamil.lepek94@gmail.com>
2019-10-02 14:06:06 +02:00
Adam Rutkowski
5caaa5e4a6
Merge pull request #259 from Ostrokrzew/ut_debug
Unify ocf_env for regular use and unit tests
2019-10-02 11:30:51 +02:00
Robert Bałdyga
f08f8aa96e
Merge pull request #303 from arutk/fix_cl_locking
Lock cachelines under hash bucket locks
2019-10-01 15:12:31 +02:00
Adam Rutkowski
cf5a92b527 Lock cachelines under hash bucket locks
.. or when holding exclusive global metadata lock.

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-10-01 17:09:27 -04:00
Slawomir_Jankowski
f4f764d2f6 Update ocf_enf files for UT
**ocf_env**: unify files for usage in UT;
delete unused 'waitqueue' section;
replace 'string operations' section;
remove some duplicated inclusions.

Signed-off-by: Slawomir_Jankowski <slawomir.jankowski@intel.com>
2019-10-01 14:31:01 +02:00
Slawomir_Jankowski
717b8aa259 UT prapare update
**CMake lists**: link Zlib;
include libs for UT during compilation.
**prapare script**: add path to regular ocf_env files;
ignore 'memcpy' functions when copied to wrappers.
**cleaning policy**: update of some functions for proper use of atomics.

Signed-off-by: Slawomir_Jankowski <slawomir.jankowski@intel.com>
2019-10-01 14:28:27 +02:00
Slawomir_Jankowski
5d0a6fa05a UT cleanup and path update
**run tests script**: cleanup before UT starts;
usage of regular ocf_env files by symlinks.
**tests conifg**: add path to regular ocf_env files.

Signed-off-by: Slawomir_Jankowski <slawomir.jankowski@intel.com>
2019-10-01 14:26:38 +02:00
Slawomir_Jankowski
e248c68846 Delete duplicates
Delete unnecessary duplicated ocf_env files from UT directory.

Signed-off-by: Slawomir_Jankowski <slawomir.jankowski@intel.com>
2019-10-01 14:25:26 +02:00
Slawomir_Jankowski
0696ec1f9c Aesthetic changes
Aesthetic changes, typos fix and delete recursive inclusions.

Signed-off-by: Slawomir_Jankowski <slawomir.jankowski@intel.com>
2019-10-01 14:24:16 +02:00
Michał Mielewczyk
e02821d399
Merge pull request #302 from Deixx/empty-cache-name
Recognize empty string as an incorrect cache name
2019-10-01 13:19:20 +02:00
Daniel Madej
35d71e14f3 Recognize empty string as an incorrect cache name
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2019-10-01 12:55:46 +02:00
Adam Rutkowski
5113542c7f
Merge pull request #297 from mmichal10/pp-params-in-sb
Store PP config params in cache superblock.
2019-10-01 12:32:15 +02:00
Daniel Madej
5d5cc6d7ec
Merge pull request #295 from robertbaldyga/test-random-generators
tests: functional: Add pretty random generators
2019-10-01 12:18:23 +02:00
Michal Mielewczyk
e16d4e6dda Initialize promotion policy on cache attach.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-10-01 06:11:53 -04:00
Michał Mielewczyk
ee3f2205fd
Merge pull request #300 from arutk/revert_cl_lock_opt
Revert "Optimize cacheline locking in ocf_engine_prepare_clines"
2019-10-01 11:50:20 +02:00