plan9fox/sys
cinap_lenrek 45b99937be kernel: cachedel() lock order, lookpage, cleanup
the lock order of page.Lock -> palloc.hashlock was
violated in cachedel() which is called from the
pager. change the code to do it in the right oder
to prevent deadlock.

change lookpage to retry on false hit. i assume that
a false hit means:

a) we'r low on memory -> cached page got uncached/reused

b) duppage() got called on the page, meaning theres another
cached copy in the image now.

paging in is expensive compared to the hashtable lookup, so
i think retrying is better.

cleanup fixfault, adding comments.
2012-10-16 14:12:21 +02:00
..
doc
games/lib fortunes 2012-10-08 22:14:19 +02:00
include Add alignment hints for e512 ATA drives. 2012-09-09 17:22:12 +12:00
lib /sys/lib/acid/kernel: fix imagecache() and procenv() 2012-10-09 03:52:18 +02:00
man update fshalt(8) manpage 2012-10-14 13:33:10 +02:00
src kernel: cachedel() lock order, lookpage, cleanup 2012-10-16 14:12:21 +02:00