HomeFreeBSD

Move xpt_run_devq() call before request completion callback where it was

Description

Move xpt_run_devq() call before request completion callback where it was
originally.

I am not sure why exactly have I moved it during one of many refactorings
during camlock project, but obviously it opens race window that may cause
use after free panics during SIM (in reported cases umass(4)) detach.

MFC after: 2 weeks

Details

Provenance
mavAuthored on
Parents
rS260548: We don't need chain write lock since we're not modifying its contents.
Branches
Unknown
Tags
Unknown

Event Timeline