Merge pull request #682 from jfckm/zero-cache-volume-priv

Zero cache_volume priv on close
This commit is contained in:
Robert Baldyga 2022-03-28 16:02:02 +02:00 committed by GitHub
commit 174f7b5c2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) 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)