HomeFreeBSD

Cleanup pthread locks in ofed RDMA verbs

Description

Cleanup pthread locks in ofed RDMA verbs

On FreeBSD, pthread mutex, cond, and spinlocks allocate memory. On
Linux-based systems, these calls do not allocate memory. So there was a
safe assumption that the ofed RDMA verb calls do not need to explicitly
destroy the pthread locks. This assumption is false on FreeBSD. So let
us rearrange the code to cleanup the pthread locks.

Reviewed by: delphij
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D41105

Details

Provenance
sean.lim_dell.comAuthored on Sep 18 2023, 11:56 PM
vangyzenCommitted on Sep 19 2023, 2:10 PM
Reviewer
delphij
Differential Revision
D41105: Cleanup pthread locks in ofed RDMA verbs
Parents
rG75556db552c9: dummynet: fix comment typo
Branches
Unknown
Tags
Unknown