]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
vhost: Export vhost_dev_set_owner
authorAsias He <asias@redhat.com>
Mon, 6 May 2013 03:15:59 +0000 (11:15 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 6 May 2013 09:57:54 +0000 (12:57 +0300)
Signed-off-by: Asias He <asias@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vhost.c
drivers/vhost/vhost.h

index 749b5ab5bfbbd1f280b31cc341d9aae5cc64eef4..de9441a1b158cf68682604518f3a748c88f110e2 100644 (file)
@@ -344,7 +344,7 @@ static int vhost_attach_cgroups(struct vhost_dev *dev)
 }
 
 /* Caller should have device mutex */
-static long vhost_dev_set_owner(struct vhost_dev *dev)
+long vhost_dev_set_owner(struct vhost_dev *dev)
 {
        struct task_struct *worker;
        int err;
index b58f4ae82cb8e1e912f83c88eeec1e82eb950d5d..cc23bc456d157a7307b8c7c4a18845c384735f35 100644 (file)
@@ -135,6 +135,7 @@ struct vhost_dev {
 };
 
 long vhost_dev_init(struct vhost_dev *, struct vhost_virtqueue **vqs, int nvqs);
+long vhost_dev_set_owner(struct vhost_dev *dev);
 long vhost_dev_check_owner(struct vhost_dev *);
 struct vhost_memory *vhost_dev_reset_owner_prepare(void);
 void vhost_dev_reset_owner(struct vhost_dev *, struct vhost_memory *);