Linux 2.6.37 compat, WRITE_FLUSH_FUA
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 16 Jun 2011 18:20:22 +0000 (20:20 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 17 Jun 2011 21:37:26 +0000 (14:37 -0700)
commit96801d290652812780cf6c070729154d4af8e1ce
tree14156076eb6975748d4037e66a6717dad776a993
parentdb97f88646b0d59e8e3db9144006491fb2192854
Linux 2.6.37 compat, WRITE_FLUSH_FUA

The WRITE_FLUSH, WRITE_FUA, and WRITE_FLUSH_FUA flags have been
introduced as a replacement for WRITE_BARRIER.  This was done
to allow richer semantics to be expressed to the block layer.
It is the block layers responsibility to choose the correct way
to implement these semantics.

This change simply updates the bio's to use the new kernel API
which should be absolutely safe.  However, since ZFS depends
entirely on this working as designed for correctness we do
want to be careful.

Closes #281
include/linux/blkdev_compat.h
module/zfs/vdev_disk.c