HomeFreeBSD

CTL: Fix double command completions on HA failover.

Description

CTL: Fix double command completions on HA failover.

I've found couple cases when CTL_FLAG_SENT_2OTHER_SC flags were not
cleared on commands return from active node or the send failure. It
created races when ctl_failover_lun() call before ctl_process_done()
could cause second ctl_done() and ctl_process_done() calls, causing
all sorts of problems.

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

(cherry picked from commit 3b0e3e8d2a6fab953a0ce537b6131330ccf36170)

Details

Provenance
mavAuthored on Jun 14 2022, 4:24 AM
Parents
rG78088c5714e0: busdma: Protect ARM busdma bounce page counters using the bounce page lock.
Branches
Unknown
Tags
Unknown