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.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -119,7 +119,11 @@ struct virtio_blk_config { · 118 unmodified lines | ||
| 119 | 119 | #define VIRTIO_BLK_T_BARRIER 0x80000000 |
| 120 | 120 | #endif /* !VIRTIO_BLK_NO_LEGACY */ |
| 121 | 121 | |
| 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 | + */ | |
| 123 | 127 | struct virtio_blk_outhdr { |
| 124 | 128 | /* VIRTIO_BLK_T* */ |
| 125 | 129 | __virtio32 type; |