Fix spurious -EFAULT when setting I/O scheduler
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 22 Apr 2011 20:50:17 +0000 (13:50 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 22 Apr 2011 21:55:35 +0000 (14:55 -0700)
commite2448b0e62f73f8b9574d74c5b327707b67b703a
tree3d92b1959de3a26dbd1118c95ea7c692c8ad7d0d
parent6a8f9b6bf0de3e3d09fcfa32e129c978e7641a8f
Fix spurious -EFAULT when setting I/O scheduler

Occasionally we would see an -EFAULT returned when setting the
I/O scheduler on a vdev.  This was caused an improperly formatted
user mode helper command.

This commit restructures the command to something simpler, allocates
space for it dynamically to save stack, and removes the retry logic
which is no longer needed.

Closes #169
module/zfs/vdev_disk.c