]> git.proxmox.com Git - mirror_zfs-debian.git/commit
Set default zvol elevator to noop
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 5 Oct 2012 17:39:35 +0000 (10:39 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 5 Oct 2012 19:39:59 +0000 (12:39 -0700)
commit7bd04f2d7d99780f190d4027e6e81fc0df11ba95
tree20919bfb2d5dc2e9e997386f36a7ae5ae4ef7060
parent089fa91bc51dc10da5a75a6d9fff77f186fccb23
Set default zvol elevator to noop

It doesn't make sense for a zvol to use the default system I/O
scheduler because it is a virtual device.  Therefore, we change
the default scheduler to 'noop' for zvols provided that the
elevator_change() function is available.  This interface has
been available since Linux 2.6.36 and appears in the RHEL 6.x
kernels.

We deliberately do not implement the method for older kernels
because it was racy and could result in system crashes.  It's
better to simply manually tune the scheduler for these kernels.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1017
module/zfs/zvol.c