summaryrefslogtreecommitdiff
path: root/src/kernel/vfs/root.c
diff options
context:
space:
mode:
authordzwdz2022-04-14 22:11:36 +0200
committerdzwdz2022-04-14 22:11:36 +0200
commit6613d7e5f3c2e704a6812b0fbcaf79ade8d19980 (patch)
treec83241169567f857bc03cb3e730a4eee4de64d13 /src/kernel/vfs/root.c
parent0d59c8d11173b28f958413128eb792655568a365 (diff)
kernel/proc: only change state through `process_transition`
Diffstat (limited to 'src/kernel/vfs/root.c')
-rw-r--r--src/kernel/vfs/root.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/vfs/root.c b/src/kernel/vfs/root.c
index cdc388f..11d5f64 100644
--- a/src/kernel/vfs/root.c
+++ b/src/kernel/vfs/root.c
@@ -56,7 +56,7 @@ static void wait_callback(struct process *proc) {
static bool wait_setup(struct vfs_request *req, bool *ready, bool (*ready_fn)()) {
if (!ready_fn()) {
*ready = false;
- req->caller->state = PS_WAITS4IRQ;
+ process_transition(req->caller, PS_WAITS4IRQ);
req->caller->waits4irq.req = *req;
req->caller->waits4irq.ready = ready_fn;
req->caller->waits4irq.callback = wait_callback;