Fix harmless "BARRIER is deprecated" kernel warning on Centos 6.8
commit463009865fb4398b32a825d7c00cd8a942637fae
authorTony Hutter <hutter2@llnl.gov>
Wed, 8 Mar 2017 17:20:21 +0000 (8 09:20 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 8 Mar 2017 17:20:21 +0000 (8 09:20 -0800)
treed0e057b5f6787310aeffc76f4aec63807e8b9b5e
parent423e7b62613d0a359e488cf2599a44174d073805
Fix harmless "BARRIER is deprecated" kernel warning on Centos 6.8

A one time warning after module load that "BARRIER is deprecated" was seen
on the heavily patched 2.6.32-642.13.1.el6.x86_64 Centos 6.8 kernel.  It seems
that kernel had both the old BARRIER and the newer FLUSH/FUA interfaces
defined.  This fixes the warning by prefering the newer FLUSH/FUA interface
if it's available.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #5739
Closes #5828
include/linux/blkdev_compat.h