VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Kirill Smelkov <kirr@nexedi.com> 2019-03-26 22:20:43 +0000 committer: Linus Torvalds <torvalds@linux-foundation.org> 2019-04-06 07:01:55 -1000 commit: 10dce8af34226d90fa56746a934f8da5dcdba3df parent: be76865df56f22f29ab20e671143761d78ed09c8
Commit Summary:
fs: stream_open - opener for stream-like files so that read and write can run simultaneously without deadlock
Diffstat:
1 file changed, 1 insertion, 2 deletions
diff --git a/drivers/xen/xenbus/xenbus_dev_frontend.c b/drivers/xen/xenbus/xenbus_dev_frontend.c
index c3e201025ef0..0782ff3c2273 100644
--- a/drivers/xen/xenbus/xenbus_dev_frontend.c
+++ b/drivers/xen/xenbus/xenbus_dev_frontend.c
@@ -622,9 +622,7 @@ static int xenbus_file_open(struct inode *inode, struct file *filp)
 	if (xen_store_evtchn == 0)
 		return -ENOENT;
 
-	nonseekable_open(inode, filp);
-
-	filp->f_mode &= ~FMODE_ATOMIC_POS; /* cdev-style semantics */
+	stream_open(inode, filp);
 
 	u = kzalloc(sizeof(*u), GFP_KERNEL);
 	if (u == NULL)