Nir Soffer has posted comments on this change. Change subject: virt: Correct epoll unregistration usage in vmchannels ......................................................................
Patch Set 2: (3 comments) https://gerrit.ovirt.org/#/c/51521/2/vdsm/virt/vmchannels.py File vdsm/virt/vmchannels.py: Line 113 Line 114 Line 115 Line 116 Line 117 > Because the fd will be closed already at this time and cause an error - and OK, looks fine now. Line 53: self._epoll.unregister(fileno) Line 54: except IOError as e: Line 55: # We do not care if it has been previously removed from epoll Line 56: # or is not tracked by epoll. The removal is exactly what we Line 57: # want to achieve. > Well there shouldn't be any flow anymore where this can happen, it's just t Lets log a debug message in this case, so we if this happens we will know about it. I will be responsible if this spam the logs :-) Line 58: if e.errno != errno.ENOENT: Line 59: raise Line 60: Line 61: def _handle_event(self, fileno, event): Line 223: """ Unregister an exist file descriptor from the listener. """ Line 224: self.log.debug("Delete fileno %d from listener.", fileno) Line 225: with self._update_lock: Line 226: # Threadsafe, fileno will be closed by caller Line 227: self._unregister_fd(fileno) > Because this is called by GuestAgent.stop and that will close the socket ri OK -- To view, visit https://gerrit.ovirt.org/51521 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I9f7eab8318f41f653e0a24552c81bcd5b09d8690 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Vinzenz Feenstra <[email protected]> Gerrit-Reviewer: Dan Kenigsberg <[email protected]> Gerrit-Reviewer: Francesco Romani <[email protected]> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Martin Polednik <[email protected]> Gerrit-Reviewer: Nir Soffer <[email protected]> Gerrit-Reviewer: Vinzenz Feenstra <[email protected]> Gerrit-Reviewer: gerrit-hooks <[email protected]> Gerrit-HasComments: Yes _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
