History

virtio_blk: fix comment for virtio 1.0

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.

Michael S. Tsirkin committed 11 years ago

Commit 0fa2a561 parent 7e41a9d1 file · +5 −1Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/virtio_blk.h+5−1
@@ -119,7 +119,11 @@ struct virtio_blk_config { · 118 unmodified lines
119119 #define VIRTIO_BLK_T_BARRIER 0x80000000
120120 #endif /* !VIRTIO_BLK_NO_LEGACY */
121121
122−/* This is the first element of the read scatter-gather list. */
122+/*
123+ * This comes first in the read scatter-gather list.
124+ * For legacy virtio, if VIRTIO_F_ANY_LAYOUT is not negotiated,
125+ * this is the first element of the read scatter-gather list.
126+ */
123127 struct virtio_blk_outhdr {
124128 /* VIRTIO_BLK_T* */
125129 __virtio32 type;