From 2d405140e603beb44d8917b0bcf438b915007d12 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 26 Apr 2024 14:34:13 -0400 Subject: kernel: filedesc: Use mutex instead of spinlock Signed-off-by: Ian Moffett --- sys/include/sys/filedesc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/include/sys/filedesc.h b/sys/include/sys/filedesc.h index f8f9ba6..f2c2778 100644 --- a/sys/include/sys/filedesc.h +++ b/sys/include/sys/filedesc.h @@ -31,7 +31,7 @@ #define _SYS_FILEDESC_H_ #include -#include +#include #include #include @@ -51,7 +51,7 @@ struct filedesc { off_t offset; bool is_dir; struct vnode *vnode; - struct spinlock lock; + struct mutex lock; }; #if defined(_KERNEL) -- cgit v1.2.3