summaryrefslogtreecommitdiff
path: root/src/kernel/syscalls.c
diff options
context:
space:
mode:
authordzwdz2022-04-07 22:21:31 +0200
committerdzwdz2022-04-07 22:21:31 +0200
commit6a71c766e60a9ac12876a0ea8a10c997df2507a3 (patch)
tree9678d02c2727741f38393edfffb856dffd0548cf /src/kernel/syscalls.c
parent85dfa7d1434aec965513414e36d6bbb300830512 (diff)
kernel/vfs: implement a vfs request queue
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r--src/kernel/syscalls.c4
1 files changed, 2 insertions, 2 deletions
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();
}