[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] Use timeout on xenstore read_reply to avoid task hunging
Recent pvops kernel uses wait_event on waiting reply from xenstored. This may cause xenstore clients hung inside kernel when xenstored does not response correctly. The hung even happens when xenstored is not running, and may confuse the developer. The patch attached uses wait_event_timeout instead, and return -EIO to userspace if xenstored does not response in 5 seconds. Simply change wait_event to wait_event_timeout is not correct. Right after the xenstored starts working, the requests abandoned before will be processed by xenstored, and responses sent to the reply_list queue will confuse the requests later. The patch also makes use of the req_id section in struct xsd_sockmsg, as a sequence id. This avoids the confusing of responses by abandoned requests. Any suggestions? Thanks. -- Frank Pan Computer Science and Technology Tsinghua University _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |