Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
0dea7c12
Commit
0dea7c12
authored
Jun 02, 2010
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'vhost-net-next' of
git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
parents
ab95bfe0
f8322fbe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
drivers/vhost/net.c
drivers/vhost/net.c
+6
-7
No files found.
drivers/vhost/net.c
View file @
0dea7c12
...
@@ -519,13 +519,12 @@ static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd)
...
@@ -519,13 +519,12 @@ static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd)
/* start polling new socket */
/* start polling new socket */
oldsock
=
vq
->
private_data
;
oldsock
=
vq
->
private_data
;
if
(
sock
==
oldsock
)
if
(
sock
!=
oldsock
){
goto
done
;
vhost_net_disable_vq
(
n
,
vq
);
vhost_net_disable_vq
(
n
,
vq
);
rcu_assign_pointer
(
vq
->
private_data
,
sock
);
rcu_assign_pointer
(
vq
->
private_data
,
sock
);
vhost_net_enable_vq
(
n
,
vq
);
vhost_net_enable_vq
(
n
,
vq
);
done:
}
if
(
oldsock
)
{
if
(
oldsock
)
{
vhost_net_flush_vq
(
n
,
index
);
vhost_net_flush_vq
(
n
,
index
);
fput
(
oldsock
->
file
);
fput
(
oldsock
->
file
);
...
@@ -626,7 +625,7 @@ static long vhost_net_compat_ioctl(struct file *f, unsigned int ioctl,
...
@@ -626,7 +625,7 @@ static long vhost_net_compat_ioctl(struct file *f, unsigned int ioctl,
}
}
#endif
#endif
const
static
struct
file_operations
vhost_net_fops
=
{
static
const
struct
file_operations
vhost_net_fops
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
release
=
vhost_net_release
,
.
release
=
vhost_net_release
,
.
unlocked_ioctl
=
vhost_net_ioctl
,
.
unlocked_ioctl
=
vhost_net_ioctl
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment