Enable IO to detached cache instance
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
parent
de07458ff2
commit
f1bfd94c98
@ -274,12 +274,6 @@ static void ocf_core_volume_submit_io(struct ocf_io *io)
|
||||
core = ocf_volume_to_core(ocf_io_get_volume(io));
|
||||
cache = ocf_core_get_cache(core);
|
||||
|
||||
if (unlikely(!env_bit_test(ocf_cache_state_running,
|
||||
&cache->cache_state))) {
|
||||
ocf_io_end(io, -OCF_ERR_CACHE_NOT_AVAIL);
|
||||
return;
|
||||
}
|
||||
|
||||
if (unlikely(ocf_cache_is_standby(cache))) {
|
||||
ocf_io_end(io, -OCF_ERR_CACHE_STANDBY);
|
||||
return;
|
||||
@ -340,12 +334,6 @@ static void ocf_core_volume_submit_flush(struct ocf_io *io)
|
||||
core = ocf_volume_to_core(ocf_io_get_volume(io));
|
||||
cache = ocf_core_get_cache(core);
|
||||
|
||||
if (unlikely(!env_bit_test(ocf_cache_state_running,
|
||||
&cache->cache_state))) {
|
||||
ocf_io_end(io, -OCF_ERR_CACHE_NOT_AVAIL);
|
||||
return;
|
||||
}
|
||||
|
||||
if (unlikely(ocf_cache_is_standby(cache))) {
|
||||
ocf_io_end(io, -OCF_ERR_CACHE_STANDBY);
|
||||
return;
|
||||
@ -383,12 +371,6 @@ static void ocf_core_volume_submit_discard(struct ocf_io *io)
|
||||
core = ocf_volume_to_core(ocf_io_get_volume(io));
|
||||
cache = ocf_core_get_cache(core);
|
||||
|
||||
if (unlikely(!env_bit_test(ocf_cache_state_running,
|
||||
&cache->cache_state))) {
|
||||
ocf_io_end(io, -OCF_ERR_CACHE_NOT_AVAIL);
|
||||
return;
|
||||
}
|
||||
|
||||
if (unlikely(ocf_cache_is_standby(cache))) {
|
||||
ocf_io_end(io, -OCF_ERR_CACHE_STANDBY);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user