aboutsummaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-26 14:34:13 -0400
committerIan Moffett <ian@osmora.org>2024-04-26 14:34:13 -0400
commit2d405140e603beb44d8917b0bcf438b915007d12 (patch)
treeb31afd689e9f99f86de03fc19677fb3cba55d7ad /sys/include
parent859e500fd86c20e7841fd6dd2d63d21c3dd4225c (diff)
kernel: filedesc: Use mutex instead of spinlock
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/filedesc.h4
1 files 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 <sys/vnode.h>
-#include <sys/spinlock.h>
+#include <sys/mutex.h>
#include <sys/syscall.h>
#include <sys/types.h>
@@ -51,7 +51,7 @@ struct filedesc {
off_t offset;
bool is_dir;
struct vnode *vnode;
- struct spinlock lock;
+ struct mutex lock;
};
#if defined(_KERNEL)