Hi, The patch below fixes a number of problems in shared memory in 2.4.2ac26 (ie. it is relative to my previous set of shm patches). The main problems fixed (hopefully!) are: Fix locking to avoid sleeping with spinlocks Fix locking to avoid races between swapin and swapout Fix shm size accounting to prevent a swap leak in shmem_truncate Avoid swapout on already-mapped pages to avoid disconnecting pages from their shm segment I'm currently on a plane and will have only sporadic laptop access to mail for the next week and a half, so I'll not be able to do much more than the basic tmpfs testing I've already done on these patches so far (I have checked that it runs on ac28 too, though). Feedback welcome but I may not be as responsive as I'd like until about the 14th of April. The patches will not apply to 2.4.3 kernels until Christoph's own changes in ac* are merged in, but most of the bugs fixed here apply to 2.4.3 too. I think that the Linus tree avoids the leak, but the locking problems are in both trees. Cheers, Stephen