Displaying 4 results from an estimated 4 matches for "1949,22".
Did you mean:
149,22
2019 Apr 28
2
[PATCH] virtio_console: remove vq buf while unpluging port
...)
{
@@ -1550,6 +1551,9 @@ static void unplug_port(struct port *port)
}
remove_port_data(port);
+ spin_lock_irq(&port->inbuf_lock);
+ remove_vq(port->in_vq);
+ spin_unlock_irq(&port->inbuf_lock);
/*
* We should just assume the device itself has gone off --
@@ -1945,17 +1949,22 @@ static const struct file_operations portdev_fops = {
.owner = THIS_MODULE,
};
+static void remove_vq(struct virtqueue *vq)
+{
+ struct port_buffer *buf;
+
+ flush_bufs(vq, true);
+ while ((buf = virtqueue_detach_unused_buf(vq)))
+ free_buf(buf, true);
+}
+
static void remove_vqs(struct...
2019 Apr 28
2
[PATCH] virtio_console: remove vq buf while unpluging port
...)
{
@@ -1550,6 +1551,9 @@ static void unplug_port(struct port *port)
}
remove_port_data(port);
+ spin_lock_irq(&port->inbuf_lock);
+ remove_vq(port->in_vq);
+ spin_unlock_irq(&port->inbuf_lock);
/*
* We should just assume the device itself has gone off --
@@ -1945,17 +1949,22 @@ static const struct file_operations portdev_fops = {
.owner = THIS_MODULE,
};
+static void remove_vq(struct virtqueue *vq)
+{
+ struct port_buffer *buf;
+
+ flush_bufs(vq, true);
+ while ((buf = virtqueue_detach_unused_buf(vq)))
+ free_buf(buf, true);
+}
+
static void remove_vqs(struct...
2019 May 05
0
[PATCH] virtio_console: remove vq buf while unpluging port
...)
{
@@ -1550,6 +1551,9 @@ static void unplug_port(struct port *port)
}
remove_port_data(port);
+ spin_lock_irq(&port->inbuf_lock);
+ remove_vq(port->in_vq);
+ spin_unlock_irq(&port->inbuf_lock);
/*
* We should just assume the device itself has gone off --
@@ -1945,17 +1949,22 @@ static const struct file_operations portdev_fops = {
.owner = THIS_MODULE,
};
+static void remove_vq(struct virtqueue *vq)
+{
+ struct port_buffer *buf;
+
+ flush_bufs(vq, true);
+ while ((buf = virtqueue_detach_unused_buf(vq)))
+ free_buf(buf, true);
+}
+
static void remove_vqs(struct...
2019 May 24
0
[PATCH] virtio_console: remove vq buf while unpluging port
...(struct port *port)
> }
>
> remove_port_data(port);
> + spin_lock_irq(&port->inbuf_lock);
> + remove_vq(port->in_vq);
> + spin_unlock_irq(&port->inbuf_lock);
>
> /*
> * We should just assume the device itself has gone off --
> @@ -1945,17 +1949,22 @@ static const struct file_operations portdev_fops = {
> .owner = THIS_MODULE,
> };
>
> +static void remove_vq(struct virtqueue *vq)
> +{
> + struct port_buffer *buf;
> +
> + flush_bufs(vq, true);
> + while ((buf = virtqueue_detach_unused_buf(vq)))
> + free_b...