pyocf: Delete Io object in pyocf before putting in OCF
To avoid Io reuse (new io with same pointer could be allocated before deleting from pyocf instance tracking dictionary). Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
parent
0357e49896
commit
438b6d158e
@ -92,8 +92,8 @@ class Io(Structure):
|
||||
except: # noqa E722
|
||||
pass
|
||||
|
||||
self.put()
|
||||
self.del_object()
|
||||
self.put()
|
||||
|
||||
def submit(self):
|
||||
return OcfLib.getInstance().ocf_volume_submit_io(byref(self))
|
||||
|
Loading…
Reference in New Issue
Block a user