Spdk/module/bdev/ocf
Rafal Stefanowski ebd8ef4bc5 bdev/ocf: Fix metadata updater call
OCF metadata updater is handling all the requests at once and when
it finishes the cache can deinitialize, so in the rare circumstances
when the thread is not aware of cache not existing any more, there
is another metadata kick request and check for the random pointer
is performed instead of expected cache.
The solution is to increase/decrease cache ref count prior sending
a message to a thread and after metadata has been updated.

Fixes #1533

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
Change-Id: I77d2ae400110fcb4d491350e5fec334245f4bb90
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5030
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
2020-11-06 08:11:19 +00:00
..
ctx.c bdev/ocf: Fix metadata updater call 2020-11-06 08:11:19 +00:00
ctx.h lib/bdev/ocf: fix potential issue around base->management_channel 2019-10-18 17:31:39 +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 mk/lib: add a check that major and minor version is set for libs. 2020-05-21 09:19:00 +00:00
stats.c ocf: update ocf submodule to v20.3 2020-04-17 07:32:48 +00:00
stats.h ocf: update ocf submodule to v20.3 2020-04-17 07:32:48 +00:00
utils.c lib/bdev/ocf: remove unused code related to polling utils 2019-10-22 17:22:41 +00:00
utils.h lib/bdev/ocf: increase capabilites of vbdev_ocf_mngt_stop function 2019-10-22 17:22:41 +00:00
vbdev_ocf_rpc.c bdev/ocf: add cache line size 2020-08-12 10:39:56 +00:00
vbdev_ocf.c bdev modules: remove legacy config support 2020-10-20 02:42:16 +00:00
vbdev_ocf.h bdev/ocf: add cache line size 2020-08-12 10:39:56 +00:00
volume.c log: remove internal log.h header 2020-10-15 08:23:39 +00:00
volume.h mk: move the bdev modules under module directory. 2019-08-22 16:29:49 +00:00