]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
mpr(4): Fix unmatched devq release.
authorAlexander Motin <mav@FreeBSD.org>
Fri, 20 Aug 2021 18:37:55 +0000 (14:37 -0400)
committerAlexander Motin <mav@FreeBSD.org>
Fri, 20 Aug 2021 18:51:12 +0000 (14:51 -0400)
commit9781c28c6d63cfa8438d1aa31f512a6b217a6b2b
tree5854793526ba8e90ec1bbd461aef773b575422ec
parent5d75ffdd0c6751e220fdadcf216124013139f1ac
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.
sys/dev/mpr/mpr_sas.c