summaryrefslogtreecommitdiff
path: root/drivers/dca
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2014-04-29 21:41:29 +0400
committerMatthew Wilcox <matthew.r.wilcox@intel.com>2014-05-05 18:54:02 +0400
commit53562be74bd06bbe74d2acf3caca5398f8eeb160 (patch)
tree7e070ef357ad00df7d971d5672711e17abda2232 /drivers/dca
parenta7d2ce2832d84e0182585f63bf96ca7323b3aee7 (diff)
downloadlinux-53562be74bd06bbe74d2acf3caca5398f8eeb160.tar.xz
NVMe: Flush with data support
It is possible a filesystem may send a flush flagged bio with write data. There is no such composite NVMe command, so the driver sends flush and write separately. The device is allowed to execute these commands in any order, so it was possible the driver ends the bio after the write completes, but while the flush is still active. We don't want to let a filesystem believe flush succeeded before it really has; this could cause data corruption on a power loss between these events. To fix, this patch splits the flush and write into chained bios. Signed-off-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'drivers/dca')
0 files changed, 0 insertions, 0 deletions