]> sourceware.org Git - lvm2.git/commit
Use readahead of underlying device and not default (smaller) one.
authorMilan Broz <mbroz@redhat.com>
Wed, 20 May 2009 11:09:49 +0000 (11:09 +0000)
committerMilan Broz <mbroz@redhat.com>
Wed, 20 May 2009 11:09:49 +0000 (11:09 +0000)
commitd396100278a96826a60c383e8cb84d755c43f50e
treee5a2437e9e526887d6db34055c576c1889222f60
parenta01e55b6ec082041fd9914162d31b40b7841b710
Use readahead of underlying device and not default (smaller) one.

When we are stacking LV over device, which has for some reason
increased read_ahead (e.g. MD RAID), the read_ahead hint
for libdevmapper is wrong (it is zero).

If the calculated read_ahead hint is zero, patch uses read_ahead of underlying device
(if first segment is PV) when setting DM_READ_AHEAD_MINIMUM_FLAG.

Because we are using dev-cache, it also store this value to cache for future use
(if several LVs are over one PV, BLKRAGET is called only once for underlying device.)

This should fix all the reamining problems with readahead mismatch reported
for DM over MD configurations (and similar cases).
WHATS_NEW
lib/activate/activate.c
lib/activate/dev_manager.c
lib/device/dev-cache.c
lib/device/dev-io.c
lib/device/device.h
lib/metadata/metadata.c
lib/metadata/metadata.h
test/t-read-ahead.sh
This page took 0.034149 seconds and 5 git commands to generate.