1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 03:27:58 +03:00

readahead at least twice the strip size (same as raid0 driver does)

This commit is contained in:
Zdenek Kabelac 2008-01-08 16:47:10 +00:00
parent 50c41b09cd
commit 1c1b068ff8

View File

@ -953,7 +953,8 @@ static int _add_new_lv_to_dtree(struct dev_manager *dm, struct dm_tree *dtree,
}
if (read_ahead == DM_READ_AHEAD_AUTO) {
read_ahead = max_stripe_size;
/* we need RA at least twice a whole stripe - see the comment in md/raid0.c */
read_ahead = max_stripe_size * 2;
read_ahead_flags = DM_READ_AHEAD_MINIMUM_FLAG;
}