HomeFreeBSD

Move the bus_dma_tag creation and per-transaction data allocation from

Description

Move the bus_dma_tag creation and per-transaction data allocation from
xbd_initialize to xbd_connect. Both of these initialization steps need
to know what the maximum possible I/O size will be, and when we gain
support for indirect segment I/Os we won't know that value until we
reach xbd_connect. Since none of this data is used before xbd_connect
completes, moving the initialization is harmless.

This commit should not result in any functional changes.

Details

Provenance
cpercivaAuthored on
Parents
rS284662: If we fail to allocate memory, pass ENOMEM as the error code, not the
Branches
Unknown
Tags
Unknown