minix/servers
Ben Gras d844d2a547 Fixed nasty bug that would cause FS to loop forever in rw_scattered (while
syncing, for instance) if blocks are unwritable. This could happen if:

  . write goes beyond device boundary to a block device
  . write is done for a complete block or more; thus the
    block is not retrieved first (at which point it would be noticed
    it doesn't exist), but the buffer is simply allocated
  . at write time, the device i/o doesn't succeed, but rw_scattered
    doesn't understand this and loops forever trying to get the block
    written.

Currently, if no blocks can be written, the loop aborts, leaving all
buffers intact but potentially dirty. When invalidate() is called on the
device, the buffers will disappear (even if dirty). Same story for if
the buffer is removed due to rmed from lru chain. There's not much we
can do about this, however - we can't keep these blocks around, forever
occupying a buffer in the buffer cache.

The second part of the solution is not to let unwritable buffers be
created in the first place. How to do this, however, without doing a
wasteful read first?

It looks like this code was in 2.0.4 too.
2005-06-19 22:33:49 +00:00
..
fs Fixed nasty bug that would cause FS to loop forever in rw_scattered (while 2005-06-19 22:33:49 +00:00
inet Fixed bug relating to FS and MEMORY during startup; 2005-06-06 09:30:44 +00:00
init Various updates. 2005-06-03 13:55:06 +00:00
is Removed mem chunks dump. (No longer available from kernel.) 2005-06-17 09:13:32 +00:00
pm Parsing of free memory chunks is now done at the process manager. 2005-06-17 09:10:30 +00:00
Makefile Rename mm (memory manager) to pm (process manager), involved renaming 2005-05-03 15:35:52 +00:00