xenbus: don't look up transaction IDs for ordinary writes
[pandora-kernel.git] / drivers / xen / xenfs / xenbus.c
index e6a63ee..98559b0 100644 (file)
@@ -310,7 +310,7 @@ static int xenbus_write_transaction(unsigned msg_type,
                        rc = -ENOMEM;
                        goto out;
                }
-       } else {
+       } else if (msg_type == XS_TRANSACTION_END) {
                list_for_each_entry(trans, &u->transactions, list)
                        if (trans->handle.id == u->u.msg.tx_id)
                                break;