parent
c2cd4052d0
commit
9db4cdbb32
@ -1,34 +0,0 @@
|
|||||||
From 4e3eb4f6782da3f326879622e28a5efd3a1d26bd Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
|
|
||||||
<marmarek@invisiblethingslab.com>
|
|
||||||
Date: Fri, 20 Mar 2015 05:08:13 +0100
|
|
||||||
Subject: [PATCH] xen: fix deadlock on /proc/xen/xenbus access
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
Organization: Invisible Things Lab
|
|
||||||
Cc: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
|
|
||||||
|
|
||||||
Details here:
|
|
||||||
http://lists.xenproject.org/archives/html/xen-devel/2015-03/msg02501.html
|
|
||||||
|
|
||||||
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
|
|
||||||
---
|
|
||||||
drivers/xen/xenbus/xenbus_dev_frontend.c | 1 +
|
|
||||||
1 file changed, 1 insertion(+)
|
|
||||||
|
|
||||||
diff --git a/drivers/xen/xenbus/xenbus_dev_frontend.c b/drivers/xen/xenbus/xenbus_dev_frontend.c
|
|
||||||
index 9433e46..3d333b13 100644
|
|
||||||
--- a/drivers/xen/xenbus/xenbus_dev_frontend.c
|
|
||||||
+++ b/drivers/xen/xenbus/xenbus_dev_frontend.c
|
|
||||||
@@ -614,6 +614,7 @@ static int xenbus_file_open(struct inode *inode, struct file *filp)
|
|
||||||
return -ENOENT;
|
|
||||||
|
|
||||||
nonseekable_open(inode, filp);
|
|
||||||
+ filp->f_mode &= ~FMODE_ATOMIC_POS;
|
|
||||||
|
|
||||||
filp->f_mode &= ~FMODE_ATOMIC_POS; /* cdev-style semantics */
|
|
||||||
|
|
||||||
--
|
|
||||||
2.1.0
|
|
||||||
|
|
Loading…
Reference in new issue