]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/virtio/virtio_ring.c
virtio: clarify NO_NOTIFY flag usage
[linux-2.6-omap-h63xx.git] / drivers / virtio / virtio_ring.c
index 342bb0363fbe120fb9b652c8f36e7c7684d06f31..dbe1d35db32af0db84ddf6b0fffa8795c768b428 100644 (file)
@@ -87,6 +87,8 @@ static int vring_add_buf(struct virtqueue *_vq,
        if (vq->num_free < out + in) {
                pr_debug("Can't add buf len %i - avail = %i\n",
                         out + in, vq->num_free);
+               /* We notify *even if* VRING_USED_F_NO_NOTIFY is set here. */
+               vq->notify(&vq->vq);
                END_USE(vq);
                return -ENOSPC;
        }