This change *partially* reverts commit
3a0891b9a49e42d05519a2f8b33c86267eb63d35
This partial revert is needed due to regression with some RDS
applications. It reverts RDS message size limit changes but retains the
QOS related changes in the data send path.
Orabug:
25472193
Tested-by: Efrain Galaviz <efrain.galaviz@oracle.com>
Signed-off-by: Avinash Repaka <avinash.repaka@oracle.com>
Reviewed-by: Ajaykumar Hotchandani <ajaykumar.hotchandani@oracle.com>
/*
* XXX
* - build with sparse
+ * - should we limit the size of a mr region? let transport return failure?
* - should we detect duplicate keys on a socket? hmm.
* - an rdma is an mlock, apply rlimit?
*/
goto out;
}
- /*
- * we restrict the size of mr irrespective of underlying transport
- * To account for unaligned mr regions, we subtract one from nr_pages
- */
- if ((nr_pages - 1) > (RDS_MAX_MSG_SIZE >> PAGE_SHIFT)) {
- ret = -EMSGSIZE;
- goto out;
- }
-
rdsdebug("RDS: get_mr addr %llx len %llu nr_pages %u\n",
args->vec.addr, args->vec.bytes, nr_pages);
#define RDS_FRAG_SIZE ((unsigned int)(1 << RDS_FRAG_SHIFT))
#define RDS_MAX_FRAG_SIZE SZ_16K
-/* Used to limit both RDMA and non-RDMA RDS message to 1MB */
-#define RDS_MAX_MSG_SIZE ((unsigned int)(1 << 20))
-
#define RDS_CONG_MAP_BYTES (65536 / 8)
#define RDS_CONG_PAGE_SIZE (1UL << 12)
#define RDS_CONG_MAP_LONGS (RDS_CONG_MAP_BYTES / sizeof(unsigned long))
if (ret)
goto out;
- if (max_t(size_t, payload_len, rdma_payload_len) > RDS_MAX_MSG_SIZE) {
- ret = -EMSGSIZE;
- goto out;
- }
-
if (payload_len > rds_sk_sndbuf(rs)) {
ret = -EMSGSIZE;
goto out;