Lock busdma operations and serialize detach against open/close
authorMarcel Moolenaar <marcel@FreeBSD.org>
Thu, 4 Jul 2019 02:51:34 +0000 (02:51 +0000)
committerMarcel Moolenaar <marcel@FreeBSD.org>
Thu, 4 Jul 2019 02:51:34 +0000 (02:51 +0000)
commit9f011bca829751ed3552ac94fe7c865d75fabfc4
treec19ac19a9d9e24efc4baf2e30f735bb758c584fa
parent38e220e8dfd6ed278982361bfa6651995c8d7f7a
Lock busdma operations and serialize detach against open/close

Use sx to allow M_WAITOK allocations (suggested by markj).

admbugs: 782
Reviewed by: markj
sys/dev/proto/proto.h
sys/dev/proto/proto_busdma.c
sys/dev/proto/proto_busdma.h
sys/dev/proto/proto_core.c