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:
Jan Musial 2022-05-18 11:05:59 +02:00
parent 0357e49896
commit 438b6d158e

View File

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