net: remove sock_iocb
authorChristoph Hellwig <hch@lst.de>
Wed, 28 Jan 2015 17:04:53 +0000 (18:04 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Jan 2015 07:15:07 +0000 (23:15 -0800)
The sock_iocb structure is allocate on stack for each read/write-like
operation on sockets, and contains various fields of which only the
embedded msghdr and sometimes a pointer to the scm_cookie is ever used.
Get rid of the sock_iocb and put a msghdr directly on the stack and pass
the scm_cookie explicitly to netlink_mmap_sendmsg.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
net/netlink/af_netlink.c
net/socket.c
net/unix/af_unix.c

Simple merge
Simple merge
diff --cc net/socket.c
Simple merge
Simple merge