diff options
author | dzwdz | 2022-04-07 22:21:31 +0200 |
---|---|---|
committer | dzwdz | 2022-04-07 22:21:31 +0200 |
commit | 6a71c766e60a9ac12876a0ea8a10c997df2507a3 (patch) | |
tree | 9678d02c2727741f38393edfffb856dffd0548cf /src/kernel/syscalls.c | |
parent | 85dfa7d1434aec965513414e36d6bbb300830512 (diff) |
kernel/vfs: implement a vfs request queue
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r-- | src/kernel/syscalls.c | 4 |
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(); } |