ad d991fcb3b6 More changes to improve kern_descrip.c.
- Avoid atomics in more places.
- Remove the per-descriptor mutex, and just use filedesc_t::fd_lock.
  It was only being used to synchronize close, and in any case we needed
  to take fd_lock to free the descriptor slot.
- Optimize certain paths for the <NDFDFILE case.
- Sprinkle more comments and assertions.
- Cache more stuff in filedesc_t.
- Fix numerous minor bugs spotted along the way.
- Restructure how the open files array is maintained, for clarity and so
  that we can eliminate the membar_consumer() call in fd_getfile().  This is
  mostly syntactic sugar; the main functional change is that fd_nfiles now
  lives alongside the open file array.

Some measurements with libmicro:

- simple file syscalls are like close() are between 1 to 10% faster.
- some nice improvements, e.g. poll(1000) which is ~50% faster.
2009-05-24 21:41:25 +00:00
..
2009-04-14 10:11:28 +00:00
2009-04-18 11:30:30 +00:00
2009-05-04 19:45:51 +00:00
2009-05-16 21:37:48 +00:00
2009-05-20 16:20:01 +00:00
2009-04-26 15:55:50 +00:00
2009-05-13 22:56:42 +00:00
2009-04-13 00:41:28 +00:00
2009-04-12 23:38:17 +00:00
2009-04-13 00:12:16 +00:00
2009-04-13 00:37:05 +00:00
2009-04-13 04:16:38 +00:00
2009-04-13 04:36:34 +00:00
2009-04-13 04:37:53 +00:00
2009-04-13 07:06:53 +00:00
2009-04-13 07:11:37 +00:00
2009-05-12 18:54:31 +00:00
2009-04-13 07:30:49 +00:00
2009-04-13 07:31:36 +00:00
2009-04-14 09:53:08 +00:00
2009-05-18 09:37:44 +00:00
2009-04-13 23:44:49 +00:00
2009-04-13 23:45:50 +00:00
2009-04-13 23:50:49 +00:00
2009-04-14 05:46:25 +00:00
2009-04-14 06:14:10 +00:00
2009-04-14 06:14:10 +00:00
2009-04-14 06:16:59 +00:00
2009-04-14 07:41:36 +00:00
2009-05-04 21:13:58 +00:00
2009-04-14 07:59:17 +00:00
2009-05-01 21:38:19 +00:00
2009-05-02 16:10:49 +00:00
2009-04-14 09:18:41 +00:00
2009-05-08 17:47:00 +00:00