Add kick function for cleaner

ocf_kick_cleaner() allows to perfom cleaning immediately.

Nop cleaning policy now returns new 'OCF_CLEANER_DISABLE' macro which indicates
that cleaing shouldn't be performed. To enable it back, ocf_kick_cleaner()
should be called.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
Michal Mielewczyk
2019-03-14 04:49:52 -04:00
parent 94ef5a5249
commit 7165bc16c3
10 changed files with 51 additions and 15 deletions

View File

@@ -145,6 +145,13 @@ struct ocf_cleaner_ops {
*/
int (*init)(ocf_cleaner_t c);
/**
* @brief Kick cleaner thread.
*
* @param[in] c Descriptor of cleaner to be kicked.
*/
void (*kick)(ocf_cleaner_t c);
/**
* @brief Stop cleaner
*