diff options
author | le <le@FreeBSD.org> | 2004-03-19 10:28:34 +0000 |
---|---|---|
committer | le <le@FreeBSD.org> | 2004-03-19 10:28:34 +0000 |
commit | 9594cbf80177fc0be18e4e86999a7245729d2658 (patch) | |
tree | 71c76a01a83ed3994c0915df88b8aa6e8a0bb941 /sys/dev/vinum/vinumvar.h | |
parent | b893e6c496141ad1b9c9ac7424743d98fc89da5e (diff) | |
download | FreeBSD-src-9594cbf80177fc0be18e4e86999a7245729d2658.zip FreeBSD-src-9594cbf80177fc0be18e4e86999a7245729d2658.tar.gz |
When doing round-robin reads from a multi-plex volume, only switch to the
next plex if the sector to be read isn't nearby the last read sector.
Submitted by: Vsevolod Lobko <seva@ip.net.ua> via ru@
Approved by: grog (mentor)
Diffstat (limited to 'sys/dev/vinum/vinumvar.h')
-rw-r--r-- | sys/dev/vinum/vinumvar.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/vinum/vinumvar.h b/sys/dev/vinum/vinumvar.h index 807439c..8e7edd8 100644 --- a/sys/dev/vinum/vinumvar.h +++ b/sys/dev/vinum/vinumvar.h @@ -361,6 +361,13 @@ enum parityop { rebuildandcheckparity, /* rebuildparity with the -v option */ }; +/* + * When doing round-robin reads from a multi-plex volume, switch to the + * next plex if the difference of the last read sector and the next sector + * to be read is this many sectors. + */ +#define ROUNDROBIN_SWITCH 128 /* 64k */ + #ifdef VINUMDEBUG /* Debugging stuff */ enum debugflags { |