]> err.no Git - linux-2.6/commit
[AF_KEY]: Dump SA/SP entries non-atomically
authorTimo Teras <timo.teras@iki.fi>
Tue, 4 Mar 2008 07:40:12 +0000 (23:40 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Mar 2008 07:40:12 +0000 (23:40 -0800)
commit83321d6b9872b94604e481a79dc2c8acbe4ece31
tree7ea6bad51b21b2dd5abaaab75df2fc546f623441
parent26bad2c05eef400d9af16979bd96e301902ebd13
[AF_KEY]: Dump SA/SP entries non-atomically

Stop dumping of entries when af_key socket receive queue is getting
full and continue it later when there is more room again.

This fixes dumping of large databases. Currently the entries not
fitting into the receive queue are just dropped (including the
end-of-dump message) which can confuse applications.

Signed-off-by: Timo Teras <timo.teras@iki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/key/af_key.c