From 6a71c766e60a9ac12876a0ea8a10c997df2507a3 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 7 Apr 2022 22:21:31 +0200 Subject: kernel/vfs: implement a vfs request queue --- src/kernel/syscalls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/syscalls.c') diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index faa7ccc..daf7cac 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -215,8 +215,8 @@ int _syscall_fs_wait(char __user *buf, int max_len, struct fs_wait_response __us if (backend->queue) { // handle queued requests struct process *queued = backend->queue; - backend->queue = NULL; // TODO get the next queued proc - vfs_request_pass2handler(&queued->pending_req); + backend->queue = queued->waits4fs.queue_next; + vfs_request_pass2handler(&queued->waits4fs.req); } else { process_switch_any(); } -- cgit v1.2.3