pyocf: remove put from cache stop to match get count
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
@@ -302,7 +302,7 @@ class Cache:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def start_on_device(cls, device, **kwargs):
|
def start_on_device(cls, device, **kwargs):
|
||||||
c = cls(locked=True, owner=device.owner, **kwargs)
|
c = cls(owner=device.owner, **kwargs)
|
||||||
|
|
||||||
c.start_cache()
|
c.start_cache()
|
||||||
try:
|
try:
|
||||||
@@ -494,7 +494,6 @@ class Cache:
|
|||||||
self.started = False
|
self.started = False
|
||||||
|
|
||||||
self.put_and_write_unlock()
|
self.put_and_write_unlock()
|
||||||
self.put()
|
|
||||||
|
|
||||||
self.owner.caches.remove(self)
|
self.owner.caches.remove(self)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user