HomeFreeBSD

Do not set BIO_DONE if the BIO specifies a completion handler.

Description

Do not set BIO_DONE if the BIO specifies a completion handler.

biowait() will otherwise race with completions of such BIOs. In-tree code
only calls biowait() on BIOs that do not specify a handler, so this change
should not have any functional impact.

Reviewed by: mav
MFC after: 1 month
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D9070

Details

Provenance
markjAuthored on
Reviewer
mav
Differential Revision
D9070: Don't set BIO_DONE if a bio_done handler is provided
Parents
rS311900: Set CFLAGS correctly for sys/modules/em
Branches
Unknown
Tags
Unknown