From 03570161988dddc36663b66c0ee9e59b00a29379 Mon Sep 17 00:00:00 2001 From: Mark Syms Date: Wed, 16 Jan 2019 13:50:45 +0000 Subject: [PATCH] CP-30167: handle changed blkback kthread notification Signed-off-by: Mark Syms --- drivers/blktap2.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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):