Zero cache_volume priv on close

Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
Jan Musial 2022-03-28 14:50:25 +02:00
parent 223ba0b025
commit 43e643873a

View File

@ -470,6 +470,9 @@ static int ocf_cache_volume_open(ocf_volume_t volume, void *volume_params)
static void ocf_cache_volume_close(ocf_volume_t volume)
{
struct ocf_cache_volume *cache_volume = ocf_volume_get_priv(volume);
cache_volume->cache = NULL;
}
static unsigned int ocf_cache_volume_get_max_io_size(ocf_volume_t volume)