Re: Network (Notwork?) block device

Alan Cox (
Wed, 16 Apr 1997 21:14:12 +0100 (BST)

> > > Is it possible to write/read from TCP connection when swapping?
> > No
> I replaced GFP_KERNEL with GFP_ATOMIC in
> skb = sock_wmalloc( sk, tmp, 0, GFP_KERNEL ) in tcp.c line ~973. Is there
> something more I should hack in tcp to make swapping over TCP work?

You need to rewrite the kernel memory allocator and all the socket buffer
queueing code to guarantee you have some memory to receive packets.