HomeFreeBSD

mpr(4): Fix unmatched devq release.

Description

mpr(4): Fix unmatched devq release.

Before this change devq was frozen only if some command was sent to
the target after reset started, but release was called always. This
change freezes the devq immediately, leaving mprsas_action_scsiio()
check only to cover race condition due to different lock devq use.

This should also avoid unnecessary requeue of the commands, creating
additional log noise and confusing some broken apps.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

(cherry picked from commit 9781c28c6d63cfa8438d1aa31f512a6b217a6b2b)

Details

Provenance
mavAuthored on Aug 20 2021, 6:37 PM
Parents
rG0149aaeb8f60: mpr(4): Handle mprsas_alloc_tm() errors on device removal.
Branches
Unknown
Tags
Unknown