Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111056674
D29598.id86877.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
717 B
Referenced Files
None
Subscribers
None
D29598.id86877.diff
View Options
Index: sys/dev/xen/blkfront/blkfront.c
===================================================================
--- sys/dev/xen/blkfront/blkfront.c
+++ sys/dev/xen/blkfront/blkfront.c
@@ -268,12 +268,19 @@
sizeof(grant_ref_t) * sc->xbd_max_request_indirectpages);
}
- if (cm->cm_operation == BLKIF_OP_READ)
+ switch (cm->cm_operation) {
+ case BLKIF_OP_READ:
op = BUS_DMASYNC_PREREAD;
- else if (cm->cm_operation == BLKIF_OP_WRITE)
+ break;
+ case BLKIF_OP_WRITE:
+ case BLKIF_OP_WRITE_BARRIER:
+ case BLKIF_OP_FLUSH_DISKCACHE:
op = BUS_DMASYNC_PREWRITE;
- else
+ break;
+ default:
op = 0;
+ }
+
bus_dmamap_sync(sc->xbd_io_dmat, cm->cm_map, op);
gnttab_free_grant_references(cm->cm_gref_head);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 27, 7:38 PM (20 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16871227
Default Alt Text
D29598.id86877.diff (717 B)
Attached To
Mode
D29598: xen/blkfront: WRITE_BARRIER and FLUSH_DISKCACHE require barrier
Attached
Detach File
Event Timeline
Log In to Comment