HomeFreeBSD

Revert "Pre-allocate vdev I/O buffers"

Description

Revert "Pre-allocate vdev I/O buffers"

Commit 86dd0fd added preallocated I/O buffers. This is no longer
required after the recent kmem changes designed to make our memory
allocation interfaces behave more like those found on Illumos. A
deadlock in this situation is no longer possible.

However, these allocations still have the potential to be expensive.
So a potential future optimization might be to perform then KM_NOSLEEP
so that they either succeed of fail quicky. Either case is acceptable
here because we can safely abort the aggregation.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Dec 13 2014, 12:40 AM
Parents
rG60e1eda929b0: Add kmem_cache.h include to default context
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG285b29d959d3: Revert "Pre-allocate vdev I/O buffers" (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jan 16 2015, 10:41 PM