Files
mirror_zfs/module/zfs
Etienne Dechamps d9b0ebbe82 Remove the bio_empty_barrier() check.
To determine whether the kernel is capable of handling empty barrier
BIOs, we check for the presence of the bio_empty_barrier() macro,
which was introduced in 2.6.24. If this macro is defined, then we can
flush disk vdevs; if it isn't, then flushing is disabled.

Unfortunately, the bio_empty_barrier() macro was removed in 2.6.37,
even though the kernel is still capable of handling empty barrier BIOs.

As a result, flushing is effectively disabled on kernels >= 2.6.37,
meaning that starting from this kernel version, zfs doesn't use
barriers to guarantee on-disk data consistency. This is quite bad and
can lead to potential data corruption on power failures.

This patch fixes the issue by removing the configure check for
bio_empty_barrier(), as we don't support kernels <= 2.6.24 anymore.

Thanks to Richard Kojedzinszky for catching this nasty bug.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1318
2013-02-24 10:22:34 -08:00
..
2012-08-27 12:01:37 -07:00
2013-01-08 10:35:43 -08:00
2013-01-08 10:35:35 -08:00
2013-01-08 10:35:44 -08:00
2013-01-08 10:35:35 -08:00
2010-08-26 14:24:34 -07:00
2010-08-31 13:41:58 -07:00
2013-02-06 11:19:58 -08:00
2013-02-04 16:39:08 -08:00
2013-01-08 10:35:35 -08:00
2012-08-27 12:01:37 -07:00
2013-01-08 10:35:35 -08:00
2013-01-08 10:35:35 -08:00
2013-01-25 15:07:40 -08:00
2013-01-08 10:35:35 -08:00
2013-02-06 11:19:58 -08:00
2012-09-17 11:22:23 -07:00
2013-01-08 10:35:35 -08:00
2010-08-31 13:41:58 -07:00
2012-10-15 16:01:54 -07:00
2010-08-31 08:38:46 -07:00
2012-08-27 12:01:37 -07:00
2012-08-27 12:01:37 -07:00
2010-12-07 16:05:25 -08:00
2010-08-31 13:41:59 -07:00
2010-08-31 13:41:58 -07:00
2013-01-08 10:35:35 -08:00
2010-08-31 13:41:58 -07:00
2012-08-27 12:01:37 -07:00
2013-01-08 10:35:42 -08:00
2012-08-27 12:01:37 -07:00
2012-08-27 12:01:37 -07:00
2012-08-27 12:01:37 -07:00
2013-01-08 10:35:42 -08:00
2013-01-08 10:35:42 -08:00
2012-09-05 08:44:58 -07:00
2013-01-08 10:35:35 -08:00
2010-08-31 13:41:58 -07:00
2013-01-25 15:07:40 -08:00
2012-02-09 16:37:48 -08:00
2011-03-02 11:44:34 -08:00
2012-12-20 09:56:28 -08:00
2010-08-31 13:41:50 -07:00
2012-09-17 11:06:58 -07:00
2012-12-10 09:44:45 -08:00
2011-05-04 10:02:37 -07:00
2013-01-23 16:33:29 -08:00
2013-02-12 10:27:39 -08:00
2010-09-17 16:24:15 -07:00
2013-01-18 09:44:55 -08:00