|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-bugs
[Xen-bugs] [Bug 456]  New: Xenstored could help with serialisation 
| http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=456
           Summary: Xenstored could help with serialisation
           Product: Xen
           Version: 3.0.0
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Tools
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: ewan@xxxxxxxxxxxxx
At the moment, we have to jump through hoops to serialise critical sections of 
the hotplug scripts.  Xenstored has full transaction support already, so it 
would not be difficult to add "claim lock" and "release lock" calls into 
Xenstored.  This would be a useful addition, saving complicated code at the 
hotplug level, and presumably more widely useful too.
Xenstored would have to include protection in case the holder of the lock dies. 
 
Perhaps it would suffice for the lock to be associated with a pid, and then if 
the process with that pid is dead when someone else wants the lock, Xenstored 
would steal it on their behalf.  This pid would have to be passed through the 
command line tools, because of course when running bash scripts, the pid 
executing the actual lock command is not necessarily the controlling process.
-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
Xen-bugs mailing list
Xen-bugs@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-bugs
 | 
 
| <Prev in Thread] | Current Thread | [Next in Thread> |  | 
[Xen-bugs] [Bug 456]  New: Xenstored could help with serialisation,
bugzilla-daemon <=
 |  |  | 
  
    |  |  |