From cb5e3ca248435f19fce0254987ba894a25611974 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 15 Feb 2023 23:40:54 +0100 Subject: Document spl levels of locks taken during interrupts --- device/ds_routines.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'device/ds_routines.c') diff --git a/device/ds_routines.c b/device/ds_routines.c index 07ab7b30..94e61592 100644 --- a/device/ds_routines.c +++ b/device/ds_routines.c @@ -1507,8 +1507,9 @@ ds_no_senders(mach_no_senders_notification_t *notification) notification->not_count); } +/* Shall be taken at splio only */ +def_simple_lock_data(static, io_done_list_lock) /* Lock for... */ queue_head_t io_done_list; -def_simple_lock_data(static, io_done_list_lock) #define splio splsched /* XXX must block ALL io devices */ -- cgit v1.2.3