Commit Graph

304 Commits

Author SHA1 Message Date
Michał Mielewczyk
affe543e3d
Merge pull request #155 from arutk/fix_vfree
Fix cas_vfree
2019-10-18 16:26:00 +02:00
Adam Rutkowski
f7cc3d414c Fix cas_vfree
1. cas_vfree implementation is now properly selected based on kernel version
2. cas_vfree semantics now accepts NULL pionter as a valid input

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-10-18 17:29:05 -04:00
Michał Mielewczyk
e588ff1439
Merge pull request #156 from arutk/vmalloc_flags
env: implement vmalloc with GFP flags
2019-10-18 16:22:18 +02:00
Adam Rutkowski
c5165838e5 env: implement vmalloc with GFP flags
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-10-18 17:35:29 -04:00
Robert Bałdyga
485bd352ed
Merge pull request #151 from mmichal10/log-from-configure
Log from configure
2019-10-18 16:11:11 +02:00
Michal Mielewczyk
b05491edac configure: check for requiured tools.
Configure is not only supposed to check for tools required by itself but also
for those ones needed by OCL.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-10-16 03:44:42 -04:00
Michal Mielewczyk
195e5c5e56 configure: Save output from test modules compilation.
Currently configure script doesn't support any logging mechanism. To make easy
debugging possible, output from all failed compilation attempts is stored.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-10-14 08:43:45 -04:00
Michal Mielewczyk
c1e3835055 Update ocf version.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-10-14 08:43:45 -04:00
Robert Bałdyga
d2666b785a
Merge pull request #149 from robertbaldyga/update-ocf-v19.9
Update OCF to v19.9
2019-10-04 11:11:17 +02:00
Robert Baldyga
52d7c60f9b Update OCF to v19.9
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-04 11:02:44 +02:00
Michal Rakowski
3969c47ed8
Merge pull request #148 from micrakow/utils_fix
Utils fix
2019-10-02 20:59:04 +02:00
Michal Rakowski
23c03812ba OCF update
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-10-02 20:49:39 +02:00
Michal Rakowski
3a19ae0bf5 utils: print help as default casctl cmd
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-10-02 19:56:59 +02:00
Michał Mielewczyk
294659771c
Merge pull request #141 from rafalste/update_promo_pol_tests
Add promotion policy smoke tests
2019-10-01 16:28:30 +02:00
Adam Rutkowski
e89262588f
Merge pull request #144 from mmichal10/error-message
Error message
2019-10-01 16:25:14 +02:00
Michal Mielewczyk
fe7da3220d Mark removed core id as free.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-10-01 10:00:08 -04:00
Michal Mielewczyk
af7ac1f23e casadm: add description for occupied core id error.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-10-01 09:59:26 -04:00
Rafal Stefanowski
b8a3cc7660 Add promotion policy smoke tests
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2019-10-01 15:40:04 +02:00
Adam Rutkowski
3feb79a19c
Merge pull request #142 from arutk/ocf_update_011019
OCF update (locking fix)
2019-10-01 15:21:56 +02:00
Adam Rutkowski
cf9fbafdbf OCF update (locking fix)
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-10-01 17:19:36 -04:00
Katarzyna Łapińska
b1fb10da91
Merge pull request #140 from Deixx/ocf-update
Updated OCF version
2019-10-01 13:56:05 +02:00
Daniel Madej
5e0a5a5ebb Updated OCF version
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2019-10-01 13:28:07 +02:00
Katarzyna Łapińska
3d4d7c96bf
Merge pull request #139 from mmichal10/fix-pp
Adapt to new OCF PP param set/get API.
2019-10-01 13:14:49 +02:00
Michal Mielewczyk
296db39ea0 Adapt to new OCF PP param set/get API.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-10-01 06:54:32 -04:00
Michał Mielewczyk
35d1793d44
Merge pull request #137 from micrakow/ocf_update
OCF update
2019-10-01 12:54:17 +02:00
Michal Rakowski
4cbf555793 OCF update
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-10-01 10:32:03 +02:00
Michal Rakowski
be769d7a6d
Merge pull request #136 from rafalste/improve_python_check
Improve check for Python 3 in Makefile
2019-09-30 15:25:03 +02:00
Rafal Stefanowski
623f758cb2 Improve check for Python 3 in Makefile
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2019-09-30 13:56:06 +02:00
Michal Rakowski
1b1d06d821
Merge pull request #134 from robertbaldyga/wait-interruptible-ioctl
wait interruptible in code called from ioctl handler
2019-09-27 09:17:05 +02:00
Robert Baldyga
a2d78103f2 wait interruptible in code called from ioctl handler
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-09-26 17:11:20 +02:00
Robert Bałdyga
f743421594
Merge pull request #132 from micrakow/config_end_req
configure: use blk_mq_end_request as a default instead of non-mq variant
2019-09-26 16:47:46 +02:00
Michal Rakowski
0bd6fd4036 configure: use blk_mq_end_request as a default instead of non-mq variant
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-09-26 16:21:15 +02:00
Michal Rakowski
3898c9e52d Add blk-mq.h include to linux_kernel_version.h
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-09-26 16:16:27 +02:00
Michał Mielewczyk
d5d5ff6b3b
Merge pull request #131 from arutk/fix_get_set_seq_cutoff
Fix cache reference management in get/set seq cutoff threshold
2019-09-26 13:39:29 +02:00
Adam Rutkowski
186bfbc704 Fix cache reference management in get/set seq cutoff threshold
ocf_core_get_cache does not increment cache reference count, so
it shouldn't be paired with cache_put

