Dan Smith 93a94f503b Enable direct-io on LVM loop devices
This enables direct-io on the loop devices that we create for LVM backing
stores. The goal here is to reduce the buffer cache overhead involved with
loop mounting a very large file on a filesystem, as well as potentially
providing a little more block-device-like behavior for things that expect
them. We are hoping this will address some of the very long LVM calls that
cinder does, which randomly take a very long time, causing timeouts.

The loop direct-io support was added in kernel 4.4.0, which was xenial,
but the losetup binary does not have the required flag. Thus, this patch
checks the "losetup -h" output for the flag before deciding to enable it.

Change-Id: Idc69cf3598d6ed6646c0145733c90ad0b1b60883
2018-12-17 09:34:35 +11:00
..
2015-11-27 15:36:04 +11:00
2018-01-11 16:19:36 +01:00
2018-09-24 12:34:15 +02:00
2015-11-27 15:36:04 +11:00
2017-09-01 15:08:17 -04:00
2018-03-11 05:43:44 +00:00
2018-06-18 15:54:36 +00:00
2015-11-27 15:36:04 +11:00
2017-07-10 17:06:16 -03:00
2018-03-28 13:51:31 -05:00
lvm
2018-12-17 09:34:35 +11:00
2018-11-02 15:29:37 +00:00
2017-06-20 14:09:30 -04:00