From 782b2c326ea445c5cab0c1b0373d64d5e83cc5d4 Mon Sep 17 00:00:00 2001 From: Richard Yao Date: Mon, 31 Aug 2015 11:36:32 -0400 Subject: [PATCH] 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 --- include/linux/blkdev_compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/blkdev_compat.h b/include/linux/blkdev_compat.h index ef6fa3bbd62b..cdcf12c42090 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 /*