Commit Graph

96 Commits

Author SHA1 Message Date
Michal Mielewczyk
2dfd6248c9 Configure all io classes at once.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-01-28 08:51:26 -05:00
Michal Mielewczyk
5e97795630 Fixed script for generating UT templates
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-01-24 05:16:16 -05:00
Michal Mielewczyk
5c81824a8d Added mechanism for preventing dirty requests.
Instead of switching write policy to pass-through, barrier is rised
by incrementing counter in ocf_cache_t structure.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-01-24 05:16:16 -05:00
Michał Mielewczyk
ec37b2ea9e
Merge pull request #51 from robertbaldyga/add-logger-priv
Enable passing priv to logger during context initialization
2019-01-24 11:13:39 +01:00
Robert Baldyga
3b4a666942 Enable passing priv to logger during context initialization
This may be used in logger implementations that need file
name or descriptor to initialize properly.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-24 10:54:50 +01:00
Michał Mielewczyk
e7f672c667
Merge pull request #50 from robertbaldyga/reorganize-context-ops
Reorganize context ops
2019-01-22 13:41:11 +01:00
Robert Baldyga
6860cdbd2c Reorganize context ops
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-22 13:14:35 +01:00
Michał Mielewczyk
e5a13ef186
Merge pull request #49 from robertbaldyga/handle-error-in-example
Handle properly error in example
2019-01-22 12:06:11 +01:00
Robert Baldyga
763997bb06 Handle properly error in example
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-22 12:03:12 +01:00
Kamil Łepek
e7b5105d60
Merge pull request #45 from robertbaldyga/create-license
Create LICENSE file
2019-01-22 08:00:20 +01:00
Jan Musiał
a6c74818a6
Merge pull request #48 from robertbaldyga/lock-api-cleanup
Cache locking cleanup and API improvements
2019-01-21 13:51:16 +01:00
Robert Baldyga
03c2f142b3 Cache lock cleanup and API improvements
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-21 13:46:28 +01:00
Robert Baldyga
0abb4dbbca Minor coding style fixes
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-18 14:52:13 +01:00
Kamil Łepek
b03fccc2fe
Merge pull request #46 from KamilLepek/refactor
Refactor tests directory
2019-01-18 11:32:31 +01:00
Kamil Łepek
92b2fa362e Refactor tests directory
Signed-off-by: Kamil Łepek <kamil.lepek94@gmail.com>
2019-01-18 03:12:49 -06:00
Robert Baldyga
f86ddd9a7a Create LICENSE file
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-16 14:54:10 +01:00
Michał Mielewczyk
539029375d
Merge pull request #44 from robertbaldyga/introduce-build-test
Introduce basic OCF build test with posix environment
2019-01-16 14:34:31 +01:00
Robert Baldyga
f933246dba Introduce basic OCF build test with posix environment
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-16 14:10:29 +01:00
Robert Bałdyga
21eb60ef1e
Merge pull request #43 from mmichal10/task-code-refactoring
Code refactoring
2019-01-16 13:56:07 +01:00
Michal Mielewczyk
916f46c893 Code refactoring
Removed few dead assignments and added variables initialization.
2019-01-16 06:46:00 -05:00
Michał Mielewczyk
633dbefd72
Merge pull request #42 from robertbaldyga/fix-leak-in-core-pool
Fix leak in core pool
2019-01-16 12:17:51 +01:00
Robert Baldyga
7352f3092d Fix leak in core pool
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-16 11:53:54 +01:00
Jan Musiał
b9fce50783
Merge pull request #36 from robertbaldyga/add-simple-example
Add simple ocf usage example
2019-01-15 12:28:24 +01:00
Robert Baldyga
95d35ef337 Add simple ocf usage example
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-15 10:49:18 +01:00
Michał Mielewczyk
8581520658
Merge pull request #41 from robertbaldyga/update-posix-env
Update posix environment
2019-01-15 10:47:42 +01:00
Robert Baldyga
ad10d58a2c Update posix environment
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-15 09:41:33 +01:00
Michał Mielewczyk
10c29b5fca
Merge pull request #40 from robertbaldyga/fix-compilation-errors-tracing
Fix compilation errors after tracing introduction
2019-01-15 09:08:14 +01:00
Robert Baldyga
d9cfab67b8 Fix compilation errors after tracing introduction
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-14 17:28:51 +01:00
Robert Bałdyga
dd6b074258
Merge pull request #3 from tomaszrybicki/add-tracing-support
Added tracing functionality
2019-01-14 16:37:34 +01:00
Michał Mielewczyk
f11db9c31a
Merge pull request #38 from robertbaldyga/remove-name_size
Remove name_size field from cache and core config
2019-01-14 16:04:16 +01:00
Michał Mielewczyk
f4161f6b97
Merge pull request #37 from robertbaldyga/ocf_uuid_set_str
Handle conversion between string and UUID
2019-01-14 16:01:59 +01:00
Katarzyna Łapińska
53b47e39cd
Merge pull request #39 from robertbaldyga/max-io-size-bytes
Express maximum io size in bytes instead of sectors
2019-01-14 15:47:30 +01:00
Robert Baldyga
07191c322e Express maximum io size in bytes instead of sectors
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-14 15:10:09 +01:00
Robert Baldyga
322f1aeffd Remove name_size field from cache and core config
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-14 15:09:09 +01:00
Robert Baldyga
afb63790f2 Add ocf_uuid_to_str() function
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-14 15:07:31 +01:00
Robert Baldyga
749f6906bb Fix function initializing UUID from string
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-14 15:07:15 +01:00
Tomasz Rybicki
1156531590 Added tracing functionality
Signed-off-by: Tomasz Rybicki <tomasz.rybicki@intel.com>
2019-01-14 14:17:48 +01:00
Jan Musiał
2af3b81370
Merge pull request #35 from robertbaldyga/add-posix-env
Introduce default POSIX environment
2019-01-10 15:14:39 +01:00
Robert Baldyga
37372574a4 Introduce default POSIX environment
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-10 13:53:44 +01:00
Michał Mielewczyk
e6dc62e09a
Merge pull request #33 from micrakow/master
Added sample env files and makefile to be used by functional tests
2019-01-08 13:32:17 +01:00
Michal Rakowski
ad3467ddd4 Added Makefile for ocf lib to be used in functional tests
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-01-08 12:58:28 +01:00
Michal Rakowski
c30f667bda Fix usage of atomic_ to env_atomic
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-01-07 17:25:47 +01:00
Jan Musiał
b02e2e31a0
Merge pull request #32 from Donaim/master
Add more missing io_set_queue
2019-01-07 09:11:40 +01:00
Vitaliy Mysak
506f0aa975 Add more missing io_set_queue
Propagate id of ocf_queue for discard io

This resolves the issue of
  bottom adapter always getting an ocf_io with io_queue = 0,
  no matter from which queue function to bottom adapter was called

This is a follow up on e69894e398

Signed-off-by: Vitaliy Mysak <vitaliy.mysak@intel.com>
2019-01-06 20:57:52 +00:00
Robert Bałdyga
508f172117
Merge pull request #31 from robertbaldyga/simplify-dobj-api
Simplify data object API
2019-01-04 17:38:43 +01:00
Robert Baldyga
4cf4d6d7c7 Simplify data object API
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-04 17:34:39 +01:00
Michal Rakowski
cbc590e668
Merge pull request #30 from robertbaldyga/more-missing-io-puts
Add more missing io_put() calls
2019-01-04 13:15:35 +01:00
Robert Baldyga
67f17b9dc2 Add more missing io_put() calls
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-04 13:11:30 +01:00
Michal Rakowski
e139f79d6b
Merge pull request #25 from robertbaldyga/core-data-object
Core data object
2019-01-04 09:19:46 +01:00
Robert Baldyga
4be6761a18 Core data object
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-04 08:33:34 +01:00