Skip to content

Get cleaner from cache#960

Merged
robertbaldyga merged 1 commit into
Open-CAS:masterfrom
rafalste:ocf_cache_get_cleaner
Jun 20, 2026
Merged

Get cleaner from cache#960
robertbaldyga merged 1 commit into
Open-CAS:masterfrom
rafalste:ocf_cache_get_cleaner

Conversation

@rafalste

Copy link
Copy Markdown
Contributor

Needed by SPDK OCF module to set/get CPU mask on cleaner thread.

@rafalste rafalste force-pushed the ocf_cache_get_cleaner branch from 489ead0 to 053c9c9 Compare June 19, 2026 15:54
Comment thread src/ocf_cache.c
Comment on lines +295 to +299
if (!ocf_cache_is_device_attached(cache))
return NULL;

if (cache->conf_meta->cleaner_disabled)
return NULL;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this (and doc update):

if (ocf_cache_is_standby(cache))
	return NULL;

BTW this function this is the first place where we introduce ocf_cleaner_t nullability, but I think API-wise it is ok.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any other doc for this change then the one in header?

Needed by SPDK OCF module to set/get CPU mask on cleaner thread.

Signed-off-by: Rafal Stefanowski <r.stefanowski@pm.me>
@rafalste rafalste force-pushed the ocf_cache_get_cleaner branch from 053c9c9 to 9b10446 Compare June 19, 2026 21:16
@robertbaldyga robertbaldyga merged commit b8b4b70 into Open-CAS:master Jun 20, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants