> > > yup, that's pretty much unfixable, really, unless new locks are added
I reworked my patch to use a bit in address_space->flags and hashes wait
queues, so it doesn't take any extra memory. I'm sending it in three
parts.
1 - make generic function wait_action_schedule
2 - fix the livelock, the logic is exactly the same as in my previous
patch, wait_on_bit_lock is used instead of mutexes
3 - remove that nr_pages * 2 limit, because it causes misbehavior and
possible data loss.
Mikulas
--