ocf: Update ocf submodule to version OCF v19.3.2
This patch updates submodule and appropriate functions. Cleaner poller is now registered only when needed. Change-Id: Ic4ca7ce6f77b71ac12c19462f62ae7cd96c59006 Signed-off-by: Vitaliy Mysak <vitaliy.mysak@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/455408 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
1c21756a1e
commit
5983f92cfc
@ -400,15 +400,6 @@ vbdev_ocf_ctx_cleaner_init(ocf_cleaner_t c)
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We start cleaner poller at the same thread where cache was created
|
|
||||||
* TODO: allow user to specify core at which cleaner should run */
|
|
||||||
priv->poller = spdk_poller_register(cleaner_poll, c, 0);
|
|
||||||
if (priv->poller == NULL) {
|
|
||||||
vbdev_ocf_queue_put(priv->queue);
|
|
||||||
free(priv);
|
|
||||||
return -ENOMEM;
|
|
||||||
}
|
|
||||||
|
|
||||||
ocf_queue_set_priv(priv->queue, priv);
|
ocf_queue_set_priv(priv->queue, priv);
|
||||||
|
|
||||||
cctx->cleaner_queue = priv->queue;
|
cctx->cleaner_queue = priv->queue;
|
||||||
@ -427,6 +418,20 @@ vbdev_ocf_ctx_cleaner_stop(ocf_cleaner_t c)
|
|||||||
vbdev_ocf_queue_put(priv->queue);
|
vbdev_ocf_queue_put(priv->queue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
vbdev_ocf_ctx_cleaner_kick(ocf_cleaner_t cleaner)
|
||||||
|
{
|
||||||
|
struct cleaner_priv *priv = ocf_cleaner_get_priv(cleaner);
|
||||||
|
|
||||||
|
if (priv->poller) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* We start cleaner poller at the same thread where cache was created
|
||||||
|
* TODO: allow user to specify core at which cleaner should run */
|
||||||
|
priv->poller = spdk_poller_register(cleaner_poll, cleaner, 0);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
vbdev_ocf_md_kick(void *ctx)
|
vbdev_ocf_md_kick(void *ctx)
|
||||||
{
|
{
|
||||||
@ -511,6 +516,7 @@ static const struct ocf_ctx_config vbdev_ocf_ctx_cfg = {
|
|||||||
.cleaner = {
|
.cleaner = {
|
||||||
.init = vbdev_ocf_ctx_cleaner_init,
|
.init = vbdev_ocf_ctx_cleaner_init,
|
||||||
.stop = vbdev_ocf_ctx_cleaner_stop,
|
.stop = vbdev_ocf_ctx_cleaner_stop,
|
||||||
|
.kick = vbdev_ocf_ctx_cleaner_kick,
|
||||||
},
|
},
|
||||||
|
|
||||||
.logger = {
|
.logger = {
|
||||||
|
2
ocf
2
ocf
@ -1 +1 @@
|
|||||||
Subproject commit 9f927de841e82d07fda63c5ad3536620b536f5e0
|
Subproject commit 515137f25ec71dca0c268fbd1437dd7d177e4f8d
|
Loading…
Reference in New Issue
Block a user