Fixes #117

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-09-26 14:10:17 -04:00
Michal Rakowski
4efd9f1858
Merge pull request #130 from mmichal10/require-python3
Require python3 to install Open CAS Linux.
2019-09-26 11:35:27 +02:00
Kamil Łepek
cdab8cacd5
Merge pull request #126 from mmichal10/fix-try-add
Don't generate core name when adding core to corepool.
2019-09-26 09:17:52 +02:00
Michal Mielewczyk
69cee70c54 Require python3 to install Open CAS Linux.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-09-25 18:39:50 -04:00
Michal Mielewczyk
5cb7792678 Added description for occupied core id error.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-09-25 15:36:02 -04:00
Michal Mielewczyk
8b0d10952f Don't generate core name when adding core to corepool.
When core frome corepool is added to cache, it's old name is loaded and cores
in corepool cannot be referenced by name anyway so new name is not needed.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-09-25 15:36:02 -04:00
Adam Rutkowski
360a73ae5b
Merge pull request #125 from robertbaldyga/core-param-error-handling
Fix core set param error handling
2019-09-25 20:28:06 +02:00
Robert Baldyga
d5207cb391 Update OCF -> POSIX error mapping
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-09-25 17:22:34 +02:00
Robert Baldyga
a7390aa6fc Return error on invalid core id
Instead of silently allowing for any core_id in order to set
core parameter for all cores in cache, check explicitly for
special value (OCF_CORE_ID_INVALID) which means that no core
has been selected.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-09-25 17:22:01 +02:00
Michal Rakowski
a22c055e15
Merge pull request #113 from mmichal10/fix-load
Fix load
2019-09-25 16:57:16 +02:00
Michal Mielewczyk
919a4701a1 Added description for new error code.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-09-25 09:44:07 -04:00
Michal Mielewczyk
e96b37ecc2 Confirm cache name before load.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-09-25 09:44:07 -04:00
Kamil Łepek
b470052bf1
Merge pull request #111 from arutk/doc_update
Documentation update
2019-09-25 14:33:29 +02:00
Kamil Łepek
145c66cdfa
Merge pull request #123 from mmichal10/fix-ioclass-printing
Fix ioclass stats printing.
2019-09-25 14:31:44 +02:00
Michał Mielewczyk
6c94f6ec01
Merge pull request #122 from arutk/ocf_update_250919
OCF update
2019-09-25 14:29:19 +02:00
Adam Rutkowski
840443a531 OCF update
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-09-25 16:23:06 -04:00