]> git.proxmox.com Git - mirror_zfs.git/commit
Avoid dynamic allocation of 'search zio'
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 5 Aug 2014 20:57:59 +0000 (13:57 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 11 Aug 2014 15:44:54 +0000 (08:44 -0700)
commit50b25b2187134ac7b19cf93bd35a420223f1d343
tree266c3960875762f8243847ad51a96416998e50ac
parentab6f407faa0188219fb4852ac5e05f1934c985ee
Avoid dynamic allocation of 'search zio'

As part of commit e8b96c6 the search zio used by the
vdev_queue_io_to_issue() function was moved to the heap
to minimize stack usage.  Functionally this is fine, but
to maximize performance it's best to minimize the number
of dynamic allocations.

To avoid this allocation temporary space for the search
zio has been reserved in the vdev_queue structure.  All
access must be serialized through the vq_lock.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ned Bass <bass6@llnl.gov>
Closes #2572
include/sys/vdev_impl.h
module/zfs/vdev_queue.c