Messages in this thread | | | From | "Stephen C. Tweedie" <> | Date | Wed, 21 Apr 1999 00:09:31 +0100 (BST) | Subject | Re: SMP race in page IO list |
| |
Hi,
On Mon, 19 Apr 1999 08:39:07 +0200 (CEST), Patrik Rak <patrik@ein.cz> said:
> But I was thinking about concurrent put_pio_requests (each on > different CPU) and put_pio_request vs get_pio_request (also on > different CPUs). Obviously, if all put_pio_requests are also > protected by kernel lock, things work fine, but is this really true? > That's my question...
Yes, pretty much the whole VM is protected by that lock. The only bits which aren't are protected by the mutex on the current process's memory management structures, but that's mostly limited to some bits of the page fault code. All of the swap code runs under the kernel lock, with no exceptions.
--Stephen
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |