diff --git a/drivers/blktap2.py b/drivers/blktap2.py index 3acba9957..144ab6c76 100755 --- a/drivers/blktap2.py +++ b/drivers/blktap2.py @@ -2417,13 +2417,8 @@ def shutdown_requested(self): def shutdown_done(self): return self.has_key("shutdown-done") - def kthread_pid(self): - pid = self.read("kthread-pid") - if pid is not None: return int(pid) - return None - def running(self): - return self.kthread_pid() is not None + return self.has_key('queue-0/kthread-pid') @classmethod def find_by_physical_device(cls, phy):