HomeFreeBSD

Avoid dynamic allocation of 'search zio'

Description

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

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Aug 5 2014, 8:57 PM
Parents
rGab6f407faa01: Use KM_PUSHPAGE in dsl_dataset_rollback_check()
Branches
Unknown
Tags
Unknown