diff options
Diffstat (limited to 'device/io_req.h')
-rw-r--r-- | device/io_req.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/device/io_req.h b/device/io_req.h index b80b3dde..fb636969 100644 --- a/device/io_req.h +++ b/device/io_req.h @@ -38,6 +38,7 @@ #include <kern/slab.h> #include <kern/kalloc.h> #include <kern/lock.h> +#include <vm/vm_map.h> #include <vm/vm_page.h> #include <device/device_types.h> #include <device/dev_hdr.h> @@ -95,6 +96,8 @@ struct io_req { * locking is needed in this sequence. Unfortunately, a synchronous wait * for a buffer requires a lock to avoid problems if the wait and interrupt * happen simultaneously on different processors. + * + * Shall be taken at splio only */ #define ior_lock(ior) simple_lock(&(ior)->io_req_lock) |