]> git.proxmox.com Git - mirror_zfs.git/commit
Fix zfs_vdev_aggregation_limit bounds checking
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 17 Dec 2015 17:26:05 +0000 (09:26 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 18 Dec 2015 21:32:06 +0000 (13:32 -0800)
commita58df6f53687ac6d1dee21f60de41b2552a43201
treeacf683082fa88ee8f9ea5924cbec4a30210e4e4a
parent6fe53787f38f10956b8d375133ed4559f8ce847b
Fix zfs_vdev_aggregation_limit bounds checking

Update the bounds checking for zfs_vdev_aggregation_limit so that
it has a floor of zero and a maximum value of the supported block
size for the pool.

Additionally add an early return when zfs_vdev_aggregation_limit
equals zero to disable aggregation.  For very fast solid state or
memory devices it may be more expensive to perform the aggregation
than to issue the IO immediately.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
module/zfs/vdev_queue.c