ia64/xen-unstable

changeset 9928:bbce4d115189

Fix xenbus userspace device transaction tracking.
If a transaction end command fails, the semaphore which keeps track
of whether we're in a transaction or not was not getting updated.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu May 04 10:25:27 2006 +0100 (2006-05-04)
parents 915d5af5dc18
children e1a47a269600
files linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c	Wed May 03 13:33:01 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c	Thu May 04 10:25:27 2006 +0100
     1.3 @@ -183,7 +183,7 @@ void *xenbus_dev_request_and_reply(struc
     1.4  
     1.5  	mutex_unlock(&xs_state.request_mutex);
     1.6  
     1.7 -	if ((msg->type == XS_TRANSACTION_END) ||
     1.8 +	if ((req_msg.type == XS_TRANSACTION_END) ||
     1.9  	    ((req_msg.type == XS_TRANSACTION_START) &&
    1.10  	     (msg->type == XS_ERROR)))
    1.11  		up_read(&xs_state.suspend_mutex);