Patent ID: 7765361

Claim:
A computer system, the computer system comprising: system memory; one or more processors; a storage device, the storage device including a media controller, a controller cache, and durable storage, the media controller configured with cache behavior that writes data from the controller cache to the durable storage when values for specified criteria are satisfied; one or more other computer-readable media having stored thereon computer-executable instructions representing a log status component and a cache flushing component, the log status component configured to: monitor log records written during transaction commits; and determines when a transaction lacks a write-ordering guarantee based on values for the specified criteria when a log record for the transaction is written; and wherein the cache flushing component is configured to: send a flush command to the media controller to override the cache behavior of the media controller and force the storage device to durably write a log record, the flush command expressly instructing the media controller to flush any data cached in the controller cache to the durable storage in response to the log status component determining that a transaction lacks a write-ordering guarantee.