HomeFreeBSD

hyperv/vmbus: Fix the racy channel close.

Description

hyperv/vmbus: Fix the racy channel close.

It is not safe to iterate the sub-channel list w/o lock on the
close path, while it's even more difficult to hold the lock
and iterate the sub-channel list. We leverage the
vmbua_{get,rel}_subchan() functions to solve this dilemma.

MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D7112

Details

Provenance
sepheAuthored on
Differential Revision
D7112: hyperv/vmbus: Fix the racy channel close.
Parents
rS302817: hyperv/vmbus: Field renaming to reflect reality
Branches
Unknown
Tags
Unknown