From: Avi K. <av...@qu...> - 2008-01-14 15:47:15
|
Andrea Arcangeli wrote: >> >> Aren't mmu notifiers called with mmap_sem held for read? >> >> Maybe not from the swap path? >> > > Good point, the swap path isn't covered by the mmap_sem, so Marcelo's > right I need to fixup the locking a bit. > One idea I had at a time was to add ->lock() and ->unlock() callbacks to mmu notifiers that would be called in a sleepy context. But that seems heavy handed. Maybe it can be fixed in some clever way with rcu or with a rwlock around the memory slot map. -- error compiling committee.c: too many arguments to function |