1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/config
David Teigland ca66d52032 io: use sync io if aio fails
io_setup() for aio may fail if a system has reached the
aio request limit.  In this case, fall back to using
sync io.  Also, lvm use of aio can be disabled entirely
with config setting global/use_aio=0.

The system limit for aio requests can be seen from
  /proc/sys/fs/aio-max-nr

The current usage of aio requests can be seen from
  /proc/sys/fs/aio-nr

The system limit for aio requests can be increased by
setting fs.aio-max-nr using sysctl.

Also add last-byte limit to the sync io code.
2018-11-20 09:13:20 -06:00
..
config_settings.h io: use sync io if aio fails 2018-11-20 09:13:20 -06:00
config.c device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
config.h device_mapper: rename libdevmapper.h -> all.h 2018-06-08 12:31:45 +01:00
defaults.h io: use sync io if aio fails 2018-11-20 09:13:20 -06:00