Spdk/module/bdev/ocf
Marcin Dziegielewski 5817a1cf3f lib/bdev/ocf: fix memory leak of vbdev_ocf_qcxt
Realted to #957

Normally we are using vbdev_ocf_qcxt allocated by spdk device (ctx_buf),
but after io_device_destroy_cb this context can be freed, so we allocate a
local copy to use for issuing requests on ocf bdev stop. Unfortunately,
in current code we are not freeing it, this patch fix that issue.

Signed-off-by: Marcin Dziegielewski <marcin.dziegielewski@intel.com>
Change-Id: I2d5c0b529f4ff79960945b9e598f21602209f839
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/468983
Reviewed-by: Vitaliy Mysak <vitaliy.mysak@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2019-09-20 20:21:31 +00:00
..
ctx.c mk: move the bdev modules under module directory. 2019-08-22 16:29:49 +00:00
ctx.h mk: move the bdev modules under module directory. 2019-08-22 16:29:49 +00:00
data.c mk: move the bdev modules under module directory. 2019-08-22 16:29:49 +00:00
data.h mk: move the bdev modules under module directory. 2019-08-22 16:29:49 +00:00
Makefile lib/mk: update OCF build. 2019-08-27 18:49:56 +00:00
stats.c mk: move the bdev modules under module directory. 2019-08-22 16:29:49 +00:00
stats.h mk: move the bdev modules under module directory. 2019-08-22 16:29:49 +00:00
utils.c mk: move the bdev modules under module directory. 2019-08-22 16:29:49 +00:00
utils.h mk: move the bdev modules under module directory. 2019-08-22 16:29:49 +00:00
vbdev_ocf_rpc.c RPC: rename rpc get_bdevs to bdev_get_bdevs 2019-09-13 22:39:15 +00:00
vbdev_ocf.c lib/bdev/ocf: fix memory leak of vbdev_ocf_qcxt 2019-09-20 20:21:31 +00:00
vbdev_ocf.h lib/bdev/ocf: fix memory leak of vbdev_ocf_qcxt 2019-09-20 20:21:31 +00:00
volume.c mk: move the bdev modules under module directory. 2019-08-22 16:29:49 +00:00
volume.h mk: move the bdev modules under module directory. 2019-08-22 16:29:49 +00:00