Spdk/lib/bdev/ocf
Vitaliy Mysak 2bfa860dfe ocf: fix offset check
This patch fixes submission of partial IOs in bottom adapter

Existing check (if offset > 0) was not sufficient to detect partial IOs
  because there could be an IO with offset = 0 but length < total size of iovs.
This patch changes the check, but also free operation on completion
  because now the old free does not cover all situations when we allocate iovs.

`Partial IOs` are the IOs handled by bottom adapter
  which specify only part of the internal iovs vector.
So their length is less that the length of internal iovs vector.
They exist because sometimes parts of single IO from top adapter
  need to be sent to different locations.
Also, in general, IOs initiated by OCF (such as cleaner IOs) are represented
  as single big iov that is submitted by parts in form of 'Partial IOs'.

Change-Id: I8ae47659fb34904c593a696d74d683a418ac9962
Signed-off-by: Vitaliy Mysak <vitaliy.mysak@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/455821
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2019-06-07 18:18:42 +00:00
..
env OCF: Update ocf submodule to version OCF v19.3.1 2019-05-23 19:01:38 +00:00
ctx.c ocf: Update ocf submodule to version OCF v19.3.2 2019-06-07 18:18:42 +00:00
ctx.h ocf: implement OCF cleaner 2019-05-23 19:01:38 +00:00
data.c OCF: add OCF module 2019-01-28 09:41:52 +00:00
data.h OCF: add OCF module 2019-01-28 09:41:52 +00:00
Makefile OCF: add OCF module 2019-01-28 09:41:52 +00:00
stats.c OCF: rebase to ocf master 276d91fcd7 2019-03-05 12:09:25 +00:00
stats.h OCF: rebase to ocf master 276d91fcd7 2019-03-05 12:09:25 +00:00
utils.c ocf: add timeout functionality for vbdev_ocf_mngt_ interface 2019-05-15 20:34:13 +00:00
utils.h ocf: add timeout functionality for vbdev_ocf_mngt_ interface 2019-05-15 20:34:13 +00:00
vbdev_ocf_rpc.c ocf: add loadq flag to construct path 2019-05-23 19:01:38 +00:00
vbdev_ocf.c ocf: implement metadata probe 2019-06-07 18:18:42 +00:00
vbdev_ocf.h ocf: serialize base bdev names in OCF UUID 2019-05-23 19:01:38 +00:00
volume.c ocf: fix offset check 2019-06-07 18:18:42 +00:00
volume.h ocf: fix offset check 2019-06-07 18:18:42 +00:00