]> granicus.if.org Git - zfs/commit
Fix set block scheduler warnings
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 25 Feb 2011 19:26:41 +0000 (11:26 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 25 Feb 2011 19:37:11 +0000 (11:37 -0800)
commitfdcd952b4d93f9c9d9ec89a95ef6e2964c27da95
treeca6af7fa72441aa1d2c08d0ebca6e83907593445
parent4c0d8e50b99b4f3b4a9b7bc67ac7fc4e406f5755
Fix set block scheduler warnings

There were two cases when attempting to set the vdev block device
scheduler which would causes console warnings.

The first case was when the vdev used a loop, ram, dm, or other
such device which doesn't support a configurable scheduler.  In
these cases attempting to set a scheduler is pointless and can
be safely skipped.

The secord case is slightly more troubling.  We were seeing
transient cases where setting the elevator would return -EFAULT.
On retry everything is fine so there appears to be a small window
where this is possible.  To handle that case we silently retry
up to three times before reporting the warning.

In all of the above cases the warning is harmless and at worse you
may see slightly different performance characteristics from one
or more of your vdevs.
module/zfs/vdev_disk.c