freebsd-src/sys/dev/mps
Warner Losh a10253cffe mps(4): Fix unmatched devq release.
Port 9781c28c6d and a8837c77ef to the mps driver.  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. It also avoids a
'busy' requeue of I/Os failing when we're doing recovery that takes
longer than the normal busy timeout. These I/Os failing can lead to
filesystems being unmounted in the force unmount case for I/O errors.

Sponsored by:		Netflix
Reviewed by:		mav
Differential Revision:	https://reviews.freebsd.org/D33228
2021-12-02 13:53:44 -07:00
..
mpi mps: clean up empty lines in .c and .h files 2020-09-01 22:07:00 +00:00
mps.c Mark some sysctls as CTLFLAG_MPSAFE. 2021-08-10 20:44:27 -04:00
mps_config.c mps: clean up empty lines in .c and .h files 2020-09-01 22:07:00 +00:00
mps_ioctl.h mps: clean up empty lines in .c and .h files 2020-09-01 22:07:00 +00:00
mps_mapping.c mpr/mps(4): Make device mapping some more robust. 2021-04-23 23:36:51 -04:00
mps_mapping.h mps: clean up empty lines in .c and .h files 2020-09-01 22:07:00 +00:00
mps_pci.c Refine the busdma template interface. Provide tools for filling in fields 2020-09-14 05:58:12 +00:00
mps_sas.c mps(4): Fix unmatched devq release. 2021-12-02 13:53:44 -07:00
mps_sas.h Before issing the REMOVE_DEVICE command to the firmware, make sure that all 2020-02-25 04:27:23 +00:00
mps_sas_lsi.c Fix "set but not used" warnings in the mps driver. 2021-11-25 03:23:02 +00:00
mps_table.c Fix "set but not used" warnings in the mps driver. 2021-11-25 03:23:02 +00:00
mps_table.h
mps_user.c mpr, mps: Fix an off-by-one bug in the BTDH_MAPPING ioctl 2021-01-08 13:32:05 -05:00
mpsvar.h Fix mpr(4) and mps(4) state transitions and a use-after-free panic. 2021-06-03 13:46:11 -06:00