]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[AF_IUCV]: postpone receival of iucv-packets
authorUrsula Braun <braunu@de.ibm.com>
Mon, 8 Oct 2007 09:03:31 +0000 (02:03 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:54:51 +0000 (16:54 -0700)
commitf0703c80e5156406ad947cb67fe277725b48080f
tree428f16c8e188763cfa2cadc26708bf785a8958b8
parent57f20448032158ad00b1e74f479515c689998be9
[AF_IUCV]: postpone receival of iucv-packets

AF_IUCV socket programs may waste Linux storage, because af_iucv
allocates an skb whenever posted by the receive callback routine and
receives the message immediately.
Message receival is now postponed if data from previous callbacks has
not yet been transferred to the receiving socket program. Instead a
message handle is saved in a message queue as a reminder. Once
messages could be given to the receiving socket program, there is
an additional checking for entries in the message queue, followed
by skb allocation and message receival if applicable.

Signed-off-by: Ursula Braun <braunu@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/iucv/af_iucv.h
net/iucv/af_iucv.c