Merge pull request #682 from jfckm/zero-cache-volume-priv
Zero cache_volume priv on close
This commit is contained in:
commit
174f7b5c2b
@ -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)
|
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)
|
static unsigned int ocf_cache_volume_get_max_io_size(ocf_volume_t volume)
|
||||||
|
Loading…
Reference in New Issue
Block a user