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
43#ifndef VIRTIO_BLK_NO_LEGACY43#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_WCE50#define VIRTIO_BLK_F_WCE VIRTIO_BLK_F_FLUSH
51#endif51#endif
52#endif /* !VIRTIO_BLK_NO_LEGACY */52#endif /* !VIRTIO_BLK_NO_LEGACY */
53 53

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