summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRichard Yao <[email protected]>2015-08-31 11:36:32 -0400
committerRichard Yao <[email protected]>2015-09-02 12:39:08 -0400
commit782b2c326ea445c5cab0c1b0373d64d5e83cc5d4 (patch)
tree7a20581b82ff8f6833d714304a02f0c369bffb24 /include
parent69de34219af4a4d100cc5ed155a68ab03393fca4 (diff)
VDEV_REQ_FUA should be mapped to REQ_FUA
Pre-2.6.37 kernels support REQ_FUA in request flags, but not in BIO flags. zvols are the only consumer of VDEV_REQ_FUA and since they are passed requests, they should be obey the REQ_FUA flag like later kernels. This optimization will only matter on 2.6.36 and 2.6.37 because the zvol rework changes things to use bio, where we no longer are able to distinguish on earlier kernels Signed-off-by: Richard Yao <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/linux/blkdev_compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blkdev_compat.h b/include/linux/blkdev_compat.h
index ef6fa3bbd..cdcf12c42 100644
--- a/include/linux/blkdev_compat.h
+++ b/include/linux/blkdev_compat.h
@@ -458,7 +458,7 @@ bio_set_flags_failfast(struct block_device *bdev, int *flags)
#else
#define VDEV_WRITE_FLUSH_FUA WRITE_BARRIER
#define VDEV_REQ_FLUSH REQ_HARDBARRIER
-#define VDEV_REQ_FUA REQ_HARDBARRIER
+#define VDEV_REQ_FUA REQ_FUA
#endif
/*