From ce00d1677d7a419b427e7f11963eee982a55a231 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 4 Aug 2022 23:06:57 +0200 Subject: do some simple TODOs, organize the rest; general code maintainance --- src/kernel/vfs/request.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/kernel/vfs/request.c') diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c index d942fba..6883faa 100644 --- a/src/kernel/vfs/request.c +++ b/src/kernel/vfs/request.c @@ -114,7 +114,8 @@ void vfs_backend_user_accept(struct vfs_request *req) { assert(req && req->backend && req->backend->user.handler); handler = req->backend->user.handler; assert(handler->state == PS_WAITS4REQUEST); - assert(handler->handled_req == NULL); + if (handler->handled_req) + panic_unimplemented(); // the virt_cpy calls aren't present in all kernel backends // it's a way to tell apart kernel and user backends apart -- cgit v1.2.3