Skip to content

Commit

Permalink
CP-30167: handle changed blkback kthread notification
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Syms <mark.syms@citrix.com>
  • Loading branch information
MarkSymsCtx authored and TimSmithCtx committed Jan 17, 2019
1 parent e07028f commit b5e379b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/blktap2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b5e379b

Please sign in to comment.