David van Moolenbroek f707937192 VFS: process char driver replies from main thread
Previously, processing of some replies coming from character drivers
could block on locks, and therefore, such processing was done from
threads that were associated to the character driver process. The
hidden consequence of this was that if all threads were in use, VFS
could drop replies coming from the driver. This patch returns VFS to
a situation where the replies from character drivers are processed
instantly from the main thread, by removing the situations that may
cause VFS to block while handling those replies.

- change the locking model for select, so that it will never block
  on any processing that happens after the select call has been set
  up, in particular processing of character driver select replies;
- clearly mark all select routines that may never block;
- protect against race conditions in do_select as result of the
  locking that still does happen there (as is required for pipes);
- also handle select timers from the main thread;
- move processing of character driver replies into device.c.

Change-Id: I4dc8e69f265cbd178de0fbf321d35f58f067cc57
2014-02-18 11:25:03 +01:00
2014-02-18 11:25:02 +01:00
2014-02-18 11:25:03 +01:00
2013-08-20 11:37:40 +02:00
2014-02-18 11:25:02 +01:00
2014-02-18 11:25:03 +01:00
2014-02-18 11:25:02 +01:00
2013-08-21 13:53:39 +02:00
2014-02-18 11:25:02 +01:00
2014-02-18 11:25:02 +01:00
2014-02-18 11:25:02 +01:00
2014-02-18 11:25:01 +01:00
2014-02-18 11:25:02 +01:00
2014-02-18 11:25:02 +01:00
2013-11-12 10:15:47 -05:00
2014-02-18 11:25:01 +01:00
2010-01-21 10:16:05 +00:00
Description
A fun microkernel meant to match modern usecases
GPL-3.0 148 MiB
Languages
C 78.2%
Roff 10.2%
Assembly 4.6%
Shell 3.7%
Makefile 1.6%
Other 1.2%