]> granicus.if.org Git - zfs/commit
VDEV_REQ_FUA should be mapped to REQ_FUA
authorRichard Yao <ryao@gentoo.org>
Mon, 31 Aug 2015 15:36:32 +0000 (11:36 -0400)
committerRichard Yao <ryao@gentoo.org>
Wed, 2 Sep 2015 16:39:08 +0000 (12:39 -0400)
commit782b2c326ea445c5cab0c1b0373d64d5e83cc5d4
tree7a20581b82ff8f6833d714304a02f0c369bffb24
parent69de34219af4a4d100cc5ed155a68ab03393fca4
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 <ryao@gentoo.org>
include/linux/blkdev_compat.h