Zero cache_volume priv on close
Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
parent
223ba0b025
commit
43e643873a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user