Revision 92a8109e4d3a34fb6b115c9098b51767dc933444 authored by Ross Lagerwall on 08 January 2019, 18:30:56 UTC, committed by Steve French on 11 January 2019, 13:14:40 UTC
The code tries to allocate a contiguous buffer with a size supplied by the server (maxBuf). This could fail if memory is fragmented since it results in high order allocations for commonly used server implementations. It is also wasteful since there are probably few locks in the usual case. Limit the buffer to be no larger than a page to avoid memory allocation failures due to fragmentation. Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 15bc77f
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 702 bytes |
Makefile | -rw-r--r-- | 551 bytes |
af_rds.c | -rw-r--r-- | 20.3 KB |
bind.c | -rw-r--r-- | 7.5 KB |
cong.c | -rw-r--r-- | 12.9 KB |
connection.c | -rw-r--r-- | 25.7 KB |
ib.c | -rw-r--r-- | 16.6 KB |
ib.h | -rw-r--r-- | 13.9 KB |
ib_cm.c | -rw-r--r-- | 33.7 KB |
ib_fmr.c | -rw-r--r-- | 6.4 KB |
ib_frmr.c | -rw-r--r-- | 9.9 KB |
ib_mr.h | -rw-r--r-- | 4.9 KB |
ib_rdma.c | -rw-r--r-- | 16.7 KB |
ib_recv.c | -rw-r--r-- | 30.2 KB |
ib_ring.c | -rw-r--r-- | 4.8 KB |
ib_send.c | -rw-r--r-- | 29.5 KB |
ib_stats.c | -rw-r--r-- | 3.1 KB |
ib_sysctl.c | -rw-r--r-- | 4.0 KB |
info.c | -rw-r--r-- | 6.4 KB |
info.h | -rw-r--r-- | 973 bytes |
loop.c | -rw-r--r-- | 7.1 KB |
loop.h | -rw-r--r-- | 235 bytes |
message.c | -rw-r--r-- | 13.3 KB |
page.c | -rw-r--r-- | 4.5 KB |
rdma.c | -rw-r--r-- | 23.1 KB |
rdma_transport.c | -rw-r--r-- | 7.8 KB |
rdma_transport.h | -rw-r--r-- | 654 bytes |
rds.h | -rw-r--r-- | 30.7 KB |
rds_single_path.h | -rw-r--r-- | 1.2 KB |
recv.c | -rw-r--r-- | 23.0 KB |
send.c | -rw-r--r-- | 39.1 KB |
stats.c | -rw-r--r-- | 4.3 KB |
sysctl.c | -rw-r--r-- | 3.4 KB |
tcp.c | -rw-r--r-- | 20.4 KB |
tcp.h | -rw-r--r-- | 3.1 KB |
tcp_connect.c | -rw-r--r-- | 6.1 KB |
tcp_listen.c | -rw-r--r-- | 10.4 KB |
tcp_recv.c | -rw-r--r-- | 9.2 KB |
tcp_send.c | -rw-r--r-- | 6.8 KB |
tcp_stats.c | -rw-r--r-- | 2.3 KB |
threads.c | -rw-r--r-- | 8.8 KB |
transport.c | -rw-r--r-- | 4.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...