Latest virtio spec says the feature bit name is VIRTIO_BLK_F_FLUSH, VIRTIO_BLK_F_WCE is the legacy name. virtio blk header says exactly the reverse - fix that and update driver code to match.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -43,11 +43,11 @@ · 42 unmodified lines | |||
| 43 | #ifndef VIRTIO_BLK_NO_LEGACY | 43 | #ifndef VIRTIO_BLK_NO_LEGACY |
| 44 | #define VIRTIO_BLK_F_BARRIER 0 /* Does host support barriers? */ | 44 | #define VIRTIO_BLK_F_BARRIER 0 /* Does host support barriers? */ |
| 45 | #define VIRTIO_BLK_F_SCSI 7 /* Supports scsi command passthru */ | 45 | #define VIRTIO_BLK_F_SCSI 7 /* Supports scsi command passthru */ |
| 46 | #define VIRTIO_BLK_F_WCE 9 /* Writeback mode enabled after reset */ | 46 | #define VIRTIO_BLK_F_FLUSH 9 /* Flush command supported */ |
| 47 | #define VIRTIO_BLK_F_CONFIG_WCE 11 /* Writeback mode available in config */ | 47 | #define VIRTIO_BLK_F_CONFIG_WCE 11 /* Writeback mode available in config */ |
| 48 | #ifndef __KERNEL__ | 48 | #ifndef __KERNEL__ |
| 49 | /* Old (deprecated) name for VIRTIO_BLK_F_WCE. */ | 49 | /* Old (deprecated) name for VIRTIO_BLK_F_FLUSH. */ |
| 50 | #define VIRTIO_BLK_F_FLUSH VIRTIO_BLK_F_WCE | 50 | #define VIRTIO_BLK_F_WCE VIRTIO_BLK_F_FLUSH |
| 51 | #endif | 51 | #endif |
| 52 | #endif /* !VIRTIO_BLK_NO_LEGACY */ | 52 | #endif /* !VIRTIO_BLK_NO_LEGACY */ |
| 53 | 53 | ||