Modify vdev_elevator_switch() to use elevator_change()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Sun, 26 Aug 2012 20:38:06 +0000 (03:38 +0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 3 Oct 2012 20:31:44 +0000 (13:31 -0700)
commit6d1d976b2c2c6b80de75a480c998466068066846
treec3e3ad57601ff7c63f682a68165c7a80d3a1c139
parent2f342404c157f130129784f2592eaadf0930beab
Modify vdev_elevator_switch() to use elevator_change()

As of Linux 2.6.36 an elevator_change() interface was added.
This commit updates vdev_elevator_switch() to use this interface
when available, otherwise it falls back to the usermodehelper
method.

Original-patch-by: foobarz <sysop@xeon.(none)>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #906
config/kernel-elevator-change.m4 [new file with mode: 0644]
config/kernel.m4
module/zfs/vdev_disk.c