Skip to contentSkip to conversation

blkfront and flush

DISCUSSION Bruce Rogers 3 participants 3 messages Jun 12, 2008 – Jun 13, 2008

lore
Share & tools
lore
#0 lore raw

Now that no-data barriers are supported/supportable, does it make sense to have blkfront call blk_queue_issue_flush_fn to register a flush method, which would use a no-data barrier request?

Is there any reason why this shouldn't work?

We have code which instead of using a bio barrier, calls blkdev_issue_flush() in the linux guest, which returns -EOPNOTSUPP because that support has never been in blkfront.

- Bruce Rogers

#1 lore raw

It sounds reasonable to me, although I'm no Linux blkdev interface expert.

-- Keir

Quoted 17 lines · Bruce Rogers

Now that no-data barriers are supported/supportable, does it make sense to have blkfront call blk_queue_issue_flush_fn to register a flush method, which would use a no-data barrier request?

Is there any reason why this shouldn't work?

We have code which instead of using a bio barrier, calls blkdev_issue_flush() in the linux guest, which returns -EOPNOTSUPP because that support has never been in blkfront.

- Bruce Rogers

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
Quoted 1 line · Keir Fraser

It sounds reasonable to me, although I'm no Linux blkdev interface expert.

Does this mean that Linux can support BLKIF_OP_FLUSH_DISKCACHE ?

thanks
john