Skip to content

Commit

Permalink
Added V(R) Scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
Snuzzo committed Oct 12, 2012
1 parent 876df8c commit 4df4654
Show file tree
Hide file tree
Showing 4 changed files with 468 additions and 1 deletion.
3 changes: 3 additions & 0 deletions arch/arm/configs/vigor_defconfig
Expand Up @@ -167,9 +167,12 @@ CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
CONFIG_IOSCHED_SIO=y
CONFIG_IOSCHED_VR=y
CONFIG_DEFAULT_DEADLINE=y
# CONFIG_DEFAULT_CFQ is not set
# CONFIG_DEFAULT_NOOP is not set
# CONFIG_DEFAULT_SIO is not set
# CONFIG_DEFAULT_VR is not set
CONFIG_DEFAULT_IOSCHED="deadline"
# CONFIG_INLINE_SPIN_TRYLOCK is not set
# CONFIG_INLINE_SPIN_TRYLOCK_BH is not set
Expand Down
12 changes: 11 additions & 1 deletion block/Kconfig.iosched
Expand Up @@ -53,6 +53,13 @@ config IOSCHED_SIO
basic merging, trying to keep a minimum overhead. It is aimed
mainly for aleatory access devices (eg: flash devices).

config IOSCHED_VR
tristate "V(R) I/O scheduler"
default y
---help---
Requests are chosen according to SSTF with a penalty of rev_penalty
for switching head direction.

choice
prompt "Default I/O scheduler"
default DEFAULT_CFQ
Expand All @@ -72,6 +79,9 @@ choice
config DEFAULT_SIO
bool "SIO" if IOSCHED_SIO=y

config DEFAULT_VR
bool "VR" if IOSCHED_VR=y

endchoice

config DEFAULT_IOSCHED
Expand All @@ -80,7 +90,7 @@ config DEFAULT_IOSCHED
default "cfq" if DEFAULT_CFQ
default "noop" if DEFAULT_NOOP
default "sio" if DEFAULT_SIO

default "vr" if DEFAULT_SIO
endmenu

endif
1 change: 1 addition & 0 deletions block/Makefile
Expand Up @@ -14,6 +14,7 @@ obj-$(CONFIG_IOSCHED_NOOP) += noop-iosched.o
obj-$(CONFIG_IOSCHED_DEADLINE) += deadline-iosched.o
obj-$(CONFIG_IOSCHED_CFQ) += cfq-iosched.o
obj-$(CONFIG_IOSCHED_SIO) += sio-iosched.o
obj-$(CONFIG_IOSCHED_SIO) += vr-iosched.o

obj-$(CONFIG_BLOCK_COMPAT) += compat_ioctl.o
obj-$(CONFIG_BLK_DEV_INTEGRITY) += blk-integrity.o

0 comments on commit 4df4654

Please sign in to comment.