HomeFreeBSD

nvmf_tcp: Update R2T accounting stats when aborting command buffers

Description

nvmf_tcp: Update R2T accounting stats when aborting command buffers

If a queue pair is destroyed (e.g. due to the TCP connection dropping)
while a host to controller data transfer is in progress, the
pending_r2ts counter can be non-zero. This can later trigger an
assertion failure when the capsule is freed. To fix, update the
relevant R2T accounting stats when aborting active command buffers
during queue pair destruction.

Sponsored by: Chelsio Communications

Details

Provenance
jhbAuthored on Jul 30 2024, 2:28 PM
Parents
rG6df040ea6e4a: nvmf_tcp: Avoid setting some unused parameters in tcp_allocate_qpair
Branches
Unknown
Tags
Unknown