]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
virtio_blk: fix comment for virtio 1.0
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 6 Mar 2015 02:20:03 +0000 (12:50 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 10 Mar 2015 01:18:29 +0000 (11:48 +1030)
Fix up comment to match virtio 1.0 logic:
virtio_blk_outhdr isn't the first elements anymore,
the only requirement is that it comes first in
the s/g list.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/uapi/linux/virtio_blk.h

index b695ba9591869d330f67dc57e688cfe5c75c9987..19c66fcbab8afb1ee5239140fab657b4fe52ed67 100644 (file)
@@ -119,7 +119,11 @@ struct virtio_blk_config {
 #define VIRTIO_BLK_T_BARRIER   0x80000000
 #endif /* !VIRTIO_BLK_NO_LEGACY */
 
-/* This is the first element of the read scatter-gather list. */
+/*
+ * This comes first in the read scatter-gather list.
+ * For legacy virtio, if VIRTIO_F_ANY_LAYOUT is not negotiated,
+ * this is the first element of the read scatter-gather list.
+ */
 struct virtio_blk_outhdr {
        /* VIRTIO_BLK_T* */
        __virtio32 type;