/* Temporary NFS req mappings are shared across all transport instances. These are short lived and should be bounded by the number of concurrent server threads * depth of the SQ.  */
struct svc_rdma_req_map* svc_rdma_get_req_map(void)
/* Temporary NFS req mappings are shared across all transport instances. These are short lived and should be bounded by the number of concurrent server threads * depth of the SQ.  */
struct svc_rdma_req_map* svc_rdma_get_req_map(void)
{
	struct svc_rdma_req_map *map;
	while (1) {
		map = kmem_cache_alloc(svc_rdma_map_cachep, GFP_KERNEL);
		if (map)
			break;
		schedule_timeout_uninterruptible(msecs_to_jiffies(500));
	}
	map->count = 0;
	map->frmr = NULL;
	return map;
}