From 740cacba5befeba212935b00f8ae95008f564293 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 5 May 2022 21:43:21 +0200 Subject: kernel/proc: remove WAITS4IRQ --- src/kernel/vfs/request.c | 2 +- src/kernel/vfs/root.c | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'src/kernel/vfs') diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c index 5ad3b82..f463b86 100644 --- a/src/kernel/vfs/request.c +++ b/src/kernel/vfs/request.c @@ -56,7 +56,7 @@ int vfsreq_finish(struct vfs_request *req, int ret) { kfree(req->input.buf_kern); if (req->caller) { - assert(req->caller->state == PS_WAITS4FS || req->caller->state == PS_WAITS4IRQ); + assert(req->caller->state == PS_WAITS4FS); regs_savereturn(&req->caller->regs, ret); process_transition(req->caller, PS_RUNNING); } diff --git a/src/kernel/vfs/root.c b/src/kernel/vfs/root.c index c1b16fa..c7bd717 100644 --- a/src/kernel/vfs/root.c +++ b/src/kernel/vfs/root.c @@ -45,10 +45,6 @@ static void req_preprocess(struct vfs_request *req, size_t max_len) { } -static void wait_callback(struct process *proc) { - vfs_root_accept(proc->waits4irq.req); -} - static int handle(struct vfs_request *req, bool *ready) { assert(req->caller); switch (req->type) { -- cgit v1.2.3