]> git.baikalelectronics.ru Git - kernel.git/commit
xen-blkfront: feature flags handling adjustments
authorJan Beulich <JBeulich@suse.com>
Mon, 23 Jan 2017 15:12:19 +0000 (08:12 -0700)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 23 Jan 2017 18:27:41 +0000 (13:27 -0500)
commitba0b031f09a0d15e744f67435a6881213aa56318
tree5bf0326545d0c4525a43f3c50cfcdef09f0baa88
parent9101e48b7a8cf377cb634be96a8ebe84f8d37069
xen-blkfront: feature flags handling adjustments

Don't truncate the "feature-persistent" value read from xenstore: Any
non-zero value is supposed to enable the feature, just like is already
being done for feature_secdiscard.

Just like the other feature_* fields, feature_flush and feature_fua are
boolean flags, and hence fit well into a single bit.

Keep all bit fields together to limit gaps.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkfront.c