HomeFreeBSD

Hold the reference count until the CCB is released

Description

Hold the reference count until the CCB is released

When a disk disappears and the periph is invalidated, any I/Os that
are pending with the controller can cause a crash when they
complete. Move to holding the softc reference count taken in dastart()
until the I/O is complete rather than only until xpt_action()
returns. (This approach was suggested by Ken Merry.) This extends
the method used in da to ada, nda, and mda.

Sponsored by: Netflix
Submitted by: Chuck Silvers

Details

Provenance
impAuthored on
Parents
rS333650: cxgbe(4): Claim some more T5 and T6 boards.
Branches
Unknown
Tags
Unknown