• Andy Grover's avatar
    RDS: Explicitly allocate rm in sendmsg() · fc445084
    Andy Grover authored
    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: default avatarAndy Grover <andy.grover@oracle.com>
    fc445084
message.c 10.5 KB