HomeFreeBSD

We can't release the refcount outside of the periph lock.

Description

We can't release the refcount outside of the periph lock.

We're dropping the periph lock then dropping the refcount. However,
that violates the locking protocol and is racy. This seems to be
the cause of weird occasional panics with a bogus assert.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D15517

Details

Provenance
impAuthored on
Differential Revision
D15517: We can't release the refcount outside of the periph lock.
Parents
rS334165: Avoid two suword() calls per auxarg entry.
Branches
Unknown
Tags
Unknown