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.

Details

Provenance
mavAuthored on Aug 20 2021, 6:37 PM
Parents
rG5d75ffdd0c67: vfs: remove an unused variable from nameicap_tracker_add
Branches
Unknown
Tags
Unknown