Per-cpu kernel pseudo process
This commit is contained in:
@@ -125,13 +125,8 @@ int vfs_volume_open (struct proc* proc, const char* volume_name, struct reschedu
|
||||
spin_unlock (&volume->lock);
|
||||
return ST_OK;
|
||||
} else {
|
||||
if (proc == VFS_KERNEL) {
|
||||
spin_unlock (&volume->lock);
|
||||
return -ST_TRY_AGAIN;
|
||||
} else {
|
||||
proc_sq_suspend (proc, &volume->sq, &volume->lock, rctx);
|
||||
return ST_OK;
|
||||
}
|
||||
proc_sq_suspend (proc, &volume->sq, &volume->lock, rctx);
|
||||
return ST_OK;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -16,8 +16,6 @@
|
||||
#include <proc/suspension_q.h>
|
||||
#include <sync/spin_lock.h>
|
||||
|
||||
#define VFS_KERNEL ((struct proc*)0x123)
|
||||
|
||||
struct vfs_volume;
|
||||
|
||||
struct vfs_volume {
|
||||
|
||||
Reference in New Issue
Block a user