HomeFreeBSD

Hold the mutex when releasing a callout.

Description

Hold the mutex when releasing a callout.

In xpt_release_device(), callout_stop() was being called without
holding the mutex (send_mtx) that is used to protect the callout.

So, move the mtx_unlock() call so that it is protected.

MFC after: 1 week
Sponsored by: Spectra Logic

Details

Provenance
kenAuthored on
Parents
rS363259: Add GIT_CMD, similar to SVN_CMD.
Branches
Unknown
Tags
Unknown