HomeFreeBSD

VDEV_REQ_FUA should be mapped to REQ_FUA

Description

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>

Details

Provenance
Richard Yao <ryao@gentoo.org>Authored on Aug 31 2015, 3:36 PM
Parents
rG69de34219af4: Dbuf hash table should be sized as is the arc hash table
Branches
Unknown
Tags
Unknown

Event Timeline

Richard Yao <ryao@gentoo.org> committed rG782b2c326ea4: VDEV_REQ_FUA should be mapped to REQ_FUA (authored by Richard Yao <ryao@gentoo.org>).Sep 2 2015, 4:39 PM