HomeFreeBSD

mpi3mr: poll reply queue and add MPI3MR_DEV_REMOVE_HS_COMPLETED flag

Description

mpi3mr: poll reply queue and add MPI3MR_DEV_REMOVE_HS_COMPLETED flag

An outstanding IO counter per target check has been added before deleting
the target from the OS which will poll the reply queue if there are any
outstanding IOs are found.

A new flag, named "MPI3MR_DEV_REMOVE_HS_COMPLETED," is added. If a remove event
for a target occurs and before the deletion of the target resource if the add event
for another target arrives reusing the same target ID then this flag will prevent
the removal of the target reference. This flag ensures synchronization between the interrupt
top and bottom half during target removal and addition events.

Reviewed by: imp
Approved by: imp
Differential revision: https://reviews.freebsd.org/D44423

Details

Provenance
chandrakanth.patil_broadcom.comAuthored on Mar 14 2024, 5:47 PM
sumit.saxena_broadcom.comCommitted on Jun 6 2024, 10:39 AM
Reviewer
imp
Differential Revision
D44423: mpi3mr: poll reply queue and add MPI3MR_DEV_REMOVE_HS_COMPLETED flag
Parents
rG042808f74707: mpi3mr: Controller state check before enabling PEL
Branches
Unknown
Tags
Unknown