[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <57B1F5AE0200007800106092@prv-mh.provo.novell.com>
Date: Mon, 15 Aug 2016 09:02:38 -0600
From: "Jan Beulich" <JBeulich@...e.com>
To: <david.vrabel@...rix.com>, <boris.ostrovsky@...cle.com>,
"Juergen Gross" <JGross@...e.com>
Cc: <xen-devel@...ts.xenproject.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH] xenbus: don't look up transaction IDs for ordinary
writes
This should really only be done for XS_TRANSACTION_END messages, or
else at least some of the xenstore-* tools don't work anymore.
Fixes: 0beef634b8 ("xenbus: don't BUG() on user mode induced condition")
Reported-by: Richard Schütz <rschuetz@...-koblenz.de>
Cc: <stable@...r.kernel.org>
Signed-off-by: Jan Beulich <jbeulich@...e.com>
Tested-by: Richard Schütz <rschuetz@...-koblenz.de>
---
drivers/xen/xenbus/xenbus_dev_frontend.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- 4.8-rc2/drivers/xen/xenbus/xenbus_dev_frontend.c
+++ 4.8-rc2-xen-xenbus-dev-write-oridinary/drivers/xen/xenbus/xenbus_dev_frontend.c
@@ -316,7 +316,7 @@ static int xenbus_write_transaction(unsi
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;
Powered by blists - more mailing lists