]> sourceware.org Git - lvm2.git/commitdiff
lvmdbusd: Remove un-needed main thread execution
authorTony Asleson <tasleson@redhat.com>
Mon, 12 Dec 2016 22:13:27 +0000 (16:13 -0600)
committerTony Asleson <tasleson@redhat.com>
Tue, 20 Dec 2016 17:06:57 +0000 (11:06 -0600)
daemons/lvmdbusd/request.py

index a2c2ac99bf9bf2efb3e36540be7676d6d607534a..7c5da461be9b1adf2dcbb89280a970d063d4933a 100644 (file)
@@ -54,12 +54,15 @@ class RequestEntry(object):
                r.timer_expired()
 
        def _return_job(self):
+               # Return job is only called when we create a request object or when
+               # we pop a timer.  In both cases we are running in the correct context
+               # and do not need to schedule the call back in main context.
                self._job = Job(self, self._job_state)
                cfg.om.register_object(self._job, True)
                if self._return_tuple:
-                       mt_async_result(self.cb, ('/', self._job.dbus_object_path()))
+                       self.cb(('/', self._job.dbus_object_path()))
                else:
-                       mt_async_result(self.cb, self._job.dbus_object_path())
+                       self.cb(self._job.dbus_object_path())
 
        def run_cmd(self):
                try:
This page took 0.03514 seconds and 5 git commands to generate.