test.c (0cce284537fb42d9c28b9b31038ffc9b464555f5) test.c (f6f93f75afb65997f4a84aaaab59dd06a4a06c80)
1/* Copyright (C) 2009 Red Hat, Inc.
2 * Author: Michael S. Tsirkin <mst@redhat.com>
3 *
4 * This work is licensed under the terms of the GNU GPL, version 2.
5 *
6 * test virtio server in host kernel.
7 */
8

--- 143 unchanged lines hidden (view full) ---

152
153static int vhost_test_release(struct inode *inode, struct file *f)
154{
155 struct vhost_test *n = f->private_data;
156 void *private;
157
158 vhost_test_stop(n, &private);
159 vhost_test_flush(n);
1/* Copyright (C) 2009 Red Hat, Inc.
2 * Author: Michael S. Tsirkin <mst@redhat.com>
3 *
4 * This work is licensed under the terms of the GNU GPL, version 2.
5 *
6 * test virtio server in host kernel.
7 */
8

--- 143 unchanged lines hidden (view full) ---

152
153static int vhost_test_release(struct inode *inode, struct file *f)
154{
155 struct vhost_test *n = f->private_data;
156 void *private;
157
158 vhost_test_stop(n, &private);
159 vhost_test_flush(n);
160 vhost_dev_cleanup(&n->dev, false);
160 vhost_dev_cleanup(&n->dev);
161 /* We do an extra flush before freeing memory,
162 * since jobs can re-queue themselves. */
163 vhost_test_flush(n);
164 kfree(n);
165 return 0;
166}
167
168static long vhost_test_run(struct vhost_test *n, int test)

--- 162 unchanged lines hidden ---
161 /* We do an extra flush before freeing memory,
162 * since jobs can re-queue themselves. */
163 vhost_test_flush(n);
164 kfree(n);
165 return 0;
166}
167
168static long vhost_test_run(struct vhost_test *n, int test)

--- 162 unchanged lines hidden ---