History

virtio_blk: VIRTIO_BLK_F_WCE->VIRTIO_BLK_F_FLUSH

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.

Michael S. Tsirkin committed 10 years ago

Commit 592002f1 parent 78fe3982 files · +11 −6Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/virtio_blk.h+3−3
@@ -43,11 +43,11 @@ · 42 unmodified lines
4343 #ifndef VIRTIO_BLK_NO_LEGACY
4444 #define VIRTIO_BLK_F_BARRIER 0 /* Does host support barriers? */
4545 #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 */
4747 #define VIRTIO_BLK_F_CONFIG_WCE 11 /* Writeback mode available in config */
4848 #ifndef __KERNEL__
49−/* Old (deprecated) name for VIRTIO_BLK_F_WCE. */
50−#define VIRTIO_BLK_F_FLUSH VIRTIO_BLK_F_WCE
49+/* Old (deprecated) name for VIRTIO_BLK_F_FLUSH. */
50+#define VIRTIO_BLK_F_WCE VIRTIO_BLK_F_FLUSH
5151 #endif
5252 #endif /* !VIRTIO_BLK_NO_LEGACY */
5353

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t