]> bbs.cooldavid.org Git - net-next-2.6.git/commit
RDS: Explicitly allocate rm in sendmsg()
authorAndy Grover <andy.grover@oracle.com>
Tue, 12 Jan 2010 20:56:06 +0000 (12:56 -0800)
committerAndy Grover <andy.grover@oracle.com>
Thu, 9 Sep 2010 01:11:36 +0000 (18:11 -0700)
commitfc445084f185cdd877bec323bfe724a361e2292a
treeeda014c09872cbbacc411ea3b89f359291ccb577
parent3ef13f3c22aaea28aff383cb0883481d24885456
RDS: Explicitly allocate rm in sendmsg()

r_m_copy_from_user used to allocate the rm as well as kernel
buffers for the data, and then copy the data in. Now, sendmsg()
allocates the rm, although the data buffer alloc still happens
in r_m_copy_from_user.

SGs are still allocated with rm, but now r_m_alloc_sgs() is
used to reserve them. This allows multiple SG lists to be
allocated from the one rm -- this is important once we also
want to alloc our rdma sgl from this pool.

Signed-off-by: Andy Grover <andy.grover@oracle.com>
net/rds/message.c
net/rds/rds.h
net/rds/send.